NOTE : This problem is mostly already fix. read the second post first!
This is just a sample!
A cote for the button11
First, I read all the tutorial about dialog I haven't found a more efficient way to handle that event "Mouse Enter".
Second, I speak french sorry if I mind be hard to understand. I will try to write another way so you can understand.
I actually change the description according to the button you pass your mouse over. I already link a description to button via variable and everything its pretty efficient.
In short there 3 race, 15 button per page and 5 page, that 225 button maximum (there actually just 134).
Each button have a name of 11 to 31. First number mean the row, second the collums. So the third of the second row is button 23. There already a variable that detect which section your in (PlayerSection[Array 11], value 1 to 5), and also which race you are (PlayerRace[Array 11], value 1 to 3).
My loop is currently checking all the button 11, from all race, and all the section. So that 15 check when your mouse get over it. If I have 15 button per page, that mean all my script together .. check 225 time each time you pass over a button.
So my question, first of all its effecient? (I definitly say no myself;p)
If no, it is possible to show me a more efficient way as lag concern. Thank you :)
Great a found a better solution, dunno why I haven't think about it first. I actually simply made 15 button. Those are show/hide based on which section your on. So I have only 15 button so check. When the player click on the section it set a variable, so if he click on section 1, and hes terran as example the button 1 will have a value set for the array 1/1/0/0 (Position 0/0, I have substract 1 to the position setting). I can post screnshot if someone have a doubt about what I just said.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
NOTE : This problem is mostly already fix. read the second post first!
This is just a sample!
A cote for the button11
First, I read all the tutorial about dialog I haven't found a more efficient way to handle that event "Mouse Enter". Second, I speak french sorry if I mind be hard to understand. I will try to write another way so you can understand.
I actually change the description according to the button you pass your mouse over. I already link a description to button via variable and everything its pretty efficient.
In short there 3 race, 15 button per page and 5 page, that 225 button maximum (there actually just 134).
Each button have a name of 11 to 31. First number mean the row, second the collums. So the third of the second row is button 23. There already a variable that detect which section your in (PlayerSection[Array 11], value 1 to 5), and also which race you are (PlayerRace[Array 11], value 1 to 3).
My loop is currently checking all the button 11, from all race, and all the section. So that 15 check when your mouse get over it. If I have 15 button per page, that mean all my script together .. check 225 time each time you pass over a button.
So my question, first of all its effecient? (I definitly say no myself;p) If no, it is possible to show me a more efficient way as lag concern. Thank you :)
Great a found a better solution, dunno why I haven't think about it first. I actually simply made 15 button. Those are show/hide based on which section your on. So I have only 15 button so check. When the player click on the section it set a variable, so if he click on section 1, and hes terran as example the button 1 will have a value set for the array 1/1/0/0 (Position 0/0, I have substract 1 to the position setting). I can post screnshot if someone have a doubt about what I just said.