Improve debug values popup
This commit is contained in:
parent
495cd25d1c
commit
2c1feb5f06
@ -1,17 +1,40 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<stkgui>
|
||||
<div x="2%" y="10%" width="96%" height="80%" layout="vertical-row" >
|
||||
<label id="Red" width="100%"/>
|
||||
<gauge id="red_slider" min_value="0" max_value="100" width="100%" />
|
||||
<label id="Green" width="100%"/>
|
||||
<gauge id="green_slider" min_value="0" max_value="100" width="100%" />
|
||||
<label id="Blue" width="100%"/>
|
||||
<gauge id="blue_slider" min_value="0" max_value="100" width="100%" />
|
||||
<label id="SSAO radius" width="100%"/>
|
||||
<gauge id="ssao_radius" min_value="0" max_value="100" width="100%" />
|
||||
<label id="SSAO k" width="100%"/>
|
||||
<gauge id="ssao_k" min_value="0" max_value="100" width="100%" />
|
||||
<label id="SSAO Sigma" width="100%"/>
|
||||
<gauge id="ssao_sigma" min_value="0" max_value="100" width="100%" />
|
||||
<div proportion="1" width="100%" layout="horizontal-row">
|
||||
<label id="Red" text="Red"/>
|
||||
<spacer width="25"/>
|
||||
<gauge id="red_slider" min_value="0" max_value="100" proportion="1"/>
|
||||
</div>
|
||||
|
||||
<div proportion="1" width="100%" layout="horizontal-row">
|
||||
<label id="Green" text="Green"/>
|
||||
<spacer width="25"/>
|
||||
<gauge id="green_slider" min_value="0" max_value="100" proportion="1"/>
|
||||
</div>
|
||||
|
||||
<div proportion="1" width="100%" layout="horizontal-row">
|
||||
<label id="Blue" text="Blue"/>
|
||||
<spacer width="25"/>
|
||||
<gauge id="blue_slider" min_value="0" max_value="100" proportion="1"/>
|
||||
</div>
|
||||
|
||||
<div proportion="1" width="100%" layout="horizontal-row">
|
||||
<label id="SSAO radius" text="SSAO Radius"/>
|
||||
<spacer width="50"/>
|
||||
<gauge id="ssao_radius" min_value="0" max_value="100" proportion="1" />
|
||||
</div>
|
||||
|
||||
<div proportion="1" width="100%" layout="horizontal-row">
|
||||
<label id="SSAO k" text="SSAO K"/>
|
||||
<spacer width="25"/>
|
||||
<gauge id="ssao_k" min_value="0" max_value="100" proportion="1"/>
|
||||
</div>
|
||||
|
||||
<div proportion="1" width="100%" layout="horizontal-row">
|
||||
<label id="SSAO Sigma" text="SSAO sigma"/>
|
||||
<spacer width="50"/>
|
||||
<gauge id="ssao_sigma" min_value="0" max_value="100" proportion="1"/>
|
||||
</div>
|
||||
</div>
|
||||
</stkgui>
|
||||
|
@ -19,6 +19,7 @@
|
||||
|
||||
#include "graphics/irr_driver.hpp"
|
||||
#include "guiengine/engine.hpp"
|
||||
#include "guiengine/scalable_font.hpp"
|
||||
#include "guiengine/widgets/spinner_widget.hpp"
|
||||
#include "io/file_manager.hpp"
|
||||
#include "utils/string_utils.hpp"
|
||||
@ -161,6 +162,10 @@ void SpinnerWidget::add()
|
||||
label->setText(m_labels[m_value].c_str() );
|
||||
}
|
||||
|
||||
if (widget_size.getHeight() < GUIEngine::getFontHeight())
|
||||
{
|
||||
label->setOverrideFont(GUIEngine::getSmallFont());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -32,7 +32,7 @@ using namespace GUIEngine;
|
||||
|
||||
// ------------------------------------------------------------------------------------------------------
|
||||
|
||||
DebugSliderDialog::DebugSliderDialog() : ModalDialog(0.85f, 0.25f, MODAL_DIALOG_LOCATION_CENTER)
|
||||
DebugSliderDialog::DebugSliderDialog() : ModalDialog(0.85f, 0.25f, MODAL_DIALOG_LOCATION_BOTTOM)
|
||||
{
|
||||
m_fade_background = false;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user