zMUD GUI Configurations

by Unknown

Back to Mechanic's Corner.

Unknown2007-08-07 16:25:22
I don't use toggle buttons because I don't like them. I use standard push buttons that toggle a variable and change color instead. Works great for me, and I get to keep the flat look for all my buttons. Some of them use different icons to indicate status, such as the radio buttons or a black-and-white versus color version of a bitmap.
Forren2007-08-07 16:33:33
QUOTE(Zarquan @ Aug 7 2007, 12:25 PM) 432183
I don't use toggle buttons because I don't like them. I use standard push buttons that toggle a variable and change color instead. Works great for me, and I get to keep the flat look for all my buttons. Some of them use different icons to indicate status, such as the radio buttons or a black-and-white versus color version of a bitmap.


Is the variable what determines your color, or the function that's called when you press it?
Unknown2007-08-07 22:59:09
The alias I call determines the color, but it uses the variable for the toggle. For example, the alias that toggles my harvesting:

CODE
#ALIAS htog {
#IF (@autopick) {
  autopick = 0
  hreset
  i_info "Harvesting OFF"
  #CALL %btncol(btnharvest, black, gray)
} {
  autopick = 1
  i_info "Harvesting ON"
  #CALL %btncol(btnharvest, black, green)
  plants
}
}