forked from Mirrorlandia_minetest/minetest
master #1
@ -70,15 +70,15 @@ void GUIVolumeChange::regenerateGui(v2u32 screensize)
|
||||
Add stuff
|
||||
*/
|
||||
{
|
||||
core::rect<s32> rect(0, 0, 160 * s, 20 * s);
|
||||
rect = rect + v2s32(size.X / 2 - 80 * s, size.Y / 2 - 70 * s);
|
||||
core::rect<s32> rect(0, 0, 300 * s, 20 * s);
|
||||
rect = rect + v2s32(size.X / 2 - 150 * s, size.Y / 2 - 70 * s);
|
||||
|
||||
StaticText::add(Environment, fwgettext("Sound Volume: %d%%", volume),
|
||||
rect, false, true, this, ID_soundText);
|
||||
}
|
||||
{
|
||||
core::rect<s32> rect(0, 0, 80 * s, 30 * s);
|
||||
rect = rect + v2s32(size.X / 2 - 80 * s / 2, size.Y / 2 + 55 * s);
|
||||
core::rect<s32> rect(0, 0, 100 * s, 30 * s);
|
||||
rect = rect + v2s32(size.X / 2 - 100 * s / 2, size.Y / 2 + 55 * s);
|
||||
GUIButton::addButton(Environment, rect, m_tsrc, this, ID_soundExitButton,
|
||||
wstrgettext("Exit").c_str());
|
||||
}
|
||||
@ -91,8 +91,8 @@ void GUIVolumeChange::regenerateGui(v2u32 screensize)
|
||||
e->setPos(volume);
|
||||
}
|
||||
{
|
||||
core::rect<s32> rect(0, 0, 160 * s, 20 * s);
|
||||
rect = rect + v2s32(size.X / 2 - 80 * s, size.Y / 2 - 35 * s);
|
||||
core::rect<s32> rect(0, 0, 300 * s, 20 * s);
|
||||
rect = rect + v2s32(size.X / 2 - 150 * s, size.Y / 2 - 35 * s);
|
||||
Environment->addCheckBox(g_settings->getBool("mute_sound"), rect, this,
|
||||
ID_soundMuteButton, wstrgettext("Muted").c_str());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user