World of Might and Magic  0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
Указатель Классы Пространства имен Файлы Функции Переменные Определения типов Перечисления Элементы перечислений Друзья Группы Страницы
Файл GUIButton.h

См. исходные тексты.

Классы

class  GUIButton
 

Функции

void CreateButtonInColumn (int a1, unsigned int a2)
 
void UI_CreateEndConversationButton ()
 

Переменные

GUIButtonpBtn_CloseBook
 
GUIButtonpBtn_InstallRemoveSpell
 
GUIButtonpBtn_Autonotes_Instructors
 
GUIButtonpBtn_Autonotes_Misc
 
GUIButtonpBtn_Book_6
 
GUIButtonpBtn_Book_5
 
GUIButtonpBtn_Book_4
 
GUIButtonpBtn_Book_3
 
GUIButtonpBtn_Book_2
 
GUIButtonpBtn_Book_1
 
GUIButtonpPlayerCreationUI_BtnReset
 
GUIButtonpPlayerCreationUI_BtnOK
 
GUIButtonpBtn_ExitCancel
 
GUIButtonpBtn_YES
 
GUIButtonpPlayerCreationUI_BtnPlus
 
GUIButtonpPlayerCreationUI_BtnMinus
 
GUIButtonpButton_RestUI_Main
 
GUIButtonpButton_RestUI_Exit
 
GUIButtonpButton_RestUI_Wait5Minutes
 
GUIButtonpButton_RestUI_WaitUntilDawn
 
GUIButtonpButton_RestUI_Wait1Hour
 
GUIButtonpCharacterScreen_ExitBtn
 
GUIButtonpCharacterScreen_AwardsBtn
 
GUIButtonpCharacterScreen_InventoryBtn
 
GUIButtonpCharacterScreen_SkillsBtn
 
GUIButtonpCharacterScreen_StatsBtn
 
GUIButtonpCharacterScreen_DollBtn
 
GUIButtonpCharacterScreen_DetalizBtn
 
GUIButtonpBtn_NPCRight
 
GUIButtonpBtn_NPCLeft
 
GUIButtonpBtn_GameSettings
 
GUIButtonpBtn_QuickReference
 
GUIButtonpBtn_CastSpell
 
GUIButtonpBtn_Rest
 
GUIButtonpBtn_History
 
GUIButtonpBtn_Calendar
 
GUIButtonpBtn_Maps
 
GUIButtonpBtn_Autonotes
 
GUIButtonpBtn_Quests
 
GUIButtonpMMT_MainMenu_BtnMM6
 
GUIButtonpMMT_MainMenu_BtnMM7
 
GUIButtonpMMT_MainMenu_BtnMM8
 
GUIButtonpMMT_MainMenu_BtnContinue
 
GUIButtonpMMT_MainMenu_BtnExit
 
GUIButtonpBtn_Up
 
GUIButtonpBtn_Down
 
GUIButtonptr_507BA4
 
GUIButtonpBtn_Resume
 
GUIButtonpBtn_QuitGame
 
GUIButtonpBtn_GameControls
 
GUIButtonpBtn_LoadGame
 
GUIButtonpBtn_SaveGame
 
GUIButtonpBtn_NewGame
 
GUIButtonpBtn_SliderRight
 
GUIButtonpBtn_SliderLeft
 
GUIButtonpBtnDownArrow
 
GUIButtonpBtnArrowUp
 
GUIButtonpBtnCancel
 
GUIButtonpBtnLoadSlot
 
std::array< GUIButton *, 4 > pCreationUI_BtnPressRight2
 
std::array< GUIButton *, 4 > pCreationUI_BtnPressLeft2
 
std::array< GUIButton *, 4 > pCreationUI_BtnPressLeft
 
std::array< GUIButton *, 4 > pCreationUI_BtnPressRight
 

Функции

◆ CreateButtonInColumn()

void CreateButtonInColumn ( int  a1,
unsigned int  a2 
)

См. определение в файле GUIButton.cpp строка 117

117  {
118  pDialogueWindow->CreateButton(480, 30 * column_pos + 146, 140, 30, 1, 0,
119  UIMSG_SelectShopDialogueOption, control_id, 0,
120  "");
121 }

Перекрестные ссылки GUIWindow::CreateButton(), pDialogueWindow и UIMSG_SelectShopDialogueOption.

Используется в FillAviableSkillsToTeach(), InitializaDialogueOptions(), InitializaDialogueOptions_Shops() и InitializaDialogueOptions_Tavern().

+ Граф вызовов:
+ Граф вызова функции:

◆ UI_CreateEndConversationButton()

void UI_CreateEndConversationButton ( )

См. определение в файле GUIButton.cpp строка 170

170  {
172  pDialogueWindow = new GUIWindow(WINDOW_Dialogue, 0, 0, window->GetWidth(), 345, 0);
174  471, 445, 169, 35, 1, 0, UIMSG_Escape, 0, 0,
175  localization->GetString(74), // "End Conversation"
176  {{ui_exit_cancel_button_background}});
177  pDialogueWindow->CreateButton(8, 8, 450, 320, 1, 0, UIMSG_BuyInShop_Identify_Repair, 0, 0, "");
178 }

Перекрестные ссылки GUIWindow::CreateButton(), Localization::GetString(), localization, pBtn_ExitCancel, pDialogueWindow, GUIWindow::Release(), UIMSG_Escape и WINDOW_Dialogue.

Используется в HouseDialogPressCloseBtn().

+ Граф вызовов:
+ Граф вызова функции:

Переменные

◆ pBtn_CloseBook

GUIButton* pBtn_CloseBook

См. определение в файле GUIButton.cpp строка 14

Используется в GUIWindow_Spellbook::OpenSpellbook().

◆ pBtn_InstallRemoveSpell

GUIButton* pBtn_InstallRemoveSpell

См. определение в файле GUIButton.cpp строка 15

Используется в Application::Game::EventLoop() и GUIWindow_Spellbook::OpenSpellbook().

◆ pBtn_Autonotes_Instructors

GUIButton* pBtn_Autonotes_Instructors

См. определение в файле GUIButton.cpp строка 16

Используется в Application::Game::EventLoop().

◆ pBtn_Autonotes_Misc

GUIButton* pBtn_Autonotes_Misc

См. определение в файле GUIButton.cpp строка 17

Используется в Application::Game::EventLoop().

◆ pBtn_Book_6

GUIButton* pBtn_Book_6

См. определение в файле GUIButton.cpp строка 18

Используется в Application::Game::EventLoop().

◆ pBtn_Book_5

GUIButton* pBtn_Book_5

См. определение в файле GUIButton.cpp строка 19

Используется в Application::Game::EventLoop().

◆ pBtn_Book_4

GUIButton* pBtn_Book_4

См. определение в файле GUIButton.cpp строка 20

Используется в Application::Game::EventLoop().

◆ pBtn_Book_3

GUIButton* pBtn_Book_3

См. определение в файле GUIButton.cpp строка 21

Используется в Application::Game::EventLoop().

◆ pBtn_Book_2

GUIButton* pBtn_Book_2

См. определение в файле GUIButton.cpp строка 22

Используется в Application::Game::EventLoop(), GUIWindow_LloydsBook::GUIWindow_LloydsBook() и GUIWindow_LloydsBook::Update().

◆ pBtn_Book_1

◆ pPlayerCreationUI_BtnReset

GUIButton* pPlayerCreationUI_BtnReset

См. определение в файле GUIButton.cpp строка 26

Используется в CreateParty_EventLoop() и GUIWindow_PartyCreation::GUIWindow_PartyCreation().

◆ pPlayerCreationUI_BtnOK

GUIButton* pPlayerCreationUI_BtnOK

См. определение в файле GUIButton.cpp строка 27

Используется в CreateParty_EventLoop() и GUIWindow_PartyCreation::GUIWindow_PartyCreation().

◆ pBtn_ExitCancel

◆ pBtn_YES

GUIButton* pBtn_YES

См. определение в файле GUIButton.cpp строка 29

Используется в _4B4224_UpdateNPCTopics().

◆ pPlayerCreationUI_BtnPlus

GUIButton* pPlayerCreationUI_BtnPlus

См. определение в файле GUIButton.cpp строка 30

Используется в CreateParty_EventLoop() и GUIWindow_PartyCreation::GUIWindow_PartyCreation().

◆ pPlayerCreationUI_BtnMinus

GUIButton* pPlayerCreationUI_BtnMinus

См. определение в файле GUIButton.cpp строка 31

Используется в CreateParty_EventLoop() и GUIWindow_PartyCreation::GUIWindow_PartyCreation().

◆ pButton_RestUI_Main

GUIButton* pButton_RestUI_Main

См. определение в файле GUIButton.cpp строка 34

Используется в GUIWindow_Rest::GUIWindow_Rest().

◆ pButton_RestUI_Exit

GUIButton* pButton_RestUI_Exit

См. определение в файле GUIButton.cpp строка 35

Используется в Application::Game::EventLoop(), GUIWindow_Rest::GUIWindow_Rest() и GUIWindow_Rest::Update().

◆ pButton_RestUI_Wait5Minutes

GUIButton* pButton_RestUI_Wait5Minutes

См. определение в файле GUIButton.cpp строка 36

Используется в Application::Game::EventLoop(), GUIWindow_Rest::GUIWindow_Rest() и GUIWindow_Rest::Update().

◆ pButton_RestUI_WaitUntilDawn

GUIButton* pButton_RestUI_WaitUntilDawn

См. определение в файле GUIButton.cpp строка 37

Используется в Application::Game::EventLoop(), GUIWindow_Rest::GUIWindow_Rest(), GUIWindow_Rest::Update() и GUIWindow_RestWindow::Update().

◆ pButton_RestUI_Wait1Hour

GUIButton* pButton_RestUI_Wait1Hour

См. определение в файле GUIButton.cpp строка 38

Используется в Application::Game::EventLoop(), GUIWindow_Rest::GUIWindow_Rest() и GUIWindow_Rest::Update().

◆ pCharacterScreen_ExitBtn

GUIButton* pCharacterScreen_ExitBtn

См. определение в файле GUIButton.cpp строка 41

Используется в Application::Game::EventLoop() и CastSpellInfo::GetCastSpellInInventoryWindow().

◆ pCharacterScreen_AwardsBtn

GUIButton* pCharacterScreen_AwardsBtn

См. определение в файле GUIButton.cpp строка 42

Используется в GUIWindow_CharacterRecord::ShowAwardsTab() и GUIWindow_CharacterRecord::Update().

◆ pCharacterScreen_InventoryBtn

GUIButton* pCharacterScreen_InventoryBtn

См. определение в файле GUIButton.cpp строка 43

Используется в GUIWindow_CharacterRecord::ShowInventoryTab() и GUIWindow_CharacterRecord::Update().

◆ pCharacterScreen_SkillsBtn

GUIButton* pCharacterScreen_SkillsBtn

См. определение в файле GUIButton.cpp строка 44

Используется в GUIWindow_CharacterRecord::ShowSkillsTab() и GUIWindow_CharacterRecord::Update().

◆ pCharacterScreen_StatsBtn

GUIButton* pCharacterScreen_StatsBtn

◆ pCharacterScreen_DollBtn

GUIButton* pCharacterScreen_DollBtn

См. определение в файле GUIButton.cpp строка 46

Используется в GUIWindow_CharacterRecord::ToggleRingsOverlay().

◆ pCharacterScreen_DetalizBtn

GUIButton* pCharacterScreen_DetalizBtn

См. определение в файле GUIButton.cpp строка 47

Используется в CharacterUI_DrawPaperdollWithRingOverlay() и GUIWindow_CharacterRecord::ToggleRingsOverlay().

◆ pBtn_NPCRight

GUIButton* pBtn_NPCRight

См. определение в файле GUIButton.cpp строка 50

Используется в _42777D_CastSpell_UseWand_ShootArrow() и Application::Game::EventLoop().

◆ pBtn_NPCLeft

GUIButton* pBtn_NPCLeft

См. определение в файле GUIButton.cpp строка 51

Используется в _42777D_CastSpell_UseWand_ShootArrow() и Application::Game::EventLoop().

◆ pBtn_GameSettings

GUIButton* pBtn_GameSettings

См. определение в файле GUIButton.cpp строка 52

Используется в Application::Game::EventLoop().

◆ pBtn_QuickReference

GUIButton* pBtn_QuickReference

См. определение в файле GUIButton.cpp строка 53

Используется в Application::Game::EventLoop().

◆ pBtn_CastSpell

GUIButton* pBtn_CastSpell

См. определение в файле GUIButton.cpp строка 54

Используется в Application::Game::EventLoop().

◆ pBtn_Rest

GUIButton* pBtn_Rest

См. определение в файле GUIButton.cpp строка 55

Используется в PrepareToLoadRestUI().

◆ pBtn_History

GUIButton* pBtn_History

См. определение в файле GUIButton.cpp строка 56

Используется в GUIWindow_JournalBook::GUIWindow_JournalBook().

◆ pBtn_Calendar

GUIButton* pBtn_Calendar

См. определение в файле GUIButton.cpp строка 57

Используется в GUIWindow_CalendarBook::GUIWindow_CalendarBook().

◆ pBtn_Maps

GUIButton* pBtn_Maps

См. определение в файле GUIButton.cpp строка 58

Используется в GUIWindow_MapBook::GUIWindow_MapBook().

◆ pBtn_Autonotes

GUIButton* pBtn_Autonotes

См. определение в файле GUIButton.cpp строка 59

Используется в GUIWindow_AutonotesBook::GUIWindow_AutonotesBook().

◆ pBtn_Quests

GUIButton* pBtn_Quests

См. определение в файле GUIButton.cpp строка 60

Используется в GUIWindow_QuestBook::GUIWindow_QuestBook() и UI_Create().

◆ pMMT_MainMenu_BtnMM6

GUIButton* pMMT_MainMenu_BtnMM6

См. определение в файле GUIButton.cpp строка 63

◆ pMMT_MainMenu_BtnMM7

GUIButton* pMMT_MainMenu_BtnMM7

См. определение в файле GUIButton.cpp строка 64

◆ pMMT_MainMenu_BtnMM8

GUIButton* pMMT_MainMenu_BtnMM8

См. определение в файле GUIButton.cpp строка 65

◆ pMMT_MainMenu_BtnContinue

GUIButton* pMMT_MainMenu_BtnContinue

См. определение в файле GUIButton.cpp строка 66

◆ pMMT_MainMenu_BtnExit

GUIButton* pMMT_MainMenu_BtnExit

См. определение в файле GUIButton.cpp строка 67

◆ pBtn_Up

GUIButton* pBtn_Up

См. определение в файле GUIButton.cpp строка 70

Используется в CreateAwardsScrollBar(), Application::Game::EventLoop() и ReleaseAwardsScrollBar().

◆ pBtn_Down

GUIButton* pBtn_Down

См. определение в файле GUIButton.cpp строка 71

Используется в CreateAwardsScrollBar(), Application::Game::EventLoop() и ReleaseAwardsScrollBar().

◆ ptr_507BA4

GUIButton* ptr_507BA4

См. определение в файле GUIButton.cpp строка 72

Используется в ReleaseAwardsScrollBar().

◆ pBtn_Resume

GUIButton* pBtn_Resume

См. определение в файле GUIButton.cpp строка 74

◆ pBtn_QuitGame

GUIButton* pBtn_QuitGame

См. определение в файле GUIButton.cpp строка 75

◆ pBtn_GameControls

GUIButton* pBtn_GameControls

См. определение в файле GUIButton.cpp строка 76

◆ pBtn_LoadGame

GUIButton* pBtn_LoadGame

См. определение в файле GUIButton.cpp строка 77

◆ pBtn_SaveGame

GUIButton* pBtn_SaveGame

См. определение в файле GUIButton.cpp строка 78

◆ pBtn_NewGame

GUIButton* pBtn_NewGame

См. определение в файле GUIButton.cpp строка 79

Используется в GUIWindow_GameMenu::GUIWindow_GameMenu().

◆ pBtn_SliderRight

GUIButton* pBtn_SliderRight

См. определение в файле GUIButton.cpp строка 81

Используется в Application::Menu::EventLoop() и GUIWindow_GameOptions::GUIWindow_GameOptions().

◆ pBtn_SliderLeft

GUIButton* pBtn_SliderLeft

См. определение в файле GUIButton.cpp строка 82

Используется в Application::Menu::EventLoop() и GUIWindow_GameOptions::GUIWindow_GameOptions().

◆ pBtnDownArrow

GUIButton* pBtnDownArrow

См. определение в файле GUIButton.cpp строка 85

Используется в Application::Menu::EventLoop(), GUIWindow_Load::GUIWindow_Load(), GUIWindow_Save::GUIWindow_Save() и MainMenuLoad_EventLoop().

◆ pBtnArrowUp

GUIButton* pBtnArrowUp

См. определение в файле GUIButton.cpp строка 86

Используется в Application::Menu::EventLoop(), GUIWindow_Load::GUIWindow_Load(), GUIWindow_Save::GUIWindow_Save() и MainMenuLoad_EventLoop().

◆ pBtnCancel

◆ pBtnLoadSlot

GUIButton* pBtnLoadSlot

См. определение в файле GUIButton.cpp строка 88

Используется в Application::Menu::EventLoop(), GUIWindow_Load::GUIWindow_Load(), GUIWindow_Save::GUIWindow_Save() и MainMenuLoad_EventLoop().

◆ pCreationUI_BtnPressRight2

std::array<GUIButton*, 4> pCreationUI_BtnPressRight2

См. определение в файле GUIButton.cpp строка 90

Используется в CreateParty_EventLoop() и GUIWindow_PartyCreation::GUIWindow_PartyCreation().

◆ pCreationUI_BtnPressLeft2

std::array<GUIButton*, 4> pCreationUI_BtnPressLeft2

См. определение в файле GUIButton.cpp строка 91

Используется в CreateParty_EventLoop() и GUIWindow_PartyCreation::GUIWindow_PartyCreation().

◆ pCreationUI_BtnPressLeft

std::array<GUIButton*, 4> pCreationUI_BtnPressLeft

См. определение в файле GUIButton.cpp строка 92

Используется в CreateParty_EventLoop() и GUIWindow_PartyCreation::GUIWindow_PartyCreation().

◆ pCreationUI_BtnPressRight

std::array<GUIButton*, 4> pCreationUI_BtnPressRight

См. определение в файле GUIButton.cpp строка 93

Используется в CreateParty_EventLoop() и GUIWindow_PartyCreation::GUIWindow_PartyCreation().

Localization::GetString
const char * GetString(unsigned int index) const
Definition: Localization.cpp:13
UIMSG_Escape
@ UIMSG_Escape
Definition: GUIWindow.h:96
GUIWindow
Definition: GUIWindow.h:433
GUIWindow::CreateButton
GUIButton * CreateButton(int x, int y, int width, int height, int a6, int a7, UIMessageType msg, unsigned int msg_param, uint8_t hotkey, const String &label, const std::vector< Image * > &textures=std::vector< Image * >())
Definition: GUIWindow.cpp:717
localization
Localization * localization
Definition: Localization.cpp:11
GUIWindow::Release
virtual void Release()
Definition: GUIWindow.cpp:292
UIMSG_SelectShopDialogueOption
@ UIMSG_SelectShopDialogueOption
Definition: GUIWindow.h:194
pBtn_ExitCancel
GUIButton * pBtn_ExitCancel
Definition: GUIButton.cpp:28
WINDOW_Dialogue
@ WINDOW_Dialogue
Definition: GUIWindow.h:298
window
EGLSurface EGLNativeWindowType * window
Definition: SDL_egl.h:1580
UIMSG_BuyInShop_Identify_Repair
@ UIMSG_BuyInShop_Identify_Repair
Definition: GUIWindow.h:66
pDialogueWindow
GUIWindow * pDialogueWindow
Definition: GUIWindow.cpp:50