Zorkaz Posted February 1, 2020 Posted February 1, 2020 I'm doing a message box where you can say "Yes" and "No" On clicking yes, a script should run and disable something. But how do I do that, since there's only the option to add a condition
SKKmods Posted February 1, 2020 Posted February 1, 2020 The script that shows the message needs to handle the result, example;Function MainMenu() Int iButton = pSKK_MWMMenu.Show() If (iButton == 0) ;Cancel ;do nothing ElseIf (iButton == 1) ;Load markers StartMWM() ElseIf (iButton == 2) ;UnLoad markers StopMWM() ElseIf (iButton == 3) ;Create Attack Marker CreateAttackMarker() ElseIf (iButton == 4) ;Remove nearest marker RemoveCreatedMarker() ElseIf (iButton == 5) ;Remove all created markers ResetAllMarkers() EndIf EndFunction
Zorkaz Posted February 1, 2020 Author Posted February 1, 2020 Thanks SKK50 just found out myself ;) Can't believe I never needed that until now
Recommended Posts