Make FBO setting configurable in GUI
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8649 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
c5ddfb1d6d
commit
80ce6be8f7
@ -1,6 +1,6 @@
|
||||
<stkgui>
|
||||
|
||||
<div x="2%" y="2%" width="96%" height="96%" layout="vertical-row" >
|
||||
<div x="2%" y="2%" width="96%" height="97%" layout="vertical-row" >
|
||||
|
||||
<header text_align="center" width="80%" align="center" text="SuperTuxKart Options"/>
|
||||
<spacer height="15" width="10"/>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<stkgui>
|
||||
|
||||
<div x="2%" y="2%" width="96%" height="96%" layout="vertical-row" >
|
||||
<div x="2%" y="2%" width="96%" height="97%" layout="vertical-row" >
|
||||
|
||||
<header text_align="center" width="80%" align="center" text="SuperTuxKart Options"/>
|
||||
<spacer height="15" width="10"/>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<stkgui>
|
||||
|
||||
<div x="2%" y="2%" width="96%" height="96%" layout="vertical-row" >
|
||||
<div x="2%" y="2%" width="96%" height="97%" layout="vertical-row" >
|
||||
|
||||
<header text_align="center" width="80%" align="center" text="SuperTuxKart Options"/>
|
||||
<spacer height="15" width="10"/>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<stkgui>
|
||||
|
||||
<div x="2%" y="2%" width="96%" height="96%" layout="vertical-row" >
|
||||
<div x="2%" y="2%" width="96%" height="97%" layout="vertical-row" >
|
||||
|
||||
<header text_align="center" width="80%" align="center" text="SuperTuxKart Options"/>
|
||||
<spacer height="15" width="10"/>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<stkgui>
|
||||
|
||||
<div x="2%" y="2%" width="96%" height="96%" layout="vertical-row" >
|
||||
<div x="2%" y="2%" width="96%" height="97%" layout="vertical-row" >
|
||||
|
||||
<header text_align="center" width="80%" align="center" text="SuperTuxKart Options"/>
|
||||
<spacer height="15" width="10"/>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<stkgui>
|
||||
|
||||
<div x="2%" y="2%" width="96%" height="96%" layout="vertical-row" >
|
||||
<div x="2%" y="2%" width="96%" height="97%" layout="vertical-row" >
|
||||
|
||||
<header text_align="center" width="80%" align="center" text="SuperTuxKart Options"/>
|
||||
<spacer height="15" width="10"/>
|
||||
@ -20,12 +20,12 @@
|
||||
|
||||
<!-- ************ GRAPHICAL EFFECTS SETTINGS ************ -->
|
||||
<div width="75%" height="50" layout="horizontal-row" >
|
||||
<label I18N="In the graphics settings" text="Graphical Effects Settings"/>
|
||||
<label I18N="In the graphics settings" text="Graphical Effects Level" align="center"/>
|
||||
<spacer width="20" height="20"/>
|
||||
<gauge id="gfx_level" min_value="1" max_value="5" width="300" />
|
||||
</div>
|
||||
|
||||
<spacer height="15" width="10"/>
|
||||
<spacer height="10" width="10"/>
|
||||
|
||||
<!-- ************ VSYNC ************ -->
|
||||
<div width="75%" height="fit" layout="horizontal-row" >
|
||||
@ -34,7 +34,16 @@
|
||||
<label height="100%" I18N="In the video settings" text="Vertical Sync (requires restart)"/>
|
||||
</div>
|
||||
|
||||
<spacer width="20" height="25"/>
|
||||
<spacer height="5" width="10"/>
|
||||
|
||||
<!-- ************ FBO ************ -->
|
||||
<div width="75%" height="fit" layout="horizontal-row" >
|
||||
<checkbox id="fbos"/>
|
||||
<spacer width="20" height="100%" />
|
||||
<label height="100%" I18N="In the video settings" text="Use Frame Buffer Objects (requires restart)"/>
|
||||
</div>
|
||||
|
||||
<spacer height="10" width="10"/>
|
||||
|
||||
<!-- ************ RESOLUTION CHOICE ************ -->
|
||||
<spacer height="10" width="10"/>
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
Binary file not shown.
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
@ -92,6 +92,11 @@ void OptionsScreenVideo::init()
|
||||
assert( vsync != NULL );
|
||||
vsync->setState( UserConfigParams::m_vsync );
|
||||
|
||||
GUIEngine::CheckBoxWidget* fbos = this->getWidget<GUIEngine::CheckBoxWidget>("fbos");
|
||||
assert( fbos != NULL );
|
||||
fbos->setState( UserConfigParams::m_fbo );
|
||||
|
||||
|
||||
// ---- video modes
|
||||
DynamicRibbonWidget* res = this->getWidget<DynamicRibbonWidget>("resolutions");
|
||||
assert( res != NULL );
|
||||
@ -346,6 +351,12 @@ void OptionsScreenVideo::eventCallback(Widget* widget, const std::string& name,
|
||||
assert( vsync != NULL );
|
||||
UserConfigParams::m_vsync = vsync->getState();
|
||||
}
|
||||
else if (name == "fbos")
|
||||
{
|
||||
GUIEngine::CheckBoxWidget* fbos = this->getWidget<GUIEngine::CheckBoxWidget>("fbos");
|
||||
assert( fbos != NULL );
|
||||
UserConfigParams::m_fbo = fbos->getState();
|
||||
}
|
||||
|
||||
} // eventCallback
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user