#include <K3dMenu.h>
Inheritance diagram for K3dMenu:
Public Member Functions | |
K3dMenu (K3dGameData *_pGameData) | |
~K3dMenu () | |
bool | ButtonIsPressed (const int _iButtonId) |
Check if button is pressed. | |
void | ShowFileListBox (const int _iListModelId, const char *_strPath) |
Show list box with path files. | |
bool | LoadMapFromListBox (const int _iListBoxId, const char *_strPath) |
Load selected test in main menu list box. | |
Private Attributes | |
K3dGameData * | m_pGameData |
Data centered game system. |
Definition at line 40 of file K3dMenu.h.
K3dMenu::K3dMenu | ( | K3dGameData * | _pGameData | ) |
K3dMenu::~K3dMenu | ( | ) |
Definition at line 49 of file K3dMenu.cpp.
bool K3dMenu::ButtonIsPressed | ( | const int | _iButtonId | ) |
Check if button is pressed.
_iButtonId | Button index |
bool | True if button is pressed |
Definition at line 67 of file K3dMenu.cpp.
References K3dGui::GetGuiButton().
Referenced by K3dVM::ButtonIsPressed().
void K3dMenu::ShowFileListBox | ( | const int | _iListModelId, | |
const char * | _strPath | |||
) |
Show list box with path files.
_iListModelId | List model index | |
_strPath | Files path |
Definition at line 92 of file K3dMenu.cpp.
References K3dGuiListModel::AddElement(), K3dGuiListModel::DeleteElements(), K3dDir::GetDirFileArray(), K3dGui::GetGuiListModel(), K3dSceneData::GetPath(), K3dString::GetString(), K3dString::GetStrTok(), K_PATH_APP, m_pGameData, and K3dDir::OpenDirectory().
Referenced by K3dVM::ShowFileListBox().
bool K3dMenu::LoadMapFromListBox | ( | const int | _iListBoxId, | |
const char * | _strPath | |||
) |
Load selected test in main menu list box.
Definition at line 134 of file K3dMenu.cpp.
References K3dGui::GetGuiListBox(), K3dSceneData::GetScene(), K3dString::GetString(), K_STR_DOT_LUA, K3dScene::LoadNewScript(), and m_pGameData.
Referenced by K3dVM::LoadMapFromListBox().
K3dGameData* K3dMenu::m_pGameData [private] |
Data centered game system.
Reimplemented from K3dGui.
Reimplemented in K3dScene, K3dMngGraphics, K3dMngGui, and K3dMngSystem.
Definition at line 42 of file K3dMenu.h.
Referenced by K3dMenu(), LoadMapFromListBox(), and ShowFileListBox().