Jump to content

Attaching a script to a message box


Zorkaz

Recommended Posts

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
Link to comment
Share on other sites

  • Recently Browsing   0 members

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