Luanti 5.10.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:36
Definition guiVolumeChange.h:29
bool pausesGame()
Definition guiVolumeChange.h:43
std::wstring getLabelByID(s32 id)
Definition guiVolumeChange.h:46
void drawMenu()
Definition guiVolumeChange.cpp:98
bool OnEvent(const SEvent &event)
Definition guiVolumeChange.cpp:109
std::string getNameByID(s32 id)
Definition guiVolumeChange.h:47
GUIVolumeChange(gui::IGUIEnvironment *env, gui::IGUIElement *parent, s32 id, IMenuManager *menumgr, ISimpleTextureSource *tsrc)
Definition guiVolumeChange.cpp:40
void regenerateGui(v2u32 screensize)
Definition guiVolumeChange.cpp:49
ISimpleTextureSource * m_tsrc
Definition guiVolumeChange.h:50
Definition modalMenu.h:25
Definition texturesource.h:25
core::vector2d< u32 > v2u32
Definition irr_v2d.h:14