#include <K3dGui.h>
Inheritance diagram for K3dGui:
Public Member Functions | |
K3dGui (K3dGameData *_pGameData) | |
~K3dGui () | |
void | DrawGui () |
Draw all gui. | |
void | SetTargetPlane (const int _iWidth, const int _iHeight) |
Set target plane if resize window. | |
void | LoadGui () |
Load gui from map file. | |
void | DeleteGui () |
Delete all gui. | |
int | FindContainerId (const char *_strName) |
Find container index by name. | |
int | FindButtonId (const char *_strName) |
Find button index by name. | |
int | FindWindowId (const char *_strName) |
Find window index by name. | |
int | FindListModelId (const char *_strName) |
Find list model index by name. | |
int | FindListBoxId (const char *_strName) |
Find list box index by name. | |
int | FindGuiObjectId (const char *_strName, const int _iObjType) |
Find object index in gui data by ibject name and object type. | |
void | HideGui (const int _iObjId, const int _iObjType) |
Hide gui object. | |
void | ShowGui (const int _iObjId, const int _iObjType) |
Show gui object. | |
void | HideWindow (const int _iObjId) |
Hide gui window. | |
void | ShowWindow (const int _iObjId) |
Show gui window. | |
void | HideContainer (const int _iObjId) |
Hide container gui. | |
gcn::SDLInput * | GetInput () |
K3dGuiButton * | GetGuiButton (const int _iButtonId) |
Get button. | |
K3dGuiListModel * | GetGuiListModel (const int _iListModelId) |
Get List Model. | |
K3dGuiListBox * | GetGuiListBox (const int _iListBoxId) |
Get List box. | |
Private Member Functions | |
void | LoadGuiImages () |
Load GUI images from map file. | |
void | LoadGuiIcons () |
Load GUI icons from map file. | |
void | LoadGuiWindows () |
Load GUI windows from map file. | |
void | LoadGuiFonts () |
Load GUI fonts from map file. | |
void | LoadGuiLabels () |
Load GUI labels from map file. | |
void | LoadGuiButtons () |
Load GUI buttons from map file. | |
void | LoadGuiTextFields () |
Load GUI text fields from map file. | |
void | LoadGuiTextBoxes () |
Load GUI text boxes from map file. | |
void | LoadGuiScrollAreas () |
Load GUI scroll areas from map file. | |
void | CreateScrollArea (const char *_strContent) |
Find gui objects from content string and create scroll area with gui object. | |
void | LoadGuiListBoxes () |
Load GUI list boxes from map file. | |
void | LoadGuiListModels () |
Load GUI list models from map file. | |
void | CreateListBox (const char *_strContent) |
Find gui objects from content string and create list box. | |
void | LoadGuiDropDown () |
Load GUI drop down from map file. | |
void | CreateDropDown (const char *_strContent) |
Find gui objects from content string and create list box. | |
void | LoadGuiCheckBoxes () |
Load GUI Check Boxes from map file. | |
void | LoadGuiRadioButtons () |
Load GUI Radio Buttons from map file. | |
void | LoadGuiSliders () |
Load GUI sliders from map file. | |
void | LoadGuiContainers () |
Load GUI Containers from map file. | |
K3dGuiSlider * | FindSlider (const char *_strSliderName) |
Find slider by slider name. | |
K3dGuiIcon * | FindIcon (const char *_strName) |
Find icon by icon name. | |
K3dGuiLabel * | FindLabel (const char *_strName) |
Find label by label name. | |
K3dGuiButton * | FindButton (const char *_strName) |
Find button by name. | |
K3dGuiTextField * | FindTextField (const char *_strName) |
Find text field by text field name. | |
K3dGuiScrollArea * | FindScrollArea (const char *_strName) |
Find Scroll Area by Scroll Area name. | |
K3dGuiDropDown * | FindDropDown (const char *_strName) |
Find Drop Down by Drop Down name. | |
K3dGuiCheckBox * | FindCheckBox (const char *_strName) |
Find Check Box by Check Box name. | |
K3dGuiObject * | FindGuiObject (const char *_strName) |
Find gui object by name. | |
K3dGuiListModel * | FindListModel (const char *_strName) |
Find List Model by name. | |
K3dGuiRadioButton * | FindRadioButton (const char *_strName) |
Find Radio button by Radio button name. | |
K3dGuiImage * | FindImage (const char *_strName) |
Find image by image name. | |
K3dGuiWindow * | FindWindow (const char *_strName) |
Find window by window name. | |
void | SetGuiDependencies () |
Set window and container dependencies. | |
Private Attributes | |
K3dGameData * | m_pGameData |
Global game data, data centered game system. | |
gcn::Gui * | m_pGui |
TGuiListModelArray | m_tGuiListModelArray |
TGuiWindow | m_tGuiWindowArray |
TGuiLabel | m_tGuiLabelArray |
TGuiIcon | m_tGuiIconArray |
TGuiButton | m_tGuiButtonArray |
TGuiFont | m_tGuiFontArray |
TGuiTextField | m_tGuiTextFieldArray |
TGuiTextBox | m_tGuiTextBoxArray |
TGuiScrollArea | m_tGuiScrollAreaArray |
TGuiListBox | m_tGuiListBoxArray |
TGuiDropDown | m_tGuiDropDownArray |
TGuiCheckBox | m_tGuiCheckBoxArray |
TGuiRadioButton | m_tGuiRadioButtonArray |
TGuiSlider | m_tGuiSliderArray |
TGuiImage | m_tGuiImageArray |
TGuiContainer | m_tGuiContainerArray |
gcn::SDLInput * | m_pInput |
gcn::OpenGLGraphics * | m_pGraphics |
gcn::OpenGLSDLImageLoader * | m_pImageLoader |
K3dLua * | m_pLua |
Lua object for access to lua map files. | |
K3dString | m_strFc |
Function string. | |
K3dString | m_strOut |
Output string. | |
bool | m_bIsGuiDeleted |
Is gui deleted ? | |
bool | m_bIsLoadGui |
Is needs load gui ? |
Definition at line 93 of file K3dGui.h.
K3dGui::K3dGui | ( | K3dGameData * | _pGameData | ) |
Definition at line 34 of file K3dGui.cpp.
References m_bIsLoadGui, m_pGameData, m_pGraphics, m_pGui, m_pImageLoader, and m_pInput.
K3dGui::~K3dGui | ( | ) |
void K3dGui::LoadGuiImages | ( | ) | [private] |
Load GUI images from map file.
Definition at line 247 of file K3dGui.cpp.
References K3dSceneData::GetPath(), K3dString::GetString(), K3D_GUI_IMAGE_OBJ, K_PATH_APP, K_STR_GUI_IMAGE, K_STR_NAME, K_STR_NUM_GUI_IMAGES, K_STR_TEXTURE_TABLE, K3dLua::LuaError(), K3dLua::LuaGetFieldString(), K3dLua::LuaGetGlobal(), K3dLua::LuaIsNumber(), K3dLua::LuaIsTable(), K3dLua::LuaToNumber(), m_pGameData, m_pLua, m_strFc, m_strOut, and m_tGuiImageArray.
Referenced by LoadGui().
void K3dGui::LoadGuiIcons | ( | ) | [private] |
Load GUI icons from map file.
Definition at line 285 of file K3dGui.cpp.
References FindImage(), K3dGuiImage::GetImage(), K3dGuiIcon::GetIsResizeContent(), K3dGuiObject::GetName(), K3dGuiObject::GetObjectId(), K3dGuiObject::GetObjectType(), K3dString::GetString(), K3D_GUI_ICON_OBJ, K_STR_GUI_ICON, K_STR_IMAGE, K_STR_NAME, K_STR_NUM_GUI_ICONS, K_STR_RESIZE_CONTENT, K3dLua::LuaError(), K3dLua::LuaGetFieldBool(), K3dLua::LuaGetFieldString(), K3dLua::LuaGetGlobal(), K3dLua::LuaIsNumber(), K3dLua::LuaIsTable(), K3dLua::LuaToNumber(), m_pLua, m_strFc, m_strOut, and m_tGuiIconArray.
Referenced by LoadGui().
void K3dGui::LoadGuiWindows | ( | ) | [private] |
Load GUI windows from map file.
Definition at line 1161 of file K3dGui.cpp.
References K3dGuiWindow::AddChildName(), FindButton(), FindCheckBox(), FindDropDown(), FindIcon(), FindLabel(), FindRadioButton(), FindScrollArea(), FindSlider(), FindTextField(), K3dGuiObject::GetName(), K3dGuiObject::GetObjectId(), K3dGuiObject::GetObjectType(), K3dGuiObject::GetPosX(), K3dGuiObject::GetPosY(), K3dString::GetString(), K3D_GUI_WIN_OBJ, K_STR_A, K_STR_B, K_STR_BUTTON, K_STR_CHECK_BOX, K_STR_DROP_DOWN, K_STR_G, K_STR_GUI_WIN, K_STR_HEIGHT, K_STR_ICON, K_STR_LABEL, K_STR_NAME, K_STR_NUM_BUTTONS, K_STR_NUM_CHECK_BOXES, K_STR_NUM_DROP_DOWNS, K_STR_NUM_GUI_WINS, K_STR_NUM_ICONS, K_STR_NUM_LABELS, K_STR_NUM_RADIO_BUTTONS, K_STR_NUM_SCROLL_AREAS, K_STR_NUM_SLIDERS, K_STR_NUM_TEXTFIELDS, K_STR_NUM_WINS, K_STR_POS_X, K_STR_POS_Y, K_STR_R, K_STR_RADIO_BUTTON, K_STR_SCROLL_AREA, K_STR_SLIDER, K_STR_TEXTFIELD, K_STR_TITLE, K_STR_TOP, K_STR_VISIBLE, K_STR_WIDTH, K_STR_WIN, K_STR_X, K_STR_Y, K3dLua::LuaError(), K3dLua::LuaGetFieldBool(), K3dLua::LuaGetFieldNumber(), K3dLua::LuaGetFieldString(), K3dLua::LuaGetGlobal(), K3dLua::LuaIsNumber(), K3dLua::LuaIsTable(), K3dLua::LuaToNumber(), m_pGui, m_pLua, m_strFc, m_strOut, and m_tGuiWindowArray.
Referenced by LoadGui().
void K3dGui::LoadGuiFonts | ( | ) | [private] |
Load GUI fonts from map file.
Definition at line 330 of file K3dGui.cpp.
References K3dGuiObject::GetName(), K3dGuiObject::GetObjectId(), K3dGuiObject::GetObjectType(), K3dSceneData::GetPath(), K3dString::GetString(), K3D_GUI_FONT_OBJ, K_PATH_APP, K_STR_FONT_LOWER, K_STR_GLYPH, K_STR_GUI_FONT, K_STR_NAME, K_STR_NUM_GUI_FONTS, K3dLua::LuaError(), K3dLua::LuaGetFieldString(), K3dLua::LuaGetGlobal(), K3dLua::LuaIsNumber(), K3dLua::LuaIsTable(), K3dLua::LuaToNumber(), m_pGameData, m_pLua, m_strFc, m_strOut, and m_tGuiFontArray.
Referenced by LoadGui().
void K3dGui::LoadGuiLabels | ( | ) | [private] |
Load GUI labels from map file.
Definition at line 369 of file K3dGui.cpp.
References K3dGuiObject::GetName(), K3dGuiObject::GetObjectId(), K3dGuiObject::GetObjectType(), K3dGuiObject::GetPosX(), K3dGuiObject::GetPosY(), K3dString::GetString(), K3D_GUI_LABEL_OBJ, K_STR_CAPTION, K_STR_GUI_LABEL, K_STR_NAME, K_STR_NUM_GUI_LABELS, K_STR_POS_X, K_STR_POS_Y, K3dLua::LuaError(), K3dLua::LuaGetFieldNumber(), K3dLua::LuaGetFieldString(), K3dLua::LuaGetGlobal(), K3dLua::LuaIsNumber(), K3dLua::LuaIsTable(), K3dLua::LuaToNumber(), m_pLua, m_strFc, m_strOut, and m_tGuiLabelArray.
Referenced by LoadGui().
void K3dGui::LoadGuiButtons | ( | ) | [private] |
Load GUI buttons from map file.
Definition at line 406 of file K3dGui.cpp.
References K3dGuiObject::GetName(), K3dGuiObject::GetObjectId(), K3dGuiObject::GetObjectType(), K3dGuiObject::GetPosX(), K3dGuiObject::GetPosY(), K3dString::GetString(), K3D_GUI_BUTTON_OBJ, K_STR_CAPTION, K_STR_GUI_BUTTON, K_STR_HEIGHT, K_STR_NAME, K_STR_NUM_GUI_BUTTONS, K_STR_POS_X, K_STR_POS_Y, K_STR_WIDTH, K3dLua::LuaError(), K3dLua::LuaGetFieldNumber(), K3dLua::LuaGetFieldString(), K3dLua::LuaGetGlobal(), K3dLua::LuaIsNumber(), K3dLua::LuaIsTable(), K3dLua::LuaToNumber(), m_pLua, m_strFc, m_strOut, and m_tGuiButtonArray.
Referenced by LoadGui().
void K3dGui::LoadGuiTextFields | ( | ) | [private] |
Load GUI text fields from map file.
Definition at line 444 of file K3dGui.cpp.
References K3dGuiObject::GetName(), K3dGuiObject::GetObjectId(), K3dGuiObject::GetObjectType(), K3dGuiObject::GetPosX(), K3dGuiObject::GetPosY(), K3dString::GetString(), K3D_GUI_TEXT_FIELD_OBJ, K_STR_GUI_TEXT_FIELD, K_STR_NAME, K_STR_NUM_GUI_TEXT_FIELDS, K_STR_POS_X, K_STR_POS_Y, K_STR_TEXT, K3dLua::LuaError(), K3dLua::LuaGetFieldNumber(), K3dLua::LuaGetFieldString(), K3dLua::LuaGetGlobal(), K3dLua::LuaIsNumber(), K3dLua::LuaIsTable(), K3dLua::LuaToNumber(), m_pLua, m_strFc, m_strOut, and m_tGuiTextFieldArray.
Referenced by LoadGui().
void K3dGui::LoadGuiTextBoxes | ( | ) | [private] |
Load GUI text boxes from map file.
Definition at line 480 of file K3dGui.cpp.
References K3dGuiObject::GetName(), K3dGuiObject::GetObjectId(), K3dGuiObject::GetObjectType(), K3dString::GetString(), K3D_GUI_TEXT_BOX_OBJ, K_STR_GUI_TEXT_BOX, K_STR_NAME, K_STR_NUM_GUI_TEXT_BOXES, K_STR_TEXT, K3dLua::LuaError(), K3dLua::LuaGetFieldString(), K3dLua::LuaGetGlobal(), K3dLua::LuaIsNumber(), K3dLua::LuaIsTable(), K3dLua::LuaToNumber(), m_pLua, m_strFc, m_strOut, and m_tGuiTextBoxArray.
Referenced by LoadGui().
void K3dGui::LoadGuiScrollAreas | ( | ) | [private] |
Load GUI scroll areas from map file.
Definition at line 514 of file K3dGui.cpp.
References CreateScrollArea(), K3dString::GetString(), K_STR_CONTENT, K_STR_GUI_SCROLL_AREA, K_STR_NUM_GUI_SCROLL_AREAS, K3dLua::LuaError(), K3dLua::LuaGetFieldString(), K3dLua::LuaGetGlobal(), K3dLua::LuaIsNumber(), K3dLua::LuaIsTable(), K3dLua::LuaToNumber(), m_pLua, m_strFc, and m_strOut.
Referenced by LoadGui().
void K3dGui::CreateScrollArea | ( | const char * | _strContent | ) | [private] |
Find gui objects from content string and create scroll area with gui object.
Definition at line 544 of file K3dGui.cpp.
References FindGuiObject(), K3dGuiObject::GetName(), K3dGuiObject::GetObjectId(), K3dGuiObject::GetObjectType(), K3dGuiObject::GetPosX(), K3dGuiObject::GetPosY(), K3D_GUI_CONTAINER_OBJ, K3D_GUI_LIST_BOX_OBJ, K3D_GUI_TEXT_BOX_OBJ, K_STR_BORDER_SIZE, K_STR_HEIGHT, K_STR_NAME, K_STR_POS_X, K_STR_POS_Y, K_STR_WIDTH, K3dLua::LuaGetFieldNumber(), K3dLua::LuaGetFieldString(), m_pLua, m_tGuiContainerArray, m_tGuiListBoxArray, m_tGuiScrollAreaArray, and m_tGuiTextBoxArray.
Referenced by LoadGuiScrollAreas().
void K3dGui::LoadGuiListBoxes | ( | ) | [private] |
Load GUI list boxes from map file.
Definition at line 820 of file K3dGui.cpp.
References CreateListBox(), K3dString::GetString(), K_STR_CONTENT, K_STR_GUI_LIST_BOX, K_STR_NUM_GUI_LIST_BOXES, K3dLua::LuaError(), K3dLua::LuaGetFieldString(), K3dLua::LuaGetGlobal(), K3dLua::LuaIsNumber(), K3dLua::LuaIsTable(), K3dLua::LuaToNumber(), m_pLua, m_strFc, and m_strOut.
Referenced by LoadGui().
void K3dGui::LoadGuiListModels | ( | ) | [private] |
Load GUI list models from map file.
Definition at line 777 of file K3dGui.cpp.
References K3dGuiListModel::AddElement(), K3dGuiObject::GetName(), K3dGuiObject::GetObjectId(), K3dGuiObject::GetObjectType(), K3dString::GetString(), K3D_GUI_LIST_MODEL_OBJ, K_STR_ELEMENT, K_STR_GUI_LIST_MODEL, K_STR_GUI_NUM_ELEMENTS, K_STR_NAME, K_STR_NUM_GUI_LIST_MODELS, K3dLua::LuaError(), K3dLua::LuaGetFieldNumber(), K3dLua::LuaGetFieldString(), K3dLua::LuaGetGlobal(), K3dLua::LuaIsNumber(), K3dLua::LuaIsTable(), K3dLua::LuaToNumber(), m_pLua, m_strFc, m_strOut, and m_tGuiListModelArray.
Referenced by LoadGui().
void K3dGui::CreateListBox | ( | const char * | _strContent | ) | [private] |
Find gui objects from content string and create list box.
Definition at line 850 of file K3dGui.cpp.
References FindListModel(), K3dGuiObject::GetName(), K3dGuiObject::GetObjectId(), K3dGuiObject::GetObjectType(), K3D_GUI_LIST_BOX_OBJ, K_STR_BORDER_SIZE, K_STR_HEIGHT, K_STR_NAME, K_STR_WIDTH, K3dLua::LuaGetFieldNumber(), K3dLua::LuaGetFieldString(), m_pLua, and m_tGuiListBoxArray.
Referenced by LoadGuiListBoxes().
void K3dGui::LoadGuiDropDown | ( | ) | [private] |
Load GUI drop down from map file.
Definition at line 887 of file K3dGui.cpp.
References CreateDropDown(), K3dString::GetString(), K_STR_CONTENT, K_STR_GUI_DROP_DOWN, K_STR_GUI_NUM_DROP_DOWN, K3dLua::LuaError(), K3dLua::LuaGetFieldString(), K3dLua::LuaGetGlobal(), K3dLua::LuaIsNumber(), K3dLua::LuaIsTable(), K3dLua::LuaToNumber(), m_pLua, m_strFc, and m_strOut.
Referenced by LoadGui().
void K3dGui::CreateDropDown | ( | const char * | _strContent | ) | [private] |
Find gui objects from content string and create list box.
Definition at line 917 of file K3dGui.cpp.
References FindListModel(), K3dGuiObject::GetName(), K3dGuiObject::GetObjectId(), K3dGuiObject::GetObjectType(), K3dGuiObject::GetPosX(), K3dGuiObject::GetPosY(), K3D_GUI_DROP_DOWN_OBJ, K_STR_NAME, K_STR_POS_X, K_STR_POS_Y, K3dLua::LuaGetFieldNumber(), K3dLua::LuaGetFieldString(), m_pLua, and m_tGuiDropDownArray.
Referenced by LoadGuiDropDown().
void K3dGui::LoadGuiCheckBoxes | ( | ) | [private] |
Load GUI Check Boxes from map file.
Definition at line 957 of file K3dGui.cpp.
References K3dGuiObject::GetName(), K3dGuiObject::GetObjectId(), K3dGuiObject::GetObjectType(), K3dGuiObject::GetPosX(), K3dGuiObject::GetPosY(), K3dString::GetString(), K3D_GUI_CHECK_BOX_OBJ, K_STR_CAPTION, K_STR_GUI_CHECK_BOX, K_STR_GUI_NUM_CHECK_BOXES, K_STR_MARKED, K_STR_NAME, K_STR_POS_X, K_STR_POS_Y, K3dLua::LuaError(), K3dLua::LuaGetFieldBool(), K3dLua::LuaGetFieldNumber(), K3dLua::LuaGetFieldString(), K3dLua::LuaGetGlobal(), K3dLua::LuaIsNumber(), K3dLua::LuaIsTable(), K3dLua::LuaToNumber(), m_pLua, m_strFc, m_strOut, and m_tGuiCheckBoxArray.
Referenced by LoadGui().
void K3dGui::LoadGuiRadioButtons | ( | ) | [private] |
Load GUI Radio Buttons from map file.
Definition at line 994 of file K3dGui.cpp.
References K3dGuiObject::GetName(), K3dGuiObject::GetObjectId(), K3dGuiObject::GetObjectType(), K3dGuiObject::GetPosX(), K3dGuiObject::GetPosY(), K3dString::GetString(), K3D_GUI_RADIO_BUTTON_OBJ, K_STR_CAPTION, K_STR_GROUP, K_STR_GUI_NUM_RADIO_BUTTONS, K_STR_GUI_RADIO_BUTTON, K_STR_MARKED, K_STR_NAME, K_STR_POS_X, K_STR_POS_Y, K3dLua::LuaError(), K3dLua::LuaGetFieldBool(), K3dLua::LuaGetFieldNumber(), K3dLua::LuaGetFieldString(), K3dLua::LuaGetGlobal(), K3dLua::LuaIsNumber(), K3dLua::LuaIsTable(), K3dLua::LuaToNumber(), m_pLua, m_strFc, m_strOut, and m_tGuiRadioButtonArray.
Referenced by LoadGui().
void K3dGui::LoadGuiSliders | ( | ) | [private] |
Load GUI sliders from map file.
Definition at line 1032 of file K3dGui.cpp.
References K3dGuiObject::GetName(), K3dGuiObject::GetObjectId(), K3dGuiObject::GetObjectType(), K3dGuiObject::GetPosX(), K3dGuiObject::GetPosY(), K3dString::GetString(), K3D_GUI_SLIDER_OBJ, K_STR_GUI_SLIDER, K_STR_HEIGHT, K_STR_NAME, K_STR_NUM_GUI_SLIDERS, K_STR_NUM_SLIDERS, K_STR_POS_X, K_STR_POS_Y, K_STR_SCALE_END, K_STR_SCALE_START, K_STR_WIDTH, K3dLua::LuaError(), K3dLua::LuaGetFieldNumber(), K3dLua::LuaGetFieldString(), K3dLua::LuaGetGlobal(), K3dLua::LuaIsNumber(), K3dLua::LuaIsTable(), K3dLua::LuaToNumber(), m_pLua, m_strFc, m_strOut, and m_tGuiSliderArray.
Referenced by LoadGui().
void K3dGui::LoadGuiContainers | ( | ) | [private] |
Load GUI Containers from map file.
Definition at line 1073 of file K3dGui.cpp.
References K3dGuiContainer::AddWinName(), FindSlider(), K3dGuiObject::GetName(), K3dGuiObject::GetObjectId(), K3dGuiObject::GetObjectType(), K3dGuiObject::GetPosX(), K3dGuiObject::GetPosY(), K3dString::GetString(), K3D_GUI_CONTAINER_OBJ, K_STR_GUI_CONTAINER, K_STR_HEIGHT, K_STR_NAME, K_STR_NUM_GUI_CONTAINERS, K_STR_NUM_SLIDERS, K_STR_NUM_WINS, K_STR_SLIDER, K_STR_TOP, K_STR_WIDTH, K_STR_WIN, K_STR_X, K_STR_Y, K3dLua::LuaError(), K3dLua::LuaGetFieldBool(), K3dLua::LuaGetFieldNumber(), K3dLua::LuaGetFieldString(), K3dLua::LuaGetGlobal(), K3dLua::LuaIsNumber(), K3dLua::LuaIsTable(), K3dLua::LuaToNumber(), m_pGui, m_pLua, m_strFc, m_strOut, and m_tGuiContainerArray.
Referenced by LoadGui().
K3dGuiSlider * K3dGui::FindSlider | ( | const char * | _strSliderName | ) | [private] |
Find slider by slider name.
K3dGuiSlider | Returns slider object |
Definition at line 1147 of file K3dGui.cpp.
References m_tGuiSliderArray.
Referenced by LoadGuiContainers(), and LoadGuiWindows().
K3dGuiIcon * K3dGui::FindIcon | ( | const char * | _strName | ) | [private] |
Find icon by icon name.
K3dGuiIcon | Returns icon object |
Definition at line 1410 of file K3dGui.cpp.
References m_tGuiIconArray.
Referenced by LoadGuiWindows().
K3dGuiLabel * K3dGui::FindLabel | ( | const char * | _strName | ) | [private] |
Find label by label name.
K3dGuiLabel | Returns label object |
Definition at line 1425 of file K3dGui.cpp.
References m_tGuiLabelArray.
Referenced by LoadGuiWindows().
K3dGuiButton * K3dGui::FindButton | ( | const char * | _strName | ) | [private] |
Find button by name.
K3dGuiButton | Returns button object |
Definition at line 1440 of file K3dGui.cpp.
References m_tGuiButtonArray.
Referenced by LoadGuiWindows().
K3dGuiTextField * K3dGui::FindTextField | ( | const char * | _strName | ) | [private] |
Find text field by text field name.
K3dGuiTextField | Returns text field object |
Definition at line 1718 of file K3dGui.cpp.
References m_tGuiTextFieldArray.
Referenced by LoadGuiWindows().
K3dGuiScrollArea * K3dGui::FindScrollArea | ( | const char * | _strName | ) | [private] |
Find Scroll Area by Scroll Area name.
K3dGuiScrollArea | Returns Scroll Area object |
Definition at line 1733 of file K3dGui.cpp.
References m_tGuiScrollAreaArray.
Referenced by LoadGuiWindows().
K3dGuiDropDown * K3dGui::FindDropDown | ( | const char * | _strName | ) | [private] |
Find Drop Down by Drop Down name.
K3dGuiDropDown | Returns Drop Down object |
Definition at line 1749 of file K3dGui.cpp.
References m_tGuiDropDownArray.
Referenced by LoadGuiWindows().
K3dGuiCheckBox * K3dGui::FindCheckBox | ( | const char * | _strName | ) | [private] |
Find Check Box by Check Box name.
K3dGuiCheckBox | Returns Check Box object |
Definition at line 1765 of file K3dGui.cpp.
References m_tGuiCheckBoxArray.
Referenced by LoadGuiWindows().
K3dGuiObject * K3dGui::FindGuiObject | ( | const char * | _strName | ) | [private] |
Find gui object by name.
K3dGuiObject* | Returns gui object |
Definition at line 657 of file K3dGui.cpp.
References m_tGuiButtonArray, m_tGuiCheckBoxArray, m_tGuiContainerArray, m_tGuiDropDownArray, m_tGuiFontArray, m_tGuiIconArray, m_tGuiImageArray, m_tGuiLabelArray, m_tGuiListBoxArray, m_tGuiListModelArray, m_tGuiRadioButtonArray, m_tGuiScrollAreaArray, m_tGuiSliderArray, m_tGuiTextBoxArray, m_tGuiTextFieldArray, and m_tGuiWindowArray.
Referenced by CreateScrollArea().
K3dGuiListModel * K3dGui::FindListModel | ( | const char * | _strName | ) | [private] |
Find List Model by name.
K3dGuiListModel | Returns List Model object |
Definition at line 873 of file K3dGui.cpp.
References m_tGuiListModelArray.
Referenced by CreateDropDown(), and CreateListBox().
K3dGuiRadioButton * K3dGui::FindRadioButton | ( | const char * | _strName | ) | [private] |
Find Radio button by Radio button name.
K3dGuiRadioButton | Returns Radio button object |
Definition at line 1780 of file K3dGui.cpp.
References m_tGuiRadioButtonArray.
Referenced by LoadGuiWindows().
K3dGuiImage * K3dGui::FindImage | ( | const char * | _strName | ) | [private] |
Find image by image name.
K3dGuiIcon | Returns image object |
Definition at line 1795 of file K3dGui.cpp.
References m_tGuiImageArray.
Referenced by LoadGuiIcons().
K3dGuiWindow * K3dGui::FindWindow | ( | const char * | _strName | ) | [private] |
Find window by window name.
K3dGuiIcon | Returns window object |
Definition at line 1872 of file K3dGui.cpp.
References m_tGuiWindowArray.
Referenced by SetGuiDependencies().
void K3dGui::SetGuiDependencies | ( | ) | [private] |
Set window and container dependencies.
Definition at line 1809 of file K3dGui.cpp.
References FindWindow(), K3dGuiObject::GetPosX(), m_tGuiContainerArray, and m_tGuiWindowArray.
Referenced by LoadGui().
void K3dGui::DrawGui | ( | ) |
Draw all gui.
Definition at line 162 of file K3dGui.cpp.
References m_bIsGuiDeleted, m_bIsLoadGui, and m_pGui.
Referenced by K3dMngGraphics::DrawMngGraphics().
void K3dGui::SetTargetPlane | ( | const int | _iWidth, | |
const int | _iHeight | |||
) |
Set target plane if resize window.
Definition at line 177 of file K3dGui.cpp.
References m_pGraphics.
Referenced by K3dEngine::ProcessEvent().
void K3dGui::LoadGui | ( | ) |
Load gui from map file.
Definition at line 183 of file K3dGui.cpp.
References K3dOptionsData::GetGraphicOption(), K3dSceneData::GetLua(), K3dString::GetString(), TGraphicOption::iHeight, TGraphicOption::iWidth, K_STR_LOAD_GUI, LoadGuiButtons(), LoadGuiCheckBoxes(), LoadGuiContainers(), LoadGuiDropDown(), LoadGuiFonts(), LoadGuiIcons(), LoadGuiImages(), LoadGuiLabels(), LoadGuiListBoxes(), LoadGuiListModels(), LoadGuiRadioButtons(), LoadGuiScrollAreas(), LoadGuiSliders(), LoadGuiTextBoxes(), LoadGuiTextFields(), LoadGuiWindows(), K3dLua::LuaError(), K3dLua::LuaGetGlobal(), K3dLua::LuaIsBoolean(), K3dLua::LuaToBoolean(), m_bIsGuiDeleted, m_bIsLoadGui, m_pGameData, m_pGraphics, m_pGui, m_pImageLoader, m_pInput, m_pLua, m_strFc, m_strOut, and SetGuiDependencies().
Referenced by K3dMngGraphics::InitMngGraphics().
void K3dGui::DeleteGui | ( | ) |
Delete all gui.
Definition at line 51 of file K3dGui.cpp.
References m_bIsGuiDeleted, m_bIsLoadGui, m_pGraphics, m_pGui, m_pImageLoader, m_pInput, m_tGuiButtonArray, m_tGuiCheckBoxArray, m_tGuiContainerArray, m_tGuiDropDownArray, m_tGuiFontArray, m_tGuiIconArray, m_tGuiImageArray, m_tGuiLabelArray, m_tGuiListBoxArray, m_tGuiListModelArray, m_tGuiRadioButtonArray, m_tGuiScrollAreaArray, m_tGuiSliderArray, m_tGuiTextBoxArray, m_tGuiTextFieldArray, and m_tGuiWindowArray.
Referenced by K3dMngGraphics::DeleteMngGraphics(), and ~K3dGui().
int K3dGui::FindContainerId | ( | const char * | _strName | ) |
Find container index by name.
int | Container index |
Definition at line 1485 of file K3dGui.cpp.
References m_tGuiContainerArray.
Referenced by FindGuiObjectId().
int K3dGui::FindButtonId | ( | const char * | _strName | ) |
Find button index by name.
int | Button index in button array |
Definition at line 1455 of file K3dGui.cpp.
References m_tGuiButtonArray.
Referenced by FindGuiObjectId().
int K3dGui::FindWindowId | ( | const char * | _strName | ) |
Find window index by name.
int | Window index in window array |
Definition at line 1470 of file K3dGui.cpp.
References m_tGuiWindowArray.
Referenced by FindGuiObjectId().
int K3dGui::FindListModelId | ( | const char * | _strName | ) |
Find list model index by name.
int | Window index in window array |
Definition at line 1500 of file K3dGui.cpp.
References m_tGuiListModelArray.
Referenced by FindGuiObjectId().
int K3dGui::FindListBoxId | ( | const char * | _strName | ) |
Find list box index by name.
int | Window index in window array |
Definition at line 1515 of file K3dGui.cpp.
References m_tGuiListBoxArray.
Referenced by FindGuiObjectId().
int K3dGui::FindGuiObjectId | ( | const char * | _strName, | |
const int | _iObjType | |||
) |
Find object index in gui data by ibject name and object type.
_strName | Object name | |
_iObjType | Object type |
int | Returns object index if object exists |
Definition at line 1532 of file K3dGui.cpp.
References FindButtonId(), FindContainerId(), FindListBoxId(), FindListModelId(), FindWindowId(), K3D_GUI_BUTTON_OBJ, K3D_GUI_CHECK_BOX_OBJ, K3D_GUI_CONTAINER_OBJ, K3D_GUI_DROP_DOWN_OBJ, K3D_GUI_FONT_OBJ, K3D_GUI_ICON_OBJ, K3D_GUI_IMAGE_OBJ, K3D_GUI_LABEL_OBJ, K3D_GUI_LIST_BOX_OBJ, K3D_GUI_LIST_MODEL_OBJ, K3D_GUI_RADIO_BUTTON_OBJ, K3D_GUI_SCROLL_AREA_OBJ, K3D_GUI_SLIDER_OBJ, K3D_GUI_TEXT_BOX_OBJ, K3D_GUI_TEXT_FIELD_OBJ, and K3D_GUI_WIN_OBJ.
Referenced by K3dVM::GetGuiObject().
void K3dGui::HideGui | ( | const int | _iObjId, | |
const int | _iObjType | |||
) |
Hide gui object.
_iObjId | Gui object index | |
_iObjType | Gui object type |
Definition at line 1583 of file K3dGui.cpp.
References HideContainer(), HideWindow(), K3D_GUI_BUTTON_OBJ, K3D_GUI_CHECK_BOX_OBJ, K3D_GUI_CONTAINER_OBJ, K3D_GUI_DROP_DOWN_OBJ, K3D_GUI_FONT_OBJ, K3D_GUI_ICON_OBJ, K3D_GUI_IMAGE_OBJ, K3D_GUI_LABEL_OBJ, K3D_GUI_LIST_BOX_OBJ, K3D_GUI_LIST_MODEL_OBJ, K3D_GUI_RADIO_BUTTON_OBJ, K3D_GUI_SCROLL_AREA_OBJ, K3D_GUI_SLIDER_OBJ, K3D_GUI_TEXT_BOX_OBJ, K3D_GUI_TEXT_FIELD_OBJ, and K3D_GUI_WIN_OBJ.
Referenced by K3dVM::HideGui().
void K3dGui::ShowGui | ( | const int | _iObjId, | |
const int | _iObjType | |||
) |
Show gui object.
_iObjId | Gui object index | |
_iObjType | Gui object type |
Definition at line 1629 of file K3dGui.cpp.
References K3D_GUI_BUTTON_OBJ, K3D_GUI_CHECK_BOX_OBJ, K3D_GUI_CONTAINER_OBJ, K3D_GUI_DROP_DOWN_OBJ, K3D_GUI_FONT_OBJ, K3D_GUI_ICON_OBJ, K3D_GUI_IMAGE_OBJ, K3D_GUI_LABEL_OBJ, K3D_GUI_LIST_BOX_OBJ, K3D_GUI_LIST_MODEL_OBJ, K3D_GUI_RADIO_BUTTON_OBJ, K3D_GUI_SCROLL_AREA_OBJ, K3D_GUI_SLIDER_OBJ, K3D_GUI_TEXT_BOX_OBJ, K3D_GUI_TEXT_FIELD_OBJ, K3D_GUI_WIN_OBJ, and ShowWindow().
Referenced by K3dVM::ShowGui().
void K3dGui::HideWindow | ( | const int | _iObjId | ) |
Hide gui window.
_iObjId | Window index |
Definition at line 1673 of file K3dGui.cpp.
References m_tGuiWindowArray.
Referenced by HideGui().
void K3dGui::ShowWindow | ( | const int | _iObjId | ) |
Show gui window.
_iObjId | Window index |
Definition at line 1703 of file K3dGui.cpp.
References m_tGuiWindowArray.
Referenced by ShowGui().
void K3dGui::HideContainer | ( | const int | _iObjId | ) |
Hide container gui.
_iObjId | Gui index |
Definition at line 1688 of file K3dGui.cpp.
References m_tGuiContainerArray.
Referenced by HideGui().
gcn::SDLInput* K3dGui::GetInput | ( | ) | [inline] |
Definition at line 181 of file K3dGui.h.
References m_pInput.
Referenced by K3dEngine::ProcessEvent().
K3dGuiButton* K3dGui::GetGuiButton | ( | const int | _iButtonId | ) | [inline] |
Get button.
_iButtonId | Button index |
K3dGuiButton* | Pointer to button |
Definition at line 189 of file K3dGui.h.
References m_tGuiButtonArray.
Referenced by K3dMenu::ButtonIsPressed().
K3dGuiListModel* K3dGui::GetGuiListModel | ( | const int | _iListModelId | ) | [inline] |
Get List Model.
_iListModelId | List Model index |
K3dGuiListModel* | Pointer to list model |
Definition at line 197 of file K3dGui.h.
References m_tGuiListModelArray.
Referenced by K3dMenu::ShowFileListBox().
K3dGuiListBox* K3dGui::GetGuiListBox | ( | const int | _iListBoxId | ) | [inline] |
Get List box.
_iListBoxId | List box index |
K3dGuiListBox* | Pointer to list box |
Definition at line 205 of file K3dGui.h.
References m_tGuiListBoxArray.
Referenced by K3dMenu::LoadMapFromListBox().
K3dGameData* K3dGui::m_pGameData [private] |
Global game data, data centered game system.
Reimplemented in K3dMenu, K3dScene, K3dMngGraphics, K3dMngGui, and K3dMngSystem.
Definition at line 95 of file K3dGui.h.
Referenced by K3dGui(), LoadGui(), LoadGuiFonts(), and LoadGuiImages().
gcn::Gui* K3dGui::m_pGui [private] |
Definition at line 96 of file K3dGui.h.
Referenced by DeleteGui(), DrawGui(), K3dGui(), LoadGui(), LoadGuiContainers(), and LoadGuiWindows().
Definition at line 97 of file K3dGui.h.
Referenced by DeleteGui(), FindGuiObject(), FindListModel(), FindListModelId(), GetGuiListModel(), and LoadGuiListModels().
TGuiWindow K3dGui::m_tGuiWindowArray [private] |
Definition at line 98 of file K3dGui.h.
Referenced by DeleteGui(), FindGuiObject(), FindWindow(), FindWindowId(), HideWindow(), LoadGuiWindows(), SetGuiDependencies(), and ShowWindow().
TGuiLabel K3dGui::m_tGuiLabelArray [private] |
Definition at line 99 of file K3dGui.h.
Referenced by DeleteGui(), FindGuiObject(), FindLabel(), and LoadGuiLabels().
TGuiIcon K3dGui::m_tGuiIconArray [private] |
Definition at line 100 of file K3dGui.h.
Referenced by DeleteGui(), FindGuiObject(), FindIcon(), and LoadGuiIcons().
TGuiButton K3dGui::m_tGuiButtonArray [private] |
Definition at line 101 of file K3dGui.h.
Referenced by DeleteGui(), FindButton(), FindButtonId(), FindGuiObject(), GetGuiButton(), and LoadGuiButtons().
TGuiFont K3dGui::m_tGuiFontArray [private] |
Definition at line 102 of file K3dGui.h.
Referenced by DeleteGui(), FindGuiObject(), and LoadGuiFonts().
TGuiTextField K3dGui::m_tGuiTextFieldArray [private] |
Definition at line 103 of file K3dGui.h.
Referenced by DeleteGui(), FindGuiObject(), FindTextField(), and LoadGuiTextFields().
TGuiTextBox K3dGui::m_tGuiTextBoxArray [private] |
Definition at line 104 of file K3dGui.h.
Referenced by CreateScrollArea(), DeleteGui(), FindGuiObject(), and LoadGuiTextBoxes().
TGuiScrollArea K3dGui::m_tGuiScrollAreaArray [private] |
Definition at line 105 of file K3dGui.h.
Referenced by CreateScrollArea(), DeleteGui(), FindGuiObject(), and FindScrollArea().
TGuiListBox K3dGui::m_tGuiListBoxArray [private] |
Definition at line 106 of file K3dGui.h.
Referenced by CreateListBox(), CreateScrollArea(), DeleteGui(), FindGuiObject(), FindListBoxId(), and GetGuiListBox().
TGuiDropDown K3dGui::m_tGuiDropDownArray [private] |
Definition at line 107 of file K3dGui.h.
Referenced by CreateDropDown(), DeleteGui(), FindDropDown(), and FindGuiObject().
TGuiCheckBox K3dGui::m_tGuiCheckBoxArray [private] |
Definition at line 108 of file K3dGui.h.
Referenced by DeleteGui(), FindCheckBox(), FindGuiObject(), and LoadGuiCheckBoxes().
Definition at line 109 of file K3dGui.h.
Referenced by DeleteGui(), FindGuiObject(), FindRadioButton(), and LoadGuiRadioButtons().
TGuiSlider K3dGui::m_tGuiSliderArray [private] |
Definition at line 110 of file K3dGui.h.
Referenced by DeleteGui(), FindGuiObject(), FindSlider(), and LoadGuiSliders().
TGuiImage K3dGui::m_tGuiImageArray [private] |
Definition at line 111 of file K3dGui.h.
Referenced by DeleteGui(), FindGuiObject(), FindImage(), and LoadGuiImages().
TGuiContainer K3dGui::m_tGuiContainerArray [private] |
Definition at line 112 of file K3dGui.h.
Referenced by CreateScrollArea(), DeleteGui(), FindContainerId(), FindGuiObject(), HideContainer(), LoadGuiContainers(), and SetGuiDependencies().
gcn::SDLInput* K3dGui::m_pInput [private] |
Definition at line 117 of file K3dGui.h.
Referenced by DeleteGui(), GetInput(), K3dGui(), and LoadGui().
gcn::OpenGLGraphics* K3dGui::m_pGraphics [private] |
Definition at line 118 of file K3dGui.h.
Referenced by DeleteGui(), K3dGui(), LoadGui(), and SetTargetPlane().
gcn::OpenGLSDLImageLoader* K3dGui::m_pImageLoader [private] |
K3dLua* K3dGui::m_pLua [private] |
Lua object for access to lua map files.
Definition at line 121 of file K3dGui.h.
Referenced by CreateDropDown(), CreateListBox(), CreateScrollArea(), LoadGui(), LoadGuiButtons(), LoadGuiCheckBoxes(), LoadGuiContainers(), LoadGuiDropDown(), LoadGuiFonts(), LoadGuiIcons(), LoadGuiImages(), LoadGuiLabels(), LoadGuiListBoxes(), LoadGuiListModels(), LoadGuiRadioButtons(), LoadGuiScrollAreas(), LoadGuiSliders(), LoadGuiTextBoxes(), LoadGuiTextFields(), and LoadGuiWindows().
K3dString K3dGui::m_strFc [private] |
Function string.
Definition at line 122 of file K3dGui.h.
Referenced by LoadGui(), LoadGuiButtons(), LoadGuiCheckBoxes(), LoadGuiContainers(), LoadGuiDropDown(), LoadGuiFonts(), LoadGuiIcons(), LoadGuiImages(), LoadGuiLabels(), LoadGuiListBoxes(), LoadGuiListModels(), LoadGuiRadioButtons(), LoadGuiScrollAreas(), LoadGuiSliders(), LoadGuiTextBoxes(), LoadGuiTextFields(), and LoadGuiWindows().
K3dString K3dGui::m_strOut [private] |
Output string.
Definition at line 123 of file K3dGui.h.
Referenced by LoadGui(), LoadGuiButtons(), LoadGuiCheckBoxes(), LoadGuiContainers(), LoadGuiDropDown(), LoadGuiFonts(), LoadGuiIcons(), LoadGuiImages(), LoadGuiLabels(), LoadGuiListBoxes(), LoadGuiListModels(), LoadGuiRadioButtons(), LoadGuiScrollAreas(), LoadGuiSliders(), LoadGuiTextBoxes(), LoadGuiTextFields(), and LoadGuiWindows().
bool K3dGui::m_bIsGuiDeleted [private] |
Is gui deleted ?
Definition at line 124 of file K3dGui.h.
Referenced by DeleteGui(), DrawGui(), and LoadGui().
bool K3dGui::m_bIsLoadGui [private] |