mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-12-01 14:15:53 +01:00
39 lines
1.0 KiB
C
39 lines
1.0 KiB
C
|
/* Copyright (c) 2002-2012 Croteam Ltd. All rights reserved. */
|
||
|
|
||
|
#ifndef SE_INCL_GAME_MENU_H
|
||
|
#define SE_INCL_GAME_MENU_H
|
||
|
#ifdef PRAGMA_ONCE
|
||
|
#pragma once
|
||
|
#endif
|
||
|
|
||
|
|
||
|
class CGameMenu {
|
||
|
public:
|
||
|
CListHead gm_lhGadgets;
|
||
|
CGameMenu *gm_pgmParentMenu;
|
||
|
BOOL gm_bPopup;
|
||
|
const char *gm_strName; // menu name (for mod interface only)
|
||
|
class CMenuGadget *gm_pmgSelectedByDefault;
|
||
|
class CMenuGadget *gm_pmgArrowUp;
|
||
|
class CMenuGadget *gm_pmgArrowDn;
|
||
|
class CMenuGadget *gm_pmgListTop;
|
||
|
class CMenuGadget *gm_pmgListBottom;
|
||
|
INDEX gm_iListOffset;
|
||
|
INDEX gm_iListWantedItem; // item you want to focus initially
|
||
|
INDEX gm_ctListVisible;
|
||
|
INDEX gm_ctListTotal;
|
||
|
CGameMenu(void);
|
||
|
void ScrollList(INDEX iDir);
|
||
|
void KillAllFocuses(void);
|
||
|
virtual void Initialize_t(void);
|
||
|
virtual void Destroy(void);
|
||
|
virtual void StartMenu(void);
|
||
|
virtual void FillListItems(void);
|
||
|
virtual void EndMenu(void);
|
||
|
// return TRUE if handled
|
||
|
virtual BOOL OnKeyDown(int iVKey);
|
||
|
virtual BOOL OnChar(MSG msg);
|
||
|
virtual void Think(void);
|
||
|
};
|
||
|
|
||
|
#endif /* include-once check. */
|