Difference between revisions of "MessageBox Tutorial"

Jump to navigation Jump to search
29 bytes added ,  02:49, 14 June 2007
no edit summary
imported>Haama
imported>Haama
Line 267: Line 267:
     Return
     Return


    Elseif (Choosing == -3) ;Food menu
  Elseif (Choosing == -3) ;Food menu
      Messagebox "How much food would you like to donate?" "Options"
    Messagebox "How much food would you like to donate?" "Options"
                                                          "More Options"
                                                        "More Options"
                                                          ...
                                                        ...
                                                          "Cancel"
                                                        "Cancel"
      Set Choosing to 3
    Set Choosing to 3
      Set Choice to GetButtonPressed
    Set Choice to GetButtonPressed
      Return
    Return


    Elseif (Choosing == 3)
  Elseif (Choosing == 3)
     If (Choice == -1) ;No choice yet
     If (Choice == -1) ;No choice yet
       Set Choice to GetButtonPressed
       Set Choice to GetButtonPressed
     Elseif (Choice == 0)  ;Options
     Elseif (Choice == 0)  ;Options
...
     Elseif (Choice == 9)  ;Cancel
     Elseif (Choice == 9)  ;Cancel
       Set Choosing to 0
       Set Choosing to 0
Line 311: Line 311:
<br>'''''Mmmm... sleep... I'll add these shortly...'''''
<br>'''''Mmmm... sleep... I'll add these shortly...'''''
<br>[[Messagebox_Tutorial:_Centralizing_Your_Menu_Exits|Centralizing your menu exits]]
<br>[[Messagebox_Tutorial:_Centralizing_Your_Menu_Exits|Centralizing your menu exits]]
<br>Running menus in both GameMode and MenuMode when your script is too large
<br>[[Messagebox_Tutorial:_GameMode_And_MenuMode|Running menus in both GameMode and MenuMode when your script is too large]]
<br>Ensuring your menus are seen
<br>Ensuring your menus are seen
<br>Allowing the player to set a variable to any number
<br>Allowing the player to set a variable to any number
<br>[[User:Haama|Haama]] 02:08, 14 June 2007 (EDT)
<br>[[User:Haama|Haama]] 02:08, 14 June 2007 (EDT)
[[Category: Scripting Tutorials]]
[[Category: Scripting Tutorials]]
Anonymous user

Navigation menu