Jump to content

Recommended Posts

Posted

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

Posted

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...