View Full Version : ToggleGroup w/nested ToggleButton

08-01-2018, 09:00 PM
Wouldn't it make more sense that *if* a toggle group contains toggle buttons (or any 0/1 status input type) that the [not applicable currently] onValueChange event be set on the ToggleGroup with the variables of the Button in the group being pressed (player, status, element_id).

<ToggleGroup onValueChanged="ev_eat">
<ToggleButton id="eat_tire">Tire</ToggleButton>
<ToggleButton id="eat_doughnut">Doughnut</ToggleButton>
<ToggleButton id="eat_glass">Glass</ToggleButton>

-- for reference (eating a tire!)
LuaPLayer, "True", "eat_Tire" = ev_eat