Tuesday, April 17, 2012

[FA] [SOLVED] Toggle buttons, what determines the order?

Is there a way of determining what order the buttons will appear on the UI?|||Is it simply the bit number?|||Look at /lua/ui/game/orders.lua, and/or commandmode.lua. One of those two should have a table listing, among other things, the preferred slot of each button type. The code in orders.lua should be what assigns buttons to slots based on that.
But yes, the bit determines what the button does and thus what type of button it is. The bitmap and text are obviously customizable, and have no bearing on its functionality.

No comments:

Post a Comment