ButtonAction
namespace Griff.Scenes;
public enum ButtonActionWhat a Button does by itself when clicked, before any script hears about it.
Values
Section titled “Values”None= 0: Nothing; scripts react with OnClick orClicked.LoadScene= 1: Switches toScene.RestartScene= 2: Starts the current scene over.Quit= 3: Closes the game (in the editor, stops playing).OpenPanel= 4: Opens thePanelnamed inPanel, e.g. an options panel from a pause menu.ClosePanel= 5: Closes the panel the button is on: Resume on a pause menu, Back on an options panel.Rebind= 6: Waits for the player to press a key or button, and makes it doInputActionfrom then on (a key or mouse button replaces the action’s first key or mouse button, a gamepad button its first gamepad button, or the one inBindingSlot; the rest stay; Esc cancels). It’s remembered next time. Label it “Jump: {Jump}” and it always shows the binding.ResetControls= 7: Puts every action back to the game’s own controls, forgetting the player’s rebinding.HostGame= 8: Hosts a network game others can join (seeMultiplayer), then goes toSceneif it’s set: the menu’s “Host” button.JoinGame= 9: Joins the network game at the address typed into aTextFieldfor the join address (empty looks on the local network). Once in, the host’s scene loads by itself.LeaveGame= 10: Leaves the network game (or stops hosting it), then goes toSceneif it’s set.EndTurn= 11: Ends the turn of the side whose turn it is, in the scene’sTurnOrder, as its End Turn action does. It’s faded while this player can’t: the computer’s turn, between turns, another player’s turn.Do= 12: Does an action on entities, as aTriggerdoes when its message arrives:DoonTargets(an RPG’s Attack, Cast Spell and Use Item on the hero, a door’s Open). It’s faded while none of them can do it now (a fighter off its turn, a spell without the mana).SaveGame= 13: Saves the game inSlot(or theSaveSlotit’s on), replacing what was there: the scene as it is, where a talk has got to, the flags and a screenshot (seeGame.SaveGame).LoadGame= 14: Loads the game saved inSlot(or theSaveSlotit’s on). It’s faded while there’s none.DeleteSave= 15: Forgets the game saved inSlot(or theSaveSlotit’s on or inside). It’s faded while there’s none.QuickSave= 16: Saves the game in the Quick slot, to load again with a Quick Load button.QuickLoad= 17: Loads the game saved with Quick Save. It’s faded while there’s none.NewGame= 18: Starts the game over: forgets the progress kept in the save data (flags, saved inventories, what menus saved, best scores; not the player’s settings and controls, saved games or lines read) and goes toScene: a menu’s “New Game”.Continue= 19: Loads the game saved most recently, in any slot (quick saves too): a title screen’s Continue. It’s faded while there’s none.