Changes between Version 1 and Version 2 of code/doc/GUI
- Timestamp:
- Mar 25, 2009, 11:54:05 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
code/doc/GUI
v1 v2 1 1 = Graphical User Interface = 2 [[TracNav(TracNav/TOC_Development)]] 2 3 3 The GUI in Orxonox is administered with CEGUI. We use the GUI for interactions with the user in shops, Questsystemor parts of the HUD and of course the main menu.4 The GUI in Orxonox is administered with CEGUI. We use the GUI for interactions with the user in shops, [wiki:Questsystem] or parts of the HUD and of course the main menu. 4 5 5 6 == CEGUI == 6 7 7 CEGUI (Crazy Edi's GUI) is available for various graphic engines like Ogre or Irrlicht. In Orxonox we use the OgreCEGUIRendererto display our GUI.8 CEGUI (Crazy Edi's GUI) is available for various graphic engines like [http://www.ogre3d.org Ogre] or [http://irrlicht.sourceforge.net/ Irrlicht]. In Orxonox we use the [http://www.orxonox.net/doxygen/classCEGUI_1_1OgreCEGUIRenderer.html OgreCEGUIRenderer] to display our GUI. 8 9 9 == GUI -Framework ==10 == GUI Framework == 10 11 11 The framework consists of various elements, putting all necessary elements together for a functioning GUI. Those elements are basically the GUIManager, lua-scripts, layouts and the corresponding graphics.12 The framework consists of various elements, putting all necessary elements together for a functioning GUI. Those elements are basically the GUIManager, Lua-scripts, layouts and the corresponding graphics. 12 13 13 14 === GUIManager === 14 15 15 Written in C++ the GUIManager manages all the GUIs in Orxonox and represents the interface to CEGUI. Connected to lua via a tolua++ interface it is able to load lua-scripts and connect C++-functions to lua and vice versa.16 Written in C++ the GUIManager manages all the GUIs in Orxonox and represents the interface to CEGUI. Connected to Lua via a tolua++ interface it is able to load Lua-scripts and connect C++-functions to Lua and vice versa. 16 17 17 === lua-scripts ===18 === Lua-scripts === 18 19 19 Lua-scripts are written in lua and implement the functionalities of CEGUI like interactivity.20 Lua-scripts are written in Lua and implement the functionalities of CEGUI like interactivity. Each GUI needs a separate Lua-script which will be loaded by the main script. 20 21 22 Usually you would set some variables and define some events inside the Lua-script. You may want for instance to define what layout you want to load. Check out the existing scripts to get an idea of the intended use. 23 24 === Imagesets === 25 26 Images are loaded in so called imagesets. As the name suggests, you can group several images into one single imageset. This can be used for instance when defining "active", "hover", "clicked" and "inactive" state of a button. You'd load just one image file into the imageset, but define various images from that imageset. 27 28 Imageset files are written in XML and very easy to use. To be able to use the specified images though, you need to include the imageset into a scheme file. 29 30 === Schemes === 31 32 === Layouts === 21 33 22 34 === GUI-Elements === 23 35 24 ==== Wi dgets ====36 ==== Winodws ==== 25 37 26 ==== Windows ==== 27 28 ==== Buttons ==== 29 30 ==== etc. ==== 38 ==== Cursor ====