Difference between revisions of "EVENT TYPE GUI OPENED"

From Dragon Age Toolset Wiki
Jump to: navigation, search
(split out of event)
 
m (Updating link)
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
GUI tutorial calls
+
{{needs review}}
 +
{{event
 +
|sourcefile=script.ldf
 +
|when=
 +
|from=
 +
|to= [[module]]
 +
|tocategory1=module
 +
|sortkey=GUI_OPENED
 +
|int0name=nGUIID
 +
|int0desc=ID number of the GUI that was opened
 +
}}
  
*<b>Sent When:</b>
+
GUI tutorial calls. nGUIID can be:
*<b>Sent From:</b>
+
*<b>Sent To:</b> module
+
  
Parameters:
+
*GUI_INVENTORY: //Inventory ScreenOpened
 +
*GUI_JOURNAL: //Journal
 +
*GUI_MAP: //Area Map
 +
*GUI_WORLD_MAP: //World Map
 +
*GUI_TACTICS: //AI Tactics screen
 +
*GUI_STORE: //Store GUI
 +
*GUI_CRAFTING: //Crafting
 +
*GUI_CHANTERS: //Chanter's Board
 +
*GUI_ITEM_UPGRADE // Enchanter upgrade
  
[[Category:Event types|GUI_OPENED]]
+
See [[GUI_*]] for a complete list of GUI constants.
 +
 
 +
== See also ==

Latest revision as of 19:50, 3 August 2011

The documentation on this page is incomplete, obsolete, or otherwise in need of a thorough review. The current content may provide a good starting point for this, but do not rely on its accuracy when using it to design content.

Source:
script.ldf
Sent when:
Sent from:
Sent to:
module
Parameters:
  • Integer 0: ID number of the GUI that was opened

Usage

case EVENT_TYPE_GUI_OPENED:
{
int nGUIID = GetEventInteger(ev, 0); // ID number of the GUI that was opened

// insert event-handling code here

break;
}

GUI tutorial calls. nGUIID can be:

  • GUI_INVENTORY: //Inventory ScreenOpened
  • GUI_JOURNAL: //Journal
  • GUI_MAP: //Area Map
  • GUI_WORLD_MAP: //World Map
  • GUI_TACTICS: //AI Tactics screen
  • GUI_STORE: //Store GUI
  • GUI_CRAFTING: //Crafting
  • GUI_CHANTERS: //Chanter's Board
  • GUI_ITEM_UPGRADE // Enchanter upgrade

See GUI_* for a complete list of GUI constants.

See also