Mercurial > mm7
comparison GUI/UI/UIOptions.cpp @ 2542:bacf9809126a
.
author | a.parshin |
---|---|
date | Sun, 10 May 2015 02:04:52 +0200 |
parents | a902abdfc7f2 |
children | c674d547cc7c |
comparison
equal
deleted
inserted
replaced
2541:a902abdfc7f2 | 2542:bacf9809126a |
---|---|
20 | 20 |
21 | 21 |
22 | 22 |
23 | 23 |
24 OptionsMenuSkin options_menu_skin; // 507C60 | 24 OptionsMenuSkin options_menu_skin; // 507C60 |
25 | |
26 | |
27 GUIWindow *GameMenuUI_Load() | |
28 { | |
29 auto wnd = GUIWindow::Create(0, 0, window->GetWidth(), window->GetHeight(), WINDOW_GameMenu, 0, 0); | |
30 uTextureID_Options = pIcons_LOD->LoadTexture("options", TEXTURE_16BIT_PALETTE); | |
31 uTextureID_New1 = pIcons_LOD->LoadTexture("new1", TEXTURE_16BIT_PALETTE); | |
32 uTextureID_Load1 = pIcons_LOD->LoadTexture("load1", TEXTURE_16BIT_PALETTE); | |
33 uTextureID_Save1 = pIcons_LOD->LoadTexture("save1", TEXTURE_16BIT_PALETTE); | |
34 uTextureID_Controls1 = pIcons_LOD->LoadTexture("controls1", TEXTURE_16BIT_PALETTE); | |
35 uTextureID_Resume1 = pIcons_LOD->LoadTexture("resume1", TEXTURE_16BIT_PALETTE); | |
36 uTextureID_Quit1 = pIcons_LOD->LoadTexture("quit1", TEXTURE_16BIT_PALETTE); | |
37 pBtn_NewGame = wnd->CreateButton(0x13u, 0x9Bu, 0xD6u, 0x28u, 1, 0, UIMSG_StartNewGame, 0, 0x4Eu, | |
38 pGlobalTXT_LocalizationStrings[614],// "New Game" | |
39 pIcons_LOD->GetTexture(uTextureID_New1), 0); | |
40 pBtn_SaveGame = wnd->CreateButton(0x13u, 0xD1u, 0xD6u, 0x28u, 1, 0, UIMSG_Game_OpenSaveGameDialog, 0, 0x53u, | |
41 pGlobalTXT_LocalizationStrings[615],// "Save Game" | |
42 pIcons_LOD->GetTexture(uTextureID_Save1), 0); | |
43 pBtn_LoadGame = wnd->CreateButton(19, 263, 0xD6u, 0x28u, 1, 0, UIMSG_Game_OpenLoadGameDialog, 0, 0x4Cu, | |
44 pGlobalTXT_LocalizationStrings[616],// "Load Game" | |
45 pIcons_LOD->GetTexture(uTextureID_Load1), 0); | |
46 pBtn_GameControls = wnd->CreateButton(241, 155, 214, 40, 1, 0, UIMSG_Game_OpenOptionsDialog, 0, 0x43u, | |
47 pGlobalTXT_LocalizationStrings[617],// ""Sound, Keyboard, Game Options:"" | |
48 pIcons_LOD->GetTexture(uTextureID_Controls1), 0); | |
49 pBtn_QuitGame = wnd->CreateButton(241, 209, 214, 40, 1, 0, UIMSG_Quit, 0, 0x51u, | |
50 pGlobalTXT_LocalizationStrings[618],// "Quit" | |
51 pIcons_LOD->GetTexture(uTextureID_Quit1), 0); | |
52 pBtn_Resume = wnd->CreateButton(241, 263, 214, 40, 1, 0, UIMSG_GameMenu_ReturnToGame, 0, 0x52u, | |
53 pGlobalTXT_LocalizationStrings[619],// "Return to Game" | |
54 pIcons_LOD->GetTexture(uTextureID_Resume1), 0); | |
55 wnd->_41D08F_set_keyboard_control_group(6, 1, 0, 0); | |
56 | |
57 return wnd; | |
58 } | |
25 | 59 |
26 | 60 |
27 std::array<bool, 28> GameMenuUI_InvaligKeyBindingsFlags; // 506E6C | 61 std::array<bool, 28> GameMenuUI_InvaligKeyBindingsFlags; // 506E6C |
28 //----- (00414D24) -------------------------------------------------------- | 62 //----- (00414D24) -------------------------------------------------------- |
29 static unsigned int GameMenuUI_GetKeyBindingColor(int key_index) | 63 static unsigned int GameMenuUI_GetKeyBindingColor(int key_index) |