aboutsummaryrefslogtreecommitdiff
path: root/doc/gpl-2.0.txt
diff options
context:
space:
mode:
authorMark Holmquist <marktraceur@gmail.com>2011-12-01 15:16:41 -0800
committerPerttu Ahola <celeron55@gmail.com>2011-12-02 11:31:10 +0200
commita465fd5b99202c22c0b9e0ce5c59345f50501279 (patch)
tree67a007144ed4aa99efd401fc88fd6880758918f4 /doc/gpl-2.0.txt
parent9af0142a36f345c16db5ccabf75349c1b13f59e2 (diff)
downloadminetest-a465fd5b99202c22c0b9e0ce5c59345f50501279.tar.gz
minetest-a465fd5b99202c22c0b9e0ce5c59345f50501279.tar.bz2
minetest-a465fd5b99202c22c0b9e0ce5c59345f50501279.zip
+ middle-click now empties the inventory slot properly
Diffstat (limited to 'doc/gpl-2.0.txt')
0 files changed, 0 insertions, 0 deletions
> 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169
/*
Part of Minetest
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
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/

#include "guiVolumeChange.h"
#include "debug.h"
#include "serialization.h"
#include <string>
#include <IGUICheckBox.h>
#include <IGUIButton.h>
#include <IGUIScrollBar.h>
#include <IGUIStaticText.h>
#include <IGUIFont.h>
#include "settings.h"

#include "gettext.h"

const int ID_soundText1 = 263;
const int ID_soundText2 = 264;
const int ID_soundExitButton = 265;
const int ID_soundSlider = 266;

GUIVolumeChange::GUIVolumeChange(gui::IGUIEnvironment* env,
		gui::IGUIElement* parent, s32 id,
		IMenuManager *menumgr
):
	GUIModalMenu(env, parent, id, menumgr)
{
}

GUIVolumeChange::~GUIVolumeChange()
{
	removeChildren();
}

void GUIVolumeChange::removeChildren()
{
	if (gui::IGUIElement *e = getElementFromId(ID_soundText1))
		e->remove();

	if (gui::IGUIElement *e = getElementFromId(ID_soundText2))
		e->remove();

	if (gui::IGUIElement *e = getElementFromId(ID_soundExitButton))
		e->remove();