Merge and lobby GUI tweaks
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/uni@13100 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
commit
4208a28f7d
@ -20,7 +20,7 @@
|
||||
</div>
|
||||
</box>
|
||||
|
||||
<spacer height="25" width="10"/>
|
||||
<spacer height="15" width="10"/>
|
||||
|
||||
<tabs id="category" height="10%" max_height="110" width="90%" align="center">
|
||||
<icon-button id="tab_kart" width="128" height="128" icon="gui/karts.png"
|
||||
@ -30,12 +30,11 @@
|
||||
<icon-button id="tab_arena" width="128" height="128" icon="gui/mode_normal.png"
|
||||
I18N="Section in the addons menu" text="Arenas"/>
|
||||
</tabs>
|
||||
<spacer height="5" width="10"/>
|
||||
|
||||
<list id="list_addons" proportion="1" width="97%" align="center"/>
|
||||
|
||||
<spacer width="1" height="8" />
|
||||
|
||||
|
||||
<box proportion="1" width="98%" align="center" layout="vertical-row" padding="6">
|
||||
<list id="list_addons" x="0" y="0" width="100%" height="100%"/>
|
||||
</box>
|
||||
|
||||
</div>
|
||||
|
||||
</stkgui>
|
||||
|
@ -10,13 +10,17 @@
|
||||
align="center" text-align="center"/>
|
||||
</box>
|
||||
<spacer width="20" height="20"/>
|
||||
<list id="players" proportion="1" height="100%"/>
|
||||
<box proportion="1" height="100%" layout="vertical-row">
|
||||
<list id="players" width="100%" height="100%"/>
|
||||
</box>
|
||||
</div>
|
||||
|
||||
<spacer width="20" height="20"/>
|
||||
|
||||
<div width="100%" proportion="1" layout="horizontal-row">
|
||||
<list id="chat" proportion="2" height="100%"/>
|
||||
<box proportion="2" height="100%" layout="vertical-row">
|
||||
<list id="chat" width="100%" height="100%"/>
|
||||
</box>
|
||||
<spacer width="20" height="20"/>
|
||||
<box id="actions" proportion="1" height="100%" layout="vertical-row">
|
||||
<label I18N="In networking lobby" word_wrap="true" text="actions" align="center" text-align="center"/>
|
||||
@ -36,7 +40,7 @@
|
||||
I18N="Main menu button" text="Sign In" label_location="hover"/>
|
||||
<icon-button id="register" width="64" height="64" icon="gui/tutorial.png" extend_label="75"
|
||||
I18N="Main menu button" text="Register" label_location="hover"/>
|
||||
<icon-button id="sign_out" width="64" height="64" icon="gui/main_quit.png" extend_label="50"
|
||||
<icon-button id="sign_out" width="64" height="64" icon="gui/main_quit.png" extend_label="70"
|
||||
I18N="Main menu button" text="Sign Out" label_location="hover"/>
|
||||
</buttonbar>
|
||||
|
||||
|
@ -36,7 +36,7 @@
|
||||
I18N="Main menu button" text="Sign In" label_location="hover"/>
|
||||
<icon-button id="register" width="64" height="64" icon="gui/tutorial.png" extend_label="75"
|
||||
I18N="Main menu button" text="Register" label_location="hover"/>
|
||||
<icon-button id="sign_out" width="64" height="64" icon="gui/main_quit.png" extend_label="50"
|
||||
<icon-button id="sign_out" width="64" height="64" icon="gui/main_quit.png" extend_label="70"
|
||||
I18N="Main menu button" text="Sign Out" label_location="hover"/>
|
||||
</buttonbar>
|
||||
|
||||
|
@ -22,9 +22,11 @@
|
||||
<spacer height="16" width="10"/>
|
||||
|
||||
<!-- List of key bindings -->
|
||||
<list id="actions" proportion="8" width="75%" align="center"/>
|
||||
|
||||
<!-- Bottom buttons -->
|
||||
<box proportion="8" width="75%" align="center" layout="vertical-row" padding="8">
|
||||
<list id="actions" x="0" y="0" width="100%" height="100%"/>
|
||||
</box>
|
||||
|
||||
<!-- Bottom buttons -->
|
||||
|
||||
<spacer width="50" height="20" />
|
||||
<div proportion="2" width="100%" layout="horizontal-row">
|
||||
|
@ -21,7 +21,11 @@
|
||||
text_align="center" />
|
||||
|
||||
<spacer width="5" height="20"/>
|
||||
<list id="devices" proportion="5" width="75%" align="center"/>
|
||||
|
||||
<box proportion="5" width="75%" align="center" layout="vertical-row" padding="8">
|
||||
<list id="devices" x="0" y="0" width="100%" height="100%"/>
|
||||
</box>
|
||||
|
||||
<spacer width="50" height="25" />
|
||||
|
||||
<button id="add_device" I18N="In the input configuration screen" text="Add a device" align="center"/>
|
||||
|
@ -34,7 +34,9 @@
|
||||
text_align="center" />
|
||||
|
||||
<spacer width="5" height="20"/>
|
||||
<list id="players" proportion="5" width="75%" align="center"/>
|
||||
<box proportion="5" width="75%" align="center" layout="vertical-row" padding="8">
|
||||
<list id="players" x="0" y="0" width="100%" height="100%"/>
|
||||
</box>
|
||||
<spacer width="20" height="25"/>
|
||||
|
||||
<button id="addplayer" x="20"
|
||||
|
@ -49,7 +49,9 @@
|
||||
|
||||
<!-- ************ LANGUAGE CHOICE ************ -->
|
||||
|
||||
<list id="language" proportion="1" width="75%" align="center"/>
|
||||
<box proportion="1" width="75%" align="center" layout="vertical-row" padding="8">
|
||||
<list id="language" x="0" y="0" width="100%" height="100%"/>
|
||||
</box>
|
||||
|
||||
<spacer height="18" width="4"/>
|
||||
|
||||
|
@ -152,7 +152,7 @@ when the border that intersect at this corner are enabled.
|
||||
<!-- Lists are always in neutral state for now -->
|
||||
<element type="list" image="glass/glass_section.png"
|
||||
left_border="15" right_border="15" top_border="15" bottom_border="15"
|
||||
hborder_out_portion="0.5" vborder_out_portion="1.0" />
|
||||
hborder_out_portion="0.0" vborder_out_portion="0.0" />
|
||||
|
||||
<element type="listitem" state="focused" image="glass/glasssgauge_fill.png"
|
||||
left_border="0" right_border="0" top_border="0" bottom_border="0"
|
||||
|
@ -151,7 +151,7 @@ when the border that intersect at this corner are enabled.
|
||||
<!-- Lists are always in neutral state for now -->
|
||||
<element type="list" image="ocean/glass_section.png"
|
||||
left_border="15" right_border="15" top_border="7" bottom_border="7"
|
||||
hborder_out_portion="0.5" vborder_out_portion="1.0" />
|
||||
hborder_out_portion="0.0" vborder_out_portion="0.0" />
|
||||
|
||||
<element type="listitem" state="focused" image="ocean/select.png"
|
||||
left_border="0" right_border="0" top_border="0" bottom_border="0"
|
||||
|
@ -151,7 +151,7 @@ when the border that intersect at this corner are enabled.
|
||||
<!-- Lists are always in neutral state for now -->
|
||||
<element type="list" image="peach/glass_section.png"
|
||||
left_border="15" right_border="15" top_border="7" bottom_border="7"
|
||||
hborder_out_portion="0.5" vborder_out_portion="1.0" />
|
||||
hborder_out_portion="0.0" vborder_out_portion="0.0" />
|
||||
|
||||
<element type="listitem" state="focused" image="peach/select.png"
|
||||
left_border="0" right_border="0" top_border="0" bottom_border="0"
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 2.4 KiB |
Binary file not shown.
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 2.4 KiB |
@ -5,7 +5,10 @@
|
||||
<header text_align="center" width="80%" align="center" text="Select a Player"/>
|
||||
<spacer height="15" width="10"/>
|
||||
|
||||
<list id="gameslots" proportion="5" width="75%" align="center"/>
|
||||
<box proportion="6" width="75%" align="center" layout="vertical-row" padding="8">
|
||||
<list id="gameslots" x="0" y="0" width="100%" height="100%"/>
|
||||
</box>
|
||||
|
||||
<spacer width="20" height="25"/>
|
||||
|
||||
<div layout="horizontal-row" align="center" width="70%" height="fit">
|
||||
|
@ -1521,9 +1521,9 @@ void Skin::drawCheckBox(const core::recti &rect, Widget* widget, bool focused)
|
||||
*/
|
||||
void Skin::drawList(const core::recti &rect, Widget* widget, bool focused)
|
||||
{
|
||||
drawBoxFromStretchableTexture(widget, rect,
|
||||
SkinConfig::m_render_params["list::neutral"],
|
||||
widget->m_deactivated, NULL);
|
||||
//drawBoxFromStretchableTexture(widget, rect,
|
||||
// SkinConfig::m_render_params["list::neutral"],
|
||||
// widget->m_deactivated, NULL);
|
||||
|
||||
} // drawList
|
||||
|
||||
@ -1610,6 +1610,8 @@ void Skin::renderSections(PtrVector<Widget>* within_vector)
|
||||
drawBoxFromStretchableTexture(&widget, rect,
|
||||
SkinConfig::m_render_params["section::neutral"]);
|
||||
}
|
||||
|
||||
renderSections( &widget.m_children );
|
||||
}
|
||||
else if (widget.isBottomBar())
|
||||
{
|
||||
|
@ -44,6 +44,12 @@ private:
|
||||
|
||||
public:
|
||||
|
||||
enum Action
|
||||
{
|
||||
Create = 1, // A new server should be created
|
||||
Edit = 2, // The settings of the server should be edited
|
||||
};
|
||||
|
||||
virtual void onUpdate(float delta, irr::video::IVideoDriver* driver) OVERRIDE;
|
||||
|
||||
/** \brief implement callback from parent class GUIEngine::Screen */
|
||||
|
Loading…
x
Reference in New Issue
Block a user