Minetest 5.9.0-dev
 
Loading...
Searching...
No Matches
guiVolumeChange.h
Go to the documentation of this file.
1/*
2Part of Minetest
3Copyright (C) 2010-2013 celeron55, Perttu Ahola <celeron55@gmail.com>
4Copyright (C) 2013 Ciaran Gultnieks <ciaran@ciarang.com>
5Copyright (C) 2013 RealBadAngel, Maciej Kasatkin <mk@realbadangel.pl>
6
7Permission to use, copy, modify, and distribute this software for any
8purpose with or without fee is hereby granted, provided that the above
9copyright notice and this permission notice appear in all copies.
10
11THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
12WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
13MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
14ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
16ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
17OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18*/
19
20#pragma once
21
23#include "modalMenu.h"
24#include <string>
25
27
29{
30public:
31 GUIVolumeChange(gui::IGUIEnvironment* env,
32 gui::IGUIElement* parent, s32 id,
33 IMenuManager *menumgr, ISimpleTextureSource *tsrc);
34 /*
35 Remove and re-add (or reposition) stuff
36 */
37 void regenerateGui(v2u32 screensize);
38
39 void drawMenu();
40
41 bool OnEvent(const SEvent& event);
42
43 bool pausesGame() { return true; }
44
45protected:
46 std::wstring getLabelByID(s32 id) { return L""; }
47 std::string getNameByID(s32 id) { return ""; }
48
49private:
51};
Definition: modalMenu.h:48
Definition: guiVolumeChange.h:29
bool pausesGame()
Definition: guiVolumeChange.h:43
std::wstring getLabelByID(s32 id)
Definition: guiVolumeChange.h:46
void drawMenu()
Definition: guiVolumeChange.cpp:101
bool OnEvent(const SEvent &event)
Definition: guiVolumeChange.cpp:112
std::string getNameByID(s32 id)
Definition: guiVolumeChange.h:47
void regenerateGui(v2u32 screensize)
Definition: guiVolumeChange.cpp:48
ISimpleTextureSource * m_tsrc
Definition: guiVolumeChange.h:50
Definition: modalMenu.h:37
Definition: texturesource.h:34
core::vector2d< u32 > v2u32
Definition: irr_v2d.h:29