Improved navigation in tabs with mouse
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3513 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
778e015d0a
commit
0226ad76bd
@ -15,9 +15,9 @@
|
|||||||
<ribbon_grid id="karts" proportion="1" square_items="true" width="90%" align="center" child_width="80" child_height="80"/>
|
<ribbon_grid id="karts" proportion="1" square_items="true" width="90%" align="center" child_width="80" child_height="80"/>
|
||||||
</box>
|
</box>
|
||||||
<tabs width="100%" height="25" id="kartgroups">
|
<tabs width="100%" height="25" id="kartgroups">
|
||||||
<button text="Standard"/>
|
<button id="standard" text="Standard"/>
|
||||||
<button text="Add-Ons"/>
|
<button id="addons" text="Add-Ons"/>
|
||||||
<button text="All"/>
|
<button id="all" text="All"/>
|
||||||
</tabs>
|
</tabs>
|
||||||
|
|
||||||
<spacer height="15" width="25"/>
|
<spacer height="15" width="25"/>
|
||||||
|
@ -16,9 +16,9 @@
|
|||||||
</box>
|
</box>
|
||||||
|
|
||||||
<tabs width="100%" height="25" id="trackgroups">
|
<tabs width="100%" height="25" id="trackgroups">
|
||||||
<button text="Standard"/>
|
<button id="standard" text="Standard"/>
|
||||||
<button text="Add-Ons"/>
|
<button id="addons" text="Add-Ons"/>
|
||||||
<button text="All"/>
|
<button id="all" text="All"/>
|
||||||
</tabs>
|
</tabs>
|
||||||
|
|
||||||
<spacer width="20" height="20" />
|
<spacer width="20" height="20" />
|
||||||
|
@ -18,6 +18,7 @@ Orientation of tabs (up or down) is automatically inferred from on-screen positi
|
|||||||
Ribbon widgets are of spawn type (<ribbon> ... </ribbon>) and may contain icon-buttons or buttons as children.
|
Ribbon widgets are of spawn type (<ribbon> ... </ribbon>) and may contain icon-buttons or buttons as children.
|
||||||
Property PROP_SQUARE can be set to tell the engine if the ribbon's contents are rectangular or not (this will
|
Property PROP_SQUARE can be set to tell the engine if the ribbon's contents are rectangular or not (this will
|
||||||
affect the type of highlighting used)
|
affect the type of highlighting used)
|
||||||
|
* Note : all elements within a ribbon must have an 'ID' property
|
||||||
|
|
||||||
WTYPE_SPINNER "spinner", "gauge"
|
WTYPE_SPINNER "spinner", "gauge"
|
||||||
A spinner component (lets you choose numbers). Sprecify PROP_MIN_VALUE and PROP_MAX_VALUE to have control
|
A spinner component (lets you choose numbers). Sprecify PROP_MIN_VALUE and PROP_MAX_VALUE to have control
|
||||||
|
@ -468,7 +468,7 @@ bool RibbonWidget::mouseHovered(Widget* child)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
updateSelection();
|
updateSelection();
|
||||||
return m_ribbon_type != RIBBON_TOOLBAR;
|
return false;
|
||||||
}
|
}
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
void RibbonWidget::updateSelection()
|
void RibbonWidget::updateSelection()
|
||||||
@ -523,6 +523,7 @@ void RibbonWidget::add()
|
|||||||
std::cerr << "/!\\ Warning /!\\ : ribbon widgets can only have (icon)button widgets as children " << std::endl;
|
std::cerr << "/!\\ Warning /!\\ : ribbon widgets can only have (icon)button widgets as children " << std::endl;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
total_needed_space += m_children[i].w;
|
total_needed_space += m_children[i].w;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user