User Tools

Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
guisys:guifiles [2012-01-03 21:23]
carsten [cgui files are Lua scripts]
guisys:guifiles [2017-02-21 11:42] (current)
Carsten remove obsolete reference to Trac
Line 53: Line 53:
  
 The GUI Editor is usually used to create and edit the static aspects of GUI windows, automatically generating the related script code when saving the file. The GUI Editor is usually used to create and edit the static aspects of GUI windows, automatically generating the related script code when saving the file.
-Dynamic aspects like animations or other kinds of effects typically require adding custom script code, so editing ''​cgui''​ files (usually the ''​_main.cgui''​ file) is something that you'll likely want to do often. ​ +Dynamic aspects like animations or other kinds of effects typically require adding custom script code, so editing ''​cgui''​ files (usually the ''​_main.cgui''​ file) is something that you'll likely want to do often.
  
-See the [[http://​api.cafu.de/​scripting/|Scripting Overview]] and the [[http://​api.cafu.de/​scripting/​group__GUI.html|GUI Scripting Reference Documentation]] for more details.+See the [[http://​api.cafu.de/​lua/|Lua Scripting Overview]] and the [[http://​api.cafu.de/​lua/​group__GUI.html|GUI Scripting Reference Documentation]] for more details.
  
  
Line 89: Line 89:
   * All hand-written code enters file ''​Teleporter_main.cgui''​ instead.   * All hand-written code enters file ''​Teleporter_main.cgui''​ instead.
   * The connection between the two files is made by the ''​dofile()''​ statement.   * The connection between the two files is made by the ''​dofile()''​ statement.
- 
-You can find examples of this technique at http://​trac.cafu.de/​browser/​cafu/​trunk/​Games/​DeathMatch/​GUIs 
  
  
Line 97: Line 95:
 The ''​cmat''​ files contain the material definitions for the graphical elements of this GUI. The ''​cmat''​ files contain the material definitions for the graphical elements of this GUI.
  
-At the time of this writing, the materials for GUIs are still defined in the "​global"​ material scripts for the MOD, but for the future we intend to have separate material scripts for each GUI that work analogous to [[http://www.cafu.de/wiki/​modeleditor:​modelfiles#​cmat_material_definition_files|cmat material definition files]] for models.+At the time of this writing, the materials for GUIs are still defined in the "​global"​ material scripts for the MOD, but for the future we intend to have separate material scripts for each GUI that work analogous to [[http://docs.cafu.de/​modeleditor:​modelfiles#​cmat_material_definition_files|cmat material definition files]] for models.
  
  
Line 103: Line 101:
  
 The texture images are referenced from the material definition scripts. The texture images are referenced from the material definition scripts.
-See the documentation about [[http://www.cafu.de/wiki/#​the_cafu_material_system|the Cafu Material System]] for more details.+See the documentation about [[http://docs.cafu.de/#​the_cafu_material_system|the Cafu Material System]] for more details.
  
 /* Example: /* Example:
guisys/guifiles.1325622212.txt.gz ยท Last modified: 2013-01-07 12:07 (external edit)