If (this.iconType = "redShot" || this.iconType = "blueShot" || this.iconType = "redGoal" || this. change alignment of text depending on which side of centre ice Image: new ig.Image('media/rinkIcons.png'),Ĭonsole.log( + ", " + ) Here is my current code for adding gui elements: This is what I want the lines to look like ![]() I am not able to figure out where the draw code is for each frame update so that each gui element draws its line to the goal on each update, so it would look like this: (however the text will appear when mouseDown). I want the lines to appear all the time, not just on mouseDown. Here is an example of what how I am using the gui element for on-ice events in a hockey game (shots, hits, goals, penalties etc.)Ĭurrently when I click on a puck, if it is either a SHOT or GOAL, I draw a line from the gui element's pos.x, pos.y to the corresponding goal on the ice, and the text description appears describing the players involved. Other editing commands include simple cursor movement via arrow keys, deletion of characters via backspace and delete, and movement. The Impact client is an advanced utility mod for Minecraft, it is packaged with Baritone and includes a large number of useful mods. and within the click method of the button itself: MEMBER IMPACT HELP PAGES Choose a Category: Getting Started - Account Setup FAQ Planning and Configuration Application and Profile Creation Communicating. 0 Hacked Client - Jello for Sigma Sigmaclient. Here is the code for the key press within the update method: or in other words, the key doesn't see that the button has changed the variable, so it does nothing on the first click (which then changes the variable to match what you see) THEN it correctly hides/shows the group. Because of this, after showing it with the button, you need to press the key 2 times for it to hide the group. This works great if I only use the key or button, however when I attempt to show it with the key, then hide with the button (or the other way around) it takes multiple clicks/presses, with no change, for the group to then show/hide itself.īoth key and button are using the same boolean variable to judge it's action on, however it is acting as though they are unable to recognize when the other has changed the variable. I'm doing this with a simple boolean conditional and the key and button have the same function which is simply to hide/show the GUI group based on the boolean, and then set the boolean to reflect what was just done. Great plugin, I'm really loving it however I've come across a problem that I can't seem to figure out an answer to.īasically, I've got a group of elements that are set to show/hide on key press, OR on a GUI button's click method.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |