Yes, I know that this site is dying as a professional resource. But according to the old tradition, I want to offer one more challenge.
Imagine I have a CheckButton “Biped In Figure Mode” in the MXS dialog (simple Rollout).
This button should always be ON if any Biped system is in figure mode, and OFF otherwise.
Obviously, we need to track events … but which ones? what is the safest way to keep track of all related events and callbacks?
How do we set up a minimal but sufficient kind of callbacks to track this task?
try(destroydialog FigureModeCheck) catch()
rollout FigureModeCheck "Figure Mode Check" width:191
(
checkbutton figure_mode_cb "Figure Mode" width:180 align:#center
on FigureModeCheck open do
(
b = for obj in objects where iskindof obj.controller Vertical_Horizontal_Turn do exit with obj
if isvalidnode b do figure_mode_cb.state = b.controller.figureMode
)
)
createdialog FigureModeCheck
this is a good test to check how well you know the event mechanism in MAX