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"/>
|
||||
</box>
|
||||
<tabs width="100%" height="25" id="kartgroups">
|
||||
<button text="Standard"/>
|
||||
<button text="Add-Ons"/>
|
||||
<button text="All"/>
|
||||
<button id="standard" text="Standard"/>
|
||||
<button id="addons" text="Add-Ons"/>
|
||||
<button id="all" text="All"/>
|
||||
</tabs>
|
||||
|
||||
<spacer height="15" width="25"/>
|
||||
|
@ -16,9 +16,9 @@
|
||||
</box>
|
||||
|
||||
<tabs width="100%" height="25" id="trackgroups">
|
||||
<button text="Standard"/>
|
||||
<button text="Add-Ons"/>
|
||||
<button text="All"/>
|
||||
<button id="standard" text="Standard"/>
|
||||
<button id="addons" text="Add-Ons"/>
|
||||
<button id="all" text="All"/>
|
||||
</tabs>
|
||||
|
||||
<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.
|
||||
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)
|
||||
* Note : all elements within a ribbon must have an 'ID' property
|
||||
|
||||
WTYPE_SPINNER "spinner", "gauge"
|
||||
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();
|
||||
return m_ribbon_type != RIBBON_TOOLBAR;
|
||||
return false;
|
||||
}
|
||||
// -----------------------------------------------------------------------------
|
||||
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;
|
||||
continue;
|
||||
}
|
||||
|
||||
total_needed_space += m_children[i].w;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user