aboutsummaryrefslogtreecommitdiff
path: root/textures/base/pack/server_ping_3.png
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2022-07-28 17:45:16 +0200
committersfan5 <sfan5@live.de>2022-08-04 10:31:32 +0200
commit7c14b434e04456034b0b3753d1963487d3952499 (patch)
tree91884f1fda1020eea27727d69b85232b922f8a57 /textures/base/pack/server_ping_3.png
parent644f145ff260c6f9cf0e351d158c045019aa895d (diff)
downloadminetest-7c14b434e04456034b0b3753d1963487d3952499.tar.gz
minetest-7c14b434e04456034b0b3753d1963487d3952499.tar.bz2
minetest-7c14b434e04456034b0b3753d1963487d3952499.zip
Update credits tab
Diffstat (limited to 'textures/base/pack/server_ping_3.png')
0 files changed, 0 insertions, 0 deletions
29 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 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191
/*
Minetest-c55
Copyright (C) 2012 celeron55, Perttu Ahola <celeron55@gmail.com>

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/

#include "guiConfirmMenu.h"
#include "debug.h"
#include "serialization.h"
#include <string>
#include <IGUICheckBox.h>
#include <IGUIEditBox.h>
#include <IGUIButton.h>
#include <IGUIStaticText.h>
#include <IGUIFont.h>

#include "gettext.h"

enum
{
	GUI_ID_YES = 101,
	GUI_ID_NO,
};

GUIConfirmMenu::GUIConfirmMenu(gui::IGUIEnvironment* env,
		gui::IGUIElement* parent, s32 id,
		IMenuManager *menumgr,
		ConfirmDest *dest,
		std::wstring message_text
):
	GUIModalMenu(env, parent, id, menumgr),
	m_dest(dest),
	m_message_text(message_text)
{
}

GUIConfirmMenu::~GUIConfirmMenu()
{
	removeChildren();
	if(m_dest)
		delete m_dest;
}

void GUIConfirmMenu::removeChildren()
{
	const core::list<gui::IGUIElement*> &children = getChildren();
	core::list<gui::IGUIElement*> children_copy;
	for(core::list<gui::IGUIElement*>::ConstIterator
			i = children.begin(); i != children.end(); i++)
	{
		children_copy.push_back(*i);
	}
	for(core::list<gui::IGUIElement*>::Iterator
			i = children_copy.begin();