Fixed spinner widgets focus in kart selection
This commit is contained in:
parent
950695769c
commit
a59cbdffe5
@ -2,11 +2,13 @@
|
||||
<stkgui>
|
||||
<div x="1%" y="1%" width="98%" height="99%" layout="vertical-row" >
|
||||
|
||||
<header width="80%"
|
||||
<header width="80%" height="7%"
|
||||
I18N="In the kart selection (player setup) screen"
|
||||
text="Choose a Kart"
|
||||
align="center" text_align="center" />
|
||||
|
||||
<spacer height="1%" width="25"/>
|
||||
|
||||
<placeholder id="playerskarts" width="100%" align="center" proportion="4">
|
||||
<!-- Contents is added programatically -->
|
||||
</placeholder>
|
||||
|
@ -73,9 +73,12 @@ FocusDispatcher::FocusDispatcher(KartSelectionScreen* parent) : Widget(WTYPE_BUT
|
||||
m_parent = parent;
|
||||
m_supports_multiplayer = true;
|
||||
m_is_initialised = false;
|
||||
|
||||
Widget* kartsAreaWidget = parent->getWidget("playerskarts");
|
||||
assert(kartsAreaWidget);
|
||||
|
||||
m_x = 0;
|
||||
m_y = 0;
|
||||
m_y = kartsAreaWidget->m_y;
|
||||
m_w = 1;
|
||||
m_h = 1;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user