Luanti
5.11.0-dev
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
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 "
irrlichttypes_extrabloated.h
"
23
#include "
modalMenu.h
"
24
#include <string>
25
26
class
ISimpleTextureSource
;
27
28
class
GUIVolumeChange
:
public
GUIModalMenu
29
{
30
public
:
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
45
protected
:
46
std::wstring
getLabelByID
(s32
id
) {
return
L
""
; }
47
std::string
getNameByID
(s32
id
) {
return
""
; }
48
49
private
:
50
ISimpleTextureSource
*
m_tsrc
;
51
};
28
class
GUIVolumeChange
:
public
GUIModalMenu
{
…
};
GUIModalMenu
Definition
modalMenu.h:38
GUIVolumeChange
Definition
guiVolumeChange.h:29
GUIVolumeChange::pausesGame
bool pausesGame()
Definition
guiVolumeChange.h:43
GUIVolumeChange::getLabelByID
std::wstring getLabelByID(s32 id)
Definition
guiVolumeChange.h:46
GUIVolumeChange::drawMenu
void drawMenu()
Definition
guiVolumeChange.cpp:98
GUIVolumeChange::OnEvent
bool OnEvent(const SEvent &event)
Definition
guiVolumeChange.cpp:109
GUIVolumeChange::getNameByID
std::string getNameByID(s32 id)
Definition
guiVolumeChange.h:47
GUIVolumeChange::GUIVolumeChange
GUIVolumeChange(gui::IGUIEnvironment *env, gui::IGUIElement *parent, s32 id, IMenuManager *menumgr, ISimpleTextureSource *tsrc)
Definition
guiVolumeChange.cpp:40
GUIVolumeChange::regenerateGui
void regenerateGui(v2u32 screensize)
Definition
guiVolumeChange.cpp:49
GUIVolumeChange::m_tsrc
ISimpleTextureSource * m_tsrc
Definition
guiVolumeChange.h:50
IMenuManager
Definition
modalMenu.h:27
ISimpleTextureSource
Definition
texturesource.h:25
v2u32
core::vector2d< u32 > v2u32
Definition
irr_v2d.h:14
irrlichttypes_extrabloated.h
modalMenu.h
gui
guiVolumeChange.h
Generated on Sat Feb 1 2025 10:20:55 for Luanti by
1.11.0