Hello,
I am working on a mod (yay! First mod
) and I am using a Dropdownmenu for it. I was scanning the UIDropDownMenu.lua file and I came up with a few questions.
First, What is the difference between info.value and info.arg1/arg2... As I understand arg1/2 is the arguments given to the func of info.func but info.value is the value set to UIDROPDOWNMENU_MENU_VALUE but thats the same, and BETTER than arg1 because you can have
info.func =myFunc;
info.value = {large table of stuff};
and in myFunc you can just use this.value[#] to get the info from the values... so like whats the real difference? if there is one???
Second, Is there a way to make a var be set to something when you put your mouse over a button that hasArrow? I noticed in the template file theres a button for the arrow which has code that controls the next level. Is there a way to make it work without having to copy and edit 95% of the dropdownmenu UI? Could I maybe have a frame (or button) that inherits the arrow and I add something to it? Again, I want a var to be set to something when you mouseover a button with an arrow. For example, lets say you have this menu:
Let > be a arrow.
Title
button1
button2
--------
button3
button4 >
button5>
If you put your mouse over button 4, MyCoolVar will be set to 4. If you mouseover button 5, MyCoolVar will be set to 5.
Third, what are the start/stop counting functions for? I looked at a lot of examples but couldn't figure it out.
Thank you,
robodude666