PlayerClass is a text object with the class dynamic data.
MainButton is the button you press
<Button Name="MainButton" OnPress="Parent.Button1.Activated=(Parent.PlayerClass.LocalText=='Fighter') Parent.Button2.Activated=(Parent.PlayerClass.LocalText=='Scout') ..." ...>
<Button Name="Button1" OnActivate="Parent.WhateverTheClassPulldownThingNameIs.SelectedItem=1 Activated=false" ...>
That should give you a general idea. If you need more examples, scroll down to Similar Threads and click on "Working IF statements!"
__________________
If it ain't broke, it needs more features!
|