Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
guiFormSpecMenu.cpp File Reference
#include <cstdlib>
#include <cmath>
#include <algorithm>
#include <iterator>
#include <limits>
#include <sstream>
#include "guiFormSpecMenu.h"
#include "constants.h"
#include "gamedef.h"
#include "client/keycode.h"
#include "util/strfnd.h"
#include <IGUIButton.h>
#include <IGUICheckBox.h>
#include <IGUIComboBox.h>
#include <IGUIEditBox.h>
#include <IGUIFont.h>
#include <IGUITabControl.h>
#include <IGUIImage.h>
#include <IAnimatedMeshSceneNode.h>
#include "client/renderingengine.h"
#include "client/joystick_controller.h"
#include "log.h"
#include "client/hud.h"
#include "filesys.h"
#include "gettime.h"
#include "gettext.h"
#include "scripting_server.h"
#include "mainmenumanager.h"
#include "porting.h"
#include "settings.h"
#include "client/client.h"
#include "client/fontengine.h"
#include "client/sound.h"
#include "util/hex.h"
#include "util/numeric.h"
#include "util/string.h"
#include "irrlicht_changes/static_text.h"
#include "client/guiscalingfilter.h"
#include "guiAnimatedImage.h"
#include "guiBackgroundImage.h"
#include "guiBox.h"
#include "guiButton.h"
#include "guiButtonImage.h"
#include "guiButtonItemImage.h"
#include "guiEditBoxWithScrollbar.h"
#include "guiInventoryList.h"
#include "guiItemImage.h"
#include "guiScrollContainer.h"
#include "guiHyperText.h"
#include "guiScene.h"

Macros

#define MY_CHECKPOS(a, b)
 
#define MY_CHECKGEOM(a, b)
 
#define MY_CHECKCLIENT(a)
 

Functions

static unsigned int font_line_height (gui::IGUIFont *font)
 
u32 clamp_u8 (s32 value)
 

Macro Definition Documentation

◆ MY_CHECKCLIENT

#define MY_CHECKCLIENT ( a)
Value:
if (!m_client) { \
errorstream << "Attempted to use element " << a << " with m_client == nullptr." << std::endl; \
return; \
}
thread_local LogStream errorstream

Referenced by GUIFormSpecMenu::parseItemImageButton(), GUIFormSpecMenu::parseList(), GUIFormSpecMenu::parseListRing(), and GUIFormSpecMenu::parseModel().

◆ MY_CHECKGEOM

◆ MY_CHECKPOS

Function Documentation

◆ clamp_u8()

u32 clamp_u8 ( s32 value)
inline

References MYMAX, and MYMIN.

◆ font_line_height()

static unsigned int font_line_height ( gui::IGUIFont * font)
static

Referenced by GUIFormSpecMenu::parseVertLabel(), and GUIFormSpecMenu::regenerateGui().

+ Here is the caller graph for this function: