mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Fixed improper binding and text location
This commit is contained in:
parent
043f8cba22
commit
2ef95ddba9
1 changed files with 6 additions and 6 deletions
|
@ -118,14 +118,14 @@ qboolean UIBindButton::KeyEvent(int key, unsigned int time)
|
|||
return qfalse;
|
||||
}
|
||||
|
||||
if (key == K_ESCAPE) {
|
||||
m_getkey = false;
|
||||
uWinMan.SetBindActive(NULL);
|
||||
uii.Snd_PlaySound(m_entersound);
|
||||
} else {
|
||||
if (key != K_ESCAPE) {
|
||||
uWinMan.BindKeyToCommand(m_bindcommand, key, m_bindindex, m_alternate);
|
||||
}
|
||||
|
||||
m_getkey = false;
|
||||
uWinMan.SetBindActive(NULL);
|
||||
uii.Snd_PlaySound(m_entersound);
|
||||
|
||||
return qtrue;
|
||||
}
|
||||
|
||||
|
@ -194,7 +194,7 @@ void UIBindButton::DrawUnpressed(void)
|
|||
}
|
||||
|
||||
m_font->PrintJustified(
|
||||
UIRect2D(clientFrame.size.width, clientFrame.size.height, clientFrame.pos.x + 1, clientFrame.pos.y + 1),
|
||||
UIRect2D(clientFrame.pos.x + 1, clientFrame.pos.y + 1, clientFrame.size.width, clientFrame.size.height),
|
||||
m_iFontAlignmentHorizontal,
|
||||
m_iFontAlignmentVertical,
|
||||
Sys_LV_CL_ConvertString(s),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue