Fixing selection issue on end-race screen (#3008)
* Small clarification to prevent build errors Building outside of this directory prevents the executable from launching, this small addition can help prevent this issue from happening. * Initial Commit * Code cleanup * Fix compile error * Fix incorrect comparison * Fix focusing erorr twice over It may be worth making 'setfocusable' part of setvisible
This commit is contained in:
parent
28f81b2a85
commit
53827cbe21
@ -201,6 +201,7 @@ void RaceResultGUI::enableAllButtons()
|
|||||||
// In case of a GP:
|
// In case of a GP:
|
||||||
// ----------------
|
// ----------------
|
||||||
top->setVisible(false);
|
top->setVisible(false);
|
||||||
|
top->setFocusable(false);
|
||||||
|
|
||||||
middle->setText(_("Continue"));
|
middle->setText(_("Continue"));
|
||||||
middle->setVisible(true);
|
middle->setVisible(true);
|
||||||
@ -209,6 +210,11 @@ void RaceResultGUI::enableAllButtons()
|
|||||||
{
|
{
|
||||||
bottom->setText(_("Abort Grand Prix"));
|
bottom->setText(_("Abort Grand Prix"));
|
||||||
bottom->setVisible(true);
|
bottom->setVisible(true);
|
||||||
|
bottom->setFocusable(true);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
bottom->setFocusable(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
middle->setFocusForPlayer(PLAYER_ID_GAME_MASTER);
|
middle->setFocusForPlayer(PLAYER_ID_GAME_MASTER);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user