/*
Part of Minetest
-Copyright (C) 2011 celeron55, Perttu Ahola <celeron55@gmail.com>
-Copyright (C) 2011 Ciaran Gultnieks <ciaran@ciarang.com>
+Copyright (C) 2013 celeron55, Perttu Ahola <celeron55@gmail.com>
+Copyright (C) 2013 Ciaran Gultnieks <ciaran@ciarang.com>
Copyright (C) 2013 RealBadAngel, Maciej Kasatkin <mk@realbadangel.pl>
Permission to use, copy, modify, and distribute this software for any
#include <IGUIStaticText.h>
#include <IGUIFont.h>
#include "main.h"
+#include "settings.h"
#include "gettext.h"
v2s32 size = rect.getSize();
v2s32 topleft_client(40, 0);
- v2s32 size_client = size - v2s32(40, 0);
int volume=(int)(g_settings->getFloat("sound_volume")*100);
/*
Add stuff
{
core::rect<s32> rect(0, 0, 120, 20);
rect = rect + v2s32(size.X/2-60, size.Y/2-35);
- Environment->addStaticText(wgettext("Sound Volume: "), rect, false,
+ wchar_t* text = wgettext("Sound Volume: ");
+ Environment->addStaticText(text, rect, false,
true, this, ID_soundText1);
+ delete[] text;
}
{
core::rect<s32> rect(0, 0, 30, 20);
{
core::rect<s32> rect(0, 0, 80, 30);
rect = rect + v2s32(size.X/2-80/2, size.Y/2+55);
+ wchar_t* text = wgettext("Exit");
Environment->addButton(rect, this, ID_soundExitButton,
- wgettext("Exit"));
+ text);
+ delete[] text;
}
{
core::rect<s32> rect(0, 0, 300, 20);