Mercurial > mm7
comparison UIOptions.cpp @ 1038:39f42990698f
Cleanings
author | Nomad |
---|---|
date | Thu, 23 May 2013 03:29:29 +0200 |
parents | f93d17337113 |
children | 8c02e6f74b29 |
comparison
equal
deleted
inserted
replaced
1035:306ec23b37df | 1038:39f42990698f |
---|---|
87 void GameMenuUI_DrawKeyBindings() | 87 void GameMenuUI_DrawKeyBindings() |
88 { | 88 { |
89 signed int v4; // ecx@7 | 89 signed int v4; // ecx@7 |
90 signed int v5; // eax@8 | 90 signed int v5; // eax@8 |
91 | 91 |
92 if ( pGUIWindow_CurrentMenu->field_40 == 2 ) | 92 if ( pGUIWindow_CurrentMenu->receives_keyboard_input_2 == WINDOW_INPUT_CONFIRMED) |
93 { | 93 { |
94 pPrevVirtualCidesMapping[uGameMenuUI_CurentlySelectedKeyIdx] = pKeyActionMap->pPressedKeysBuffer[0]; | 94 pPrevVirtualCidesMapping[uGameMenuUI_CurentlySelectedKeyIdx] = pKeyActionMap->pPressedKeysBuffer[0]; |
95 memset(GameMenuUI_InvaligKeyBindingsFlags, 0, sizeof(GameMenuUI_InvaligKeyBindingsFlags)); | 95 memset(GameMenuUI_InvaligKeyBindingsFlags, 0, sizeof(GameMenuUI_InvaligKeyBindingsFlags)); |
96 v4 = 0; | 96 v4 = 0; |
97 do | 97 do |
109 while ( v5 < 28 ); | 109 while ( v5 < 28 ); |
110 ++v4; | 110 ++v4; |
111 } | 111 } |
112 while ( v4 < 28 ); | 112 while ( v4 < 28 ); |
113 uGameMenuUI_CurentlySelectedKeyIdx = -1; | 113 uGameMenuUI_CurentlySelectedKeyIdx = -1; |
114 pGUIWindow_CurrentMenu->field_40 = 0; | 114 pGUIWindow_CurrentMenu->receives_keyboard_input_2 = WINDOW_INPUT_NONE; |
115 } | 115 } |
116 pRenderer->DrawTextureIndexed(8, 8, pIcons_LOD->GetTexture(uTextureID_Optkb[0])); | 116 pRenderer->DrawTextureIndexed(8, 8, pIcons_LOD->GetTexture(uTextureID_Optkb[0])); |
117 if ( KeyboardPageNum == 1 ) | 117 if ( KeyboardPageNum == 1 ) |
118 { | 118 { |
119 pRenderer->DrawTextureIndexed(0x13, 0x12E, pIcons_LOD->GetTexture(uTextureID_Optkb[3])); | 119 pRenderer->DrawTextureIndexed(0x13, 0x12E, pIcons_LOD->GetTexture(uTextureID_Optkb[3])); |