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