CodeSnippets

From CEGUIWiki

Jump to: navigation, search

HOW-TO series : Minimal HOW-TO snippets.

SDL to CEGUI keytable : A switch statement to convert the relevant SDLKey keysyms to CEGUI::Key values.

DirectInput to CEGUI utf32 : Convert DirectInput scancodes to utf32 characters.

Qt to CEGUI Key and Mouse Mapping : Two functions for key scancode and mouse button enumeration conversion from Qt to CEGUI.

Common Game Components

OgreSystemInit : Common initialisation routine for Ogre

GameChatBox : Chat box example comprising input area at bottom with chat history at top.

The Main Menu : A comprehensive tutorial that explains how to begin making use of the CEGUI lib by making a menu using the 3 different possible approaches, as well as handling events.

DialogSystem : A windowing/dialog solution to handle modal dialogs as well as implementing the logic for Ok, Cancel, and Apply buttons.

DialogConfigurations A simple solution to save the position, size, and whether a dialog is visible or rolled up and reload these configurations the next time the application is executed.

WidgetGalore : A presentation of every widget and an introduction of their usage.

EventGalore : A presentation of evey widget's most important events.

Formatted Numeric Data : A simple class to format numeric data.

CreateSubImage : 2 functions that can be used to create subimages dynamically.

Tab Order : A class to allow navigation via Tab and Shift-Tab.

GridLayout : A layout manager for CEGUI

MovingAnyWindow : How to move any window, not just FrameWindow

DynamicFont : Dynamically create fonts

PseudoListbox : Implement a multi-column listbox with any widgets

Utilities

PropertyFinder : Tool to list the properties associated with every widgets of a scheme.

Personal tools