Minetest  5.4.0
GUIFormSpecMenu Class Reference

#include <guiFormSpecMenu.h>

+ Inheritance diagram for GUIFormSpecMenu:
+ Collaboration diagram for GUIFormSpecMenu:

Classes

struct  FieldSpec
 
struct  fs_key_pending
 
struct  ListRingSpec
 
struct  parserData
 
struct  TooltipSpec
 

Public Member Functions

 GUIFormSpecMenu (JoystickController *joystick, gui::IGUIElement *parent, s32 id, IMenuManager *menumgr, Client *client, ISimpleTextureSource *tsrc, ISoundManager *sound_manager, IFormSource *fs_src, TextDest *txt_dst, const std::string &formspecPrepend, bool remap_dbl_click=true)
 
 ~GUIFormSpecMenu ()
 
void setFormSpec (const std::string &formspec_string, const InventoryLocation &current_inventory_location)
 
const InventoryLocationgetFormspecLocation ()
 
void setFormspecPrepend (const std::string &formspecPrepend)
 
void setFormSource (IFormSource *form_src)
 
void setTextDest (TextDest *text_dst)
 
void allowClose (bool value)
 
void lockSize (bool lock, v2u32 basescreensize=v2u32(0, 0))
 
void removeChildren ()
 
void setInitialFocus ()
 
void setFocus (const std::string &elementname)
 
ClientgetClient () const
 
const GUIInventoryList::ItemSpecgetSelectedItem () const
 
const u16 getSelectedAmount () const
 
bool doTooltipAppendItemname () const
 
void addHoveredItemTooltip (const std::string &name)
 
void regenerateGui (v2u32 screensize)
 
GUIInventoryList::ItemSpec getItemAtPos (v2s32 p) const
 
void drawSelectedItem ()
 
void drawMenu ()
 
void updateSelectedItem ()
 
ItemStack verifySelectedItem ()
 
void acceptInput (FormspecQuitMode quitmode=quit_mode_no)
 
bool preprocessEvent (const SEvent &event)
 
bool OnEvent (const SEvent &event)
 
bool pausesGame ()
 
GUITablegetTable (const std::string &tablename)
 
std::vector< std::string > * getDropDownValues (const std::string &name)
 
- Public Member Functions inherited from GUIModalMenu
 GUIModalMenu (gui::IGUIEnvironment *env, gui::IGUIElement *parent, s32 id, IMenuManager *menumgr, bool remap_dbl_click=true)
 
virtual ~GUIModalMenu ()
 
void allowFocusRemoval (bool allow)
 
bool canTakeFocus (gui::IGUIElement *e)
 
void draw ()
 
void quitMenu ()
 
void removeChildren ()
 

Static Public Member Functions

static void create (GUIFormSpecMenu *&cur_formspec, Client *client, JoystickController *joystick, IFormSource *fs_src, TextDest *txt_dest, const std::string &formspecPrepend, ISoundManager *sound_manager)
 

Public Attributes

bool doPause
 

Protected Member Functions

v2s32 getBasePos () const
 
std::wstring getLabelByID (s32 id)
 get label of element by id More...
 
std::string getNameByID (s32 id)
 get name of element by element id More...
 
const FieldSpecgetSpecByID (s32 id)
 
v2s32 getElementBasePos (const std::vector< std::string > *v_pos)
 
v2s32 getRealCoordinateBasePos (const std::vector< std::string > &v_pos)
 
v2s32 getRealCoordinateGeometry (const std::vector< std::string > &v_geom)
 
StyleSpec getDefaultStyleForElement (const std::string &type, const std::string &name="", const std::string &parent_type="")
 
std::array< StyleSpec, StyleSpec::NUM_STATESgetStyleForElement (const std::string &type, const std::string &name="", const std::string &parent_type="")
 
- Protected Member Functions inherited from GUIModalMenu
bool DoubleClickDetection (const SEvent &event)
 check if event is part of a double click More...
 

Protected Attributes

std::unordered_map< std::string, std::vector< StyleSpec > > theme_by_type
 
std::unordered_map< std::string, std::vector< StyleSpec > > theme_by_name
 
std::unordered_set< std::string > property_warned
 
v2s32 padding
 
v2f32 spacing
 
v2s32 imgsize
 
v2s32 offset
 
v2f32 pos_offset
 
std::stack< v2f32container_stack
 
InventoryManagerm_invmgr
 
ISimpleTextureSourcem_tsrc
 
ISoundManagerm_sound_manager
 
Clientm_client
 
std::string m_formspec_string
 
std::string m_formspec_prepend
 
InventoryLocation m_current_inventory_location
 
bool m_is_form_regenerated = true
 
std::vector< GUIInventoryList * > m_inventorylists
 
std::vector< ListRingSpecm_inventory_rings
 
std::vector< gui::IGUIElement * > m_backgrounds
 
std::unordered_map< std::string, bool > field_close_on_enter
 
std::unordered_map< std::string, bool > m_dropdown_index_event
 
std::vector< FieldSpecm_fields
 
std::vector< std::pair< FieldSpec, GUITable * > > m_tables
 
std::vector< std::pair< FieldSpec, gui::IGUICheckBox * > > m_checkboxes
 
std::map< std::string, TooltipSpecm_tooltips
 
std::vector< std::pair< gui::IGUIElement *, TooltipSpec > > m_tooltip_rects
 
std::vector< std::pair< FieldSpec, GUIScrollBar * > > m_scrollbars
 
std::vector< std::pair< FieldSpec, std::vector< std::string > > > m_dropdowns
 
std::vector< gui::IGUIElement * > m_clickthrough_elements
 
std::vector< std::pair< std::string, GUIScrollContainer * > > m_scroll_containers
 
GUIInventoryList::ItemSpecm_selected_item = nullptr
 
u16 m_selected_amount = 0
 
bool m_selected_dragging = false
 
ItemStack m_selected_swap
 
gui::IGUIStaticText * m_tooltip_element = nullptr
 
u64 m_tooltip_show_delay
 
bool m_tooltip_append_itemname
 
u64 m_hovered_time = 0
 
s32 m_old_tooltip_id = -1
 
bool m_auto_place = false
 
bool m_allowclose = true
 
bool m_lock = false
 
v2u32 m_lockscreensize
 
bool m_bgnonfullscreen
 
bool m_bgfullscreen
 
video::SColor m_bgcolor
 
video::SColor m_fullscreen_bgcolor
 
video::SColor m_default_tooltip_bgcolor
 
video::SColor m_default_tooltip_color
 
- Protected Attributes inherited from GUIModalMenu
v2s32 m_pointer
 
v2s32 m_old_pointer
 
v2u32 m_screensize_old
 
float m_gui_scale
 

Private Member Functions

void parseElement (parserData *data, const std::string &element)
 
void parseSize (parserData *data, const std::string &element)
 
void parseContainer (parserData *data, const std::string &element)
 
void parseContainerEnd (parserData *data)
 
void parseScrollContainer (parserData *data, const std::string &element)
 
void parseScrollContainerEnd (parserData *data)
 
void parseList (parserData *data, const std::string &element)
 
void parseListRing (parserData *data, const std::string &element)
 
void parseCheckbox (parserData *data, const std::string &element)
 
void parseImage (parserData *data, const std::string &element)
 
void parseAnimatedImage (parserData *data, const std::string &element)
 
void parseItemImage (parserData *data, const std::string &element)
 
void parseButton (parserData *data, const std::string &element, const std::string &typ)
 
void parseBackground (parserData *data, const std::string &element)
 
void parseTableOptions (parserData *data, const std::string &element)
 
void parseTableColumns (parserData *data, const std::string &element)
 
void parseTable (parserData *data, const std::string &element)
 
void parseTextList (parserData *data, const std::string &element)
 
void parseDropDown (parserData *data, const std::string &element)
 
void parseFieldCloseOnEnter (parserData *data, const std::string &element)
 
void parsePwdField (parserData *data, const std::string &element)
 
void parseField (parserData *data, const std::string &element, const std::string &type)
 
void createTextField (parserData *data, FieldSpec &spec, core::rect< s32 > &rect, bool is_multiline)
 
void parseSimpleField (parserData *data, std::vector< std::string > &parts)
 
void parseTextArea (parserData *data, std::vector< std::string > &parts, const std::string &type)
 
void parseHyperText (parserData *data, const std::string &element)
 
void parseLabel (parserData *data, const std::string &element)
 
void parseVertLabel (parserData *data, const std::string &element)
 
void parseImageButton (parserData *data, const std::string &element, const std::string &type)
 
void parseItemImageButton (parserData *data, const std::string &element)
 
void parseTabHeader (parserData *data, const std::string &element)
 
void parseBox (parserData *data, const std::string &element)
 
void parseBackgroundColor (parserData *data, const std::string &element)
 
void parseListColors (parserData *data, const std::string &element)
 
void parseTooltip (parserData *data, const std::string &element)
 
bool parseVersionDirect (const std::string &data)
 
bool parseSizeDirect (parserData *data, const std::string &element)
 
void parseScrollBar (parserData *data, const std::string &element)
 
void parseScrollBarOptions (parserData *data, const std::string &element)
 
bool parsePositionDirect (parserData *data, const std::string &element)
 
void parsePosition (parserData *data, const std::string &element)
 
bool parseAnchorDirect (parserData *data, const std::string &element)
 
void parseAnchor (parserData *data, const std::string &element)
 
bool parseStyle (parserData *data, const std::string &element, bool style_type)
 
void parseSetFocus (const std::string &element)
 
void parseModel (parserData *data, const std::string &element)
 
void tryClose ()
 
void showTooltip (const std::wstring &text, const irr::video::SColor &color, const irr::video::SColor &bgcolor)
 
void legacySortElements (core::list< IGUIElement * >::Iterator from)
 In formspec version < 2 the elements were not ordered properly. More...
 

Private Attributes

IFormSourcem_form_src
 
TextDestm_text_dst
 
std::string m_last_formname
 
u16 m_formspec_version = 1
 
std::string m_focused_element = ""
 
JoystickControllerm_joystick
 
bool m_show_debug = false
 
fs_key_pending current_keys_pending
 
std::string current_field_enter_pending = ""
 
std::vector< std::string > m_hovered_item_tooltips
 
int m_btn_height
 
gui::IGUIFont * m_font = nullptr
 

Constructor & Destructor Documentation

◆ GUIFormSpecMenu()

GUIFormSpecMenu::GUIFormSpecMenu ( JoystickController joystick,
gui::IGUIElement *  parent,
s32  id,
IMenuManager menumgr,
Client client,
ISimpleTextureSource tsrc,
ISoundManager sound_manager,
IFormSource fs_src,
TextDest txt_dst,
const std::string &  formspecPrepend,
bool  remap_dbl_click = true 
)

References current_keys_pending, g_settings, Settings::getBool(), Settings::getS32(), GUIFormSpecMenu::fs_key_pending::key_down, GUIFormSpecMenu::fs_key_pending::key_enter, GUIFormSpecMenu::fs_key_pending::key_escape, GUIFormSpecMenu::fs_key_pending::key_up, m_tooltip_append_itemname, and m_tooltip_show_delay.

Referenced by create().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ~GUIFormSpecMenu()

GUIFormSpecMenu::~GUIFormSpecMenu ( )

References m_backgrounds, m_checkboxes, m_clickthrough_elements, m_form_src, m_inventorylists, m_scroll_containers, m_scrollbars, m_selected_item, m_tables, m_text_dst, m_tooltip_rects, and removeChildren().

+ Here is the call graph for this function:

Member Function Documentation

◆ acceptInput()

void GUIFormSpecMenu::acceptInput ( FormspecQuitMode  quitmode = quit_mode_no)

References current_field_enter_pending, current_keys_pending, f_AnimatedImage, f_Button, f_CheckBox, f_DropDown, f_ScrollBar, f_TabHeader, f_Table, getDropDownValues(), GUIAnimatedImage::getFrameIndex(), GUIScrollBar::getPos(), getTable(), TextDest::gotText(), GUIFormSpecMenu::fs_key_pending::key_down, GUIFormSpecMenu::fs_key_pending::key_enter, GUIFormSpecMenu::fs_key_pending::key_escape, GUIFormSpecMenu::fs_key_pending::key_up, m_dropdown_index_event, m_fields, m_text_dst, quit_mode_accept, quit_mode_cancel, table, warningstream, and wide_to_utf8().

Referenced by OnEvent(), preprocessEvent(), and tryClose().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addHoveredItemTooltip()

void GUIFormSpecMenu::addHoveredItemTooltip ( const std::string &  name)
inline

References m_hovered_item_tooltips.

Referenced by GUIInventoryList::draw().

+ Here is the caller graph for this function:

◆ allowClose()

void GUIFormSpecMenu::allowClose ( bool  value)
inline

References m_allowclose.

Referenced by GUIEngine::GUIEngine().

+ Here is the caller graph for this function:

◆ create()

void GUIFormSpecMenu::create ( GUIFormSpecMenu *&  cur_formspec,
Client client,
JoystickController joystick,
IFormSource fs_src,
TextDest txt_dest,
const std::string &  formspecPrepend,
ISoundManager sound_manager 
)
static

References GUIFormSpecMenu(), doPause, g_menumgr, guiroot, setFormSource(), setFormspecPrepend(), and setTextDest().

Referenced by Game::handleClientEvent_ShowFormSpec(), Game::handleClientEvent_ShowLocalFormSpec(), Game::nodePlacement(), Game::openInventory(), Game::showDeathFormspec(), and Game::showPauseMenu().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createTextField()

void GUIFormSpecMenu::createTextField ( parserData data,
FieldSpec spec,
core::rect< s32 > &  rect,
bool  is_multiline 
)
private

References StyleSpec::BGCOLOR, StyleSpec::BORDER, GUIFormSpecMenu::parserData::current_parent, GUIFormSpecMenu::FieldSpec::fdefault, GUIFormSpecMenu::FieldSpec::fid, GUIFormSpecMenu::FieldSpec::flabel, GUIFormSpecMenu::FieldSpec::fname, g_fontengine, g_settings, Settings::getBool(), getDefaultStyleForElement(), FontEngine::getTextHeight(), m_focused_element, StyleSpec::NOCLIP, GUIFormSpecMenu::FieldSpec::send, StyleSpec::TEXTCOLOR, and USE_FREETYPE.

Referenced by parseSimpleField(), and parseTextArea().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ doTooltipAppendItemname()

bool GUIFormSpecMenu::doTooltipAppendItemname ( ) const
inline

References m_tooltip_append_itemname.

Referenced by GUIInventoryList::draw().

+ Here is the caller graph for this function:

◆ drawMenu()

◆ drawSelectedItem()

void GUIFormSpecMenu::drawSelectedItem ( )

References ItemStack::count, drawItemStack(), InventoryManager::getInventory(), InventoryList::getItem(), Inventory::getList(), GUIInventoryList::ItemSpec::i, imgsize, GUIInventoryList::ItemSpec::inventoryloc, IT_ROT_DRAGGED, GUIInventoryList::ItemSpec::listname, m_client, m_font, m_invmgr, GUIModalMenu::m_pointer, m_selected_amount, m_selected_item, and sanity_check.

Referenced by drawMenu().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getBasePos()

v2s32 GUIFormSpecMenu::getBasePos ( ) const
inlineprotected

References offset, and padding.

Referenced by regenerateGui().

+ Here is the caller graph for this function:

◆ getClient()

Client* GUIFormSpecMenu::getClient ( ) const
inline

References m_client.

Referenced by GUIInventoryList::draw().

+ Here is the caller graph for this function:

◆ getDefaultStyleForElement()

StyleSpec GUIFormSpecMenu::getDefaultStyleForElement ( const std::string &  type,
const std::string &  name = "",
const std::string &  parent_type = "" 
)
protected

References getStyleForElement(), and StyleSpec::STATE_DEFAULT.

Referenced by createTextField(), parseAnimatedImage(), parseBox(), parseCheckbox(), parseDropDown(), parseHyperText(), parseImage(), parseItemImage(), parseLabel(), parseList(), parsePwdField(), parseScrollBar(), parseTabHeader(), parseTable(), parseTextList(), and parseVertLabel().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getDropDownValues()

std::vector< std::string > * GUIFormSpecMenu::getDropDownValues ( const std::string &  name)

References m_dropdowns.

Referenced by acceptInput().

+ Here is the caller graph for this function:

◆ getElementBasePos()

v2s32 GUIFormSpecMenu::getElementBasePos ( const std::vector< std::string > *  v_pos)
protected

◆ getFormspecLocation()

const InventoryLocation& GUIFormSpecMenu::getFormspecLocation ( )
inline

◆ getItemAtPos()

GUIInventoryList::ItemSpec GUIFormSpecMenu::getItemAtPos ( v2s32  p) const

References m_inventorylists, and p().

Referenced by OnEvent().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getLabelByID()

std::wstring GUIFormSpecMenu::getLabelByID ( s32  id)
protectedvirtual

get label of element by id

Parameters
idof element
Returns
label string or empty string

Implements GUIModalMenu.

References m_fields.

◆ getNameByID()

std::string GUIFormSpecMenu::getNameByID ( s32  id)
protectedvirtual

get name of element by element id

Parameters
idof element
Returns
name string or empty string

Implements GUIModalMenu.

References m_fields.

◆ getRealCoordinateBasePos()

v2s32 GUIFormSpecMenu::getRealCoordinateBasePos ( const std::vector< std::string > &  v_pos)
protected

◆ getRealCoordinateGeometry()

v2s32 GUIFormSpecMenu::getRealCoordinateGeometry ( const std::vector< std::string > &  v_geom)
protected

References imgsize, and stof.

Referenced by parseAnimatedImage(), parseBackground(), parseBox(), parseButton(), parseDropDown(), parseHyperText(), parseImage(), parseImageButton(), parseItemImage(), parseItemImageButton(), parseModel(), parsePwdField(), parseScrollBar(), parseScrollContainer(), parseTabHeader(), parseTable(), parseTextArea(), parseTextList(), and parseTooltip().

+ Here is the caller graph for this function:

◆ getSelectedAmount()

const u16 GUIFormSpecMenu::getSelectedAmount ( ) const
inline

References m_selected_amount.

Referenced by GUIInventoryList::draw().

+ Here is the caller graph for this function:

◆ getSelectedItem()

const GUIInventoryList::ItemSpec* GUIFormSpecMenu::getSelectedItem ( ) const
inline

References m_selected_item.

Referenced by GUIInventoryList::draw().

+ Here is the caller graph for this function:

◆ getSpecByID()

const GUIFormSpecMenu::FieldSpec * GUIFormSpecMenu::getSpecByID ( s32  id)
protected

References m_fields.

◆ getStyleForElement()

std::array< StyleSpec, StyleSpec::NUM_STATES > GUIFormSpecMenu::getStyleForElement ( const std::string &  type,
const std::string &  name = "",
const std::string &  parent_type = "" 
)
protected

References StyleSpec::getState(), theme_by_name, and theme_by_type.

Referenced by getDefaultStyleForElement(), parseButton(), parseImageButton(), parseItemImageButton(), and parseModel().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getTable()

GUITable * GUIFormSpecMenu::getTable ( const std::string &  tablename)

References m_tables, and table.

Referenced by acceptInput(), and ModApiMainMenu::l_get_table_index().

+ Here is the caller graph for this function:

◆ legacySortElements()

void GUIFormSpecMenu::legacySortElements ( core::list< IGUIElement * >::Iterator  from)
private

In formspec version < 2 the elements were not ordered properly.

Some element types were drawn before others. This function sorts the elements in the old order for backwards compatibility.

Referenced by regenerateGui().

+ Here is the caller graph for this function:

◆ lockSize()

void GUIFormSpecMenu::lockSize ( bool  lock,
v2u32  basescreensize = v2u32(0,0) 
)
inline

References m_lock, and m_lockscreensize.

Referenced by GUIEngine::GUIEngine(), and parseSize().

+ Here is the caller graph for this function:

◆ OnEvent()

bool GUIFormSpecMenu::OnEvent ( const SEvent &  event)
virtual

Reimplemented from GUIModalMenu.

References acceptInput(), ItemStack::addItem(), BET_DOWN, BET_LEFT, BET_MIDDLE, BET_MOVE, BET_OTHER, BET_RIGHT, BET_UP, BET_WHEEL_DOWN, BET_WHEEL_UP, CancelKey, GUIModalMenu::canTakeFocus(), ItemStack::clear(), ItemStack::count, IMoveAction::count, IDropAction::count, ICraftAction::count, ICraftAction::craft_inv, current_field_enter_pending, current_keys_pending, InventoryLocation::dump(), ItemStack::empty(), errorstream, EscapeKey, f_Button, f_CheckBox, f_DropDown, f_HyperText, f_ScrollBar, f_TabHeader, f_Table, f_Unknown, FATAL_ERROR, field_close_on_enter, MoveAction::from_i, MoveAction::from_inv, MoveAction::from_list, InventoryManager::getInventory(), InventoryList::getItem(), getItemAtPos(), getKeySetting(), Inventory::getList(), InventoryList::getSize(), TextDest::gotText(), GUIInventoryList::ItemSpec::i, IGameDef::idef(), infostream, InventoryManager::inventoryAction(), GUIFormSpecMenu::ListRingSpec::inventoryloc, GUIInventoryList::ItemSpec::inventoryloc, GUIInventoryList::ItemSpec::isValid(), GUIFormSpecMenu::fs_key_pending::key_down, GUIFormSpecMenu::fs_key_pending::key_enter, GUIFormSpecMenu::fs_key_pending::key_up, GUIFormSpecMenu::ListRingSpec::listname, GUIInventoryList::ItemSpec::listname, m_allowclose, m_auto_place, m_client, m_fields, m_inventory_rings, m_invmgr, GUIModalMenu::m_old_pointer, m_old_tooltip_id, GUIModalMenu::m_pointer, m_scroll_containers, m_selected_amount, m_selected_dragging, m_selected_item, m_selected_swap, m_show_debug, m_sound_manager, m_text_dst, Client::makeScreenshot(), IMoveAction::move_somewhere, MYMIN, ItemStack::name, ISoundManager::playSound(), quit_mode_accept, quit_mode_no, GUIModalMenu::quitMenu(), sanity_check, MoveAction::to_i, MoveAction::to_inv, MoveAction::to_list, tryClose(), updateSelectedItem(), and verbosestream.

Referenced by GUIInventoryList::OnEvent(), and preprocessEvent().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseAnchor()

void GUIFormSpecMenu::parseAnchor ( parserData data,
const std::string &  element 
)
private

References GUIFormSpecMenu::parserData::anchor, errorstream, split(), and stof.

Referenced by parseAnchorDirect().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseAnchorDirect()

bool GUIFormSpecMenu::parseAnchorDirect ( parserData data,
const std::string &  element 
)
private

References parseAnchor(), split(), and trim().

Referenced by regenerateGui().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseAnimatedImage()

void GUIFormSpecMenu::parseAnimatedImage ( parserData data,
const std::string &  element 
)
private

◆ parseBackground()

void GUIFormSpecMenu::parseBackground ( parserData data,
const std::string &  element 
)
private

References errorstream, GUIFormSpecMenu::parserData::explicit_size, FATAL_ERROR_IF, GUIFormSpecMenu::FieldSpec::fid, FORMSPEC_API_VERSION, getElementBasePos(), getRealCoordinateBasePos(), getRealCoordinateGeometry(), imgsize, is_yes(), m_backgrounds, m_fields, m_formspec_version, m_tsrc, MY_CHECKGEOM, MY_CHECKPOS, GUIFormSpecMenu::parserData::real_coordinates, spacing, split(), stof, stoi, unescape_string(), and warningstream.

Referenced by parseElement().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseBackgroundColor()

void GUIFormSpecMenu::parseBackgroundColor ( parserData data,
const std::string &  element 
)
private

References errorstream, FORMSPEC_API_VERSION, is_yes(), m_bgcolor, m_bgfullscreen, m_bgnonfullscreen, m_formspec_version, m_fullscreen_bgcolor, parseColorString(), and split().

Referenced by parseElement().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseBox()

void GUIFormSpecMenu::parseBox ( parserData data,
const std::string &  element 
)
private

References StyleSpec::BORDERCOLORS, StyleSpec::BORDERWIDTHS, StyleSpec::COLORS, GUIFormSpecMenu::parserData::current_parent, errorstream, f_Box, GUIFormSpecMenu::FieldSpec::fid, GUIFormSpecMenu::FieldSpec::fname, FORMSPEC_API_VERSION, GUIFormSpecMenu::FieldSpec::ftype, getDefaultStyleForElement(), getElementBasePos(), getRealCoordinateBasePos(), getRealCoordinateGeometry(), m_fields, m_formspec_version, MY_CHECKGEOM, MY_CHECKPOS, StyleSpec::NOCLIP, parseColorString(), GUIFormSpecMenu::parserData::real_coordinates, spacing, split(), and stof.

Referenced by parseElement().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseButton()

void GUIFormSpecMenu::parseButton ( parserData data,
const std::string &  element,
const std::string &  typ 
)
private

◆ parseCheckbox()

void GUIFormSpecMenu::parseCheckbox ( parserData data,
const std::string &  element 
)
private

References GUIFormSpecMenu::parserData::current_parent, errorstream, f_CheckBox, GUIFormSpecMenu::FieldSpec::fid, GUIFormSpecMenu::FieldSpec::flabel, GUIFormSpecMenu::FieldSpec::fname, FORMSPEC_API_VERSION, GUIFormSpecMenu::FieldSpec::ftype, getDefaultStyleForElement(), getElementBasePos(), getRealCoordinateBasePos(), imgsize, m_checkboxes, m_fields, m_focused_element, m_font, m_formspec_version, MY_CHECKPOS, StyleSpec::NOCLIP, GUIFormSpecMenu::parserData::real_coordinates, GUIFormSpecMenu::FieldSpec::sound, split(), translate_string(), unescape_string(), and utf8_to_wide().

Referenced by parseElement().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseContainer()

void GUIFormSpecMenu::parseContainer ( parserData data,
const std::string &  element 
)
private

References container_stack, errorstream, pos_offset, split(), and stof.

Referenced by parseElement().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseContainerEnd()

void GUIFormSpecMenu::parseContainerEnd ( parserData data)
private

References container_stack, errorstream, and pos_offset.

Referenced by parseElement().

+ Here is the caller graph for this function:

◆ parseDropDown()

void GUIFormSpecMenu::parseDropDown ( parserData data,
const std::string &  element 
)
private

◆ parseElement()

void GUIFormSpecMenu::parseElement ( parserData data,
const std::string &  element 
)
private

◆ parseField()

void GUIFormSpecMenu::parseField ( parserData data,
const std::string &  element,
const std::string &  type 
)
private

References errorstream, FORMSPEC_API_VERSION, m_formspec_version, parseSimpleField(), parseTextArea(), and split().

Referenced by parseElement().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseFieldCloseOnEnter()

void GUIFormSpecMenu::parseFieldCloseOnEnter ( parserData data,
const std::string &  element 
)
private

References field_close_on_enter, FORMSPEC_API_VERSION, is_yes(), m_formspec_version, and split().

Referenced by parseElement().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseHyperText()

void GUIFormSpecMenu::parseHyperText ( parserData data,
const std::string &  element 
)
private

◆ parseImage()

void GUIFormSpecMenu::parseImage ( parserData data,
const std::string &  element 
)
private

References GUIFormSpecMenu::parserData::current_parent, errorstream, GUIFormSpecMenu::parserData::explicit_size, GUIFormSpecMenu::FieldSpec::fid, GUIFormSpecMenu::FieldSpec::fname, FORMSPEC_API_VERSION, getDefaultStyleForElement(), getElementBasePos(), getRealCoordinateBasePos(), getRealCoordinateGeometry(), ISimpleTextureSource::getTexture(), imgsize, m_clickthrough_elements, m_fields, m_formspec_version, m_tsrc, MY_CHECKGEOM, MY_CHECKPOS, StyleSpec::NOCLIP, GUIFormSpecMenu::parserData::real_coordinates, split(), stof, unescape_string(), and warningstream.

Referenced by parseElement().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseImageButton()

◆ parseItemImage()

void GUIFormSpecMenu::parseItemImage ( parserData data,
const std::string &  element 
)
private

References GUIFormSpecMenu::parserData::current_parent, errorstream, GUIFormSpecMenu::parserData::explicit_size, f_ItemImage, GUIFormSpecMenu::FieldSpec::fid, GUIFormSpecMenu::FieldSpec::fname, FORMSPEC_API_VERSION, GUIFormSpecMenu::FieldSpec::ftype, getDefaultStyleForElement(), getElementBasePos(), getRealCoordinateBasePos(), getRealCoordinateGeometry(), imgsize, m_clickthrough_elements, m_client, m_fields, m_font, m_formspec_version, MY_CHECKGEOM, MY_CHECKPOS, StyleSpec::NOCLIP, GUIFormSpecMenu::parserData::real_coordinates, split(), stof, and warningstream.

Referenced by parseElement().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseItemImageButton()

◆ parseLabel()

void GUIFormSpecMenu::parseLabel ( parserData data,
const std::string &  element 
)
private

References GUIFormSpecMenu::parserData::current_parent, errorstream, GUIFormSpecMenu::parserData::explicit_size, GUIFormSpecMenu::FieldSpec::fid, GUIFormSpecMenu::FieldSpec::flabel, FORMSPEC_API_VERSION, getDefaultStyleForElement(), getElementBasePos(), getRealCoordinateBasePos(), imgsize, m_btn_height, m_clickthrough_elements, m_fields, m_font, m_formspec_version, MY_CHECKPOS, StyleSpec::NOCLIP, GUIFormSpecMenu::parserData::real_coordinates, spacing, split(), stof, StyleSpec::TEXTCOLOR, translate_string(), unescape_enriched(), unescape_string(), utf8_to_wide(), and warningstream.

Referenced by parseElement().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseList()

void GUIFormSpecMenu::parseList ( parserData data,
const std::string &  element 
)
private

◆ parseListColors()

void GUIFormSpecMenu::parseListColors ( parserData data,
const std::string &  element 
)
private

References errorstream, FORMSPEC_API_VERSION, GUIFormSpecMenu::parserData::inventorylist_options, m_default_tooltip_bgcolor, m_default_tooltip_color, m_formspec_version, m_inventorylists, parseColorString(), GUIInventoryList::Options::slotbg_h, GUIInventoryList::Options::slotbg_n, GUIInventoryList::Options::slotborder, GUIInventoryList::Options::slotbordercolor, and split().

Referenced by parseElement().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseListRing()

void GUIFormSpecMenu::parseListRing ( parserData data,
const std::string &  element 
)
private

References InventoryLocation::deSerialize(), errorstream, GUIInventoryList::getInventoryloc(), GUIInventoryList::getListname(), m_client, m_current_inventory_location, m_inventory_rings, m_inventorylists, and split().

Referenced by parseElement().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseModel()

◆ parsePosition()

void GUIFormSpecMenu::parsePosition ( parserData data,
const std::string &  element 
)
private

References errorstream, GUIFormSpecMenu::parserData::offset, split(), and stof.

Referenced by parsePositionDirect().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parsePositionDirect()

bool GUIFormSpecMenu::parsePositionDirect ( parserData data,
const std::string &  element 
)
private

References parsePosition(), split(), and trim().

Referenced by regenerateGui().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parsePwdField()

void GUIFormSpecMenu::parsePwdField ( parserData data,
const std::string &  element 
)
private

◆ parseScrollBar()

◆ parseScrollBarOptions()

void GUIFormSpecMenu::parseScrollBarOptions ( parserData data,
const std::string &  element 
)
private

References GUIFormSpecMenu::parserData::arrow_visiblity, GUIScrollBar::DEFAULT, GUIScrollBar::HIDE, GUIFormSpecMenu::parserData::large_step, GUIFormSpecMenu::parserData::max, GUIFormSpecMenu::parserData::min, GUIFormSpecMenu::parserData::scrollbar_options, GUIScrollBar::SHOW, GUIFormSpecMenu::parserData::small_step, split(), stoi, GUIFormSpecMenu::parserData::thumb_size, trim(), and warningstream.

Referenced by parseElement().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseScrollContainer()

void GUIFormSpecMenu::parseScrollContainer ( parserData data,
const std::string &  element 
)
private

References container_stack, GUIFormSpecMenu::parserData::current_parent, errorstream, GUIFormSpecMenu::FieldSpec::fid, FORMSPEC_API_VERSION, getRealCoordinateBasePos(), getRealCoordinateGeometry(), imgsize, m_fields, m_formspec_version, m_scroll_containers, MY_CHECKGEOM, MY_CHECKPOS, pos_offset, split(), stof, and warningstream.

Referenced by parseElement().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseScrollContainerEnd()

void GUIFormSpecMenu::parseScrollContainerEnd ( parserData data)
private

References container_stack, GUIFormSpecMenu::parserData::current_parent, errorstream, and pos_offset.

Referenced by parseElement().

+ Here is the caller graph for this function:

◆ parseSetFocus()

void GUIFormSpecMenu::parseSetFocus ( const std::string &  element)
private

References errorstream, FORMSPEC_API_VERSION, is_yes(), TextDest::m_formname, m_formspec_version, m_is_form_regenerated, m_last_formname, m_text_dst, setFocus(), and split().

Referenced by parseElement().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseSimpleField()

void GUIFormSpecMenu::parseSimpleField ( parserData data,
std::vector< std::string > &  parts 
)
private

References createTextField(), GUIFormSpecMenu::parserData::explicit_size, getElementBasePos(), m_btn_height, m_fields, m_form_src, IFormSource::resolveText(), GUIFormSpecMenu::parserData::simple_field_count, translate_string(), unescape_string(), utf8_to_wide(), and warningstream.

Referenced by parseField().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseSize()

void GUIFormSpecMenu::parseSize ( parserData data,
const std::string &  element 
)
private

References errorstream, GUIFormSpecMenu::parserData::explicit_size, FORMSPEC_API_VERSION, GUIFormSpecMenu::parserData::invsize, lockSize(), m_formspec_version, MYMAX, split(), and stof.

Referenced by parseSizeDirect().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseSizeDirect()

bool GUIFormSpecMenu::parseSizeDirect ( parserData data,
const std::string &  element 
)
private

References parseSize(), split(), trim(), and warningstream.

Referenced by regenerateGui().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseStyle()

bool GUIFormSpecMenu::parseStyle ( parserData data,
const std::string &  element,
bool  style_type 
)
private

References StyleSpec::addState(), StyleSpec::BGCOLOR, StyleSpec::BGCOLOR_HOVERED, StyleSpec::BGCOLOR_PRESSED, StyleSpec::BGIMG, StyleSpec::BGIMG_HOVERED, StyleSpec::BGIMG_PRESSED, errorstream, StyleSpec::FGIMG, StyleSpec::FGIMG_HOVERED, StyleSpec::FGIMG_PRESSED, StyleSpec::get(), StyleSpec::GetPropertyByName(), StyleSpec::getStateByName(), StyleSpec::hasProperty(), infostream, StyleSpec::NONE, property_warned, StyleSpec::set(), split(), StyleSpec::STATE_HOVERED, StyleSpec::STATE_INVALID, StyleSpec::STATE_PRESSED, theme_by_name, theme_by_type, trim(), unescape_string(), and warningstream.

Referenced by parseElement().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseTabHeader()

void GUIFormSpecMenu::parseTabHeader ( parserData data,
const std::string &  element 
)
private

References StyleSpec::BGCOLOR, GUIFormSpecMenu::parserData::current_parent, errorstream, f_TabHeader, GUIFormSpecMenu::FieldSpec::fid, FORMSPEC_API_VERSION, GUIFormSpecMenu::FieldSpec::ftype, getDefaultStyleForElement(), getRealCoordinateBasePos(), getRealCoordinateGeometry(), m_btn_height, m_fields, m_formspec_version, MY_CHECKGEOM, MY_CHECKPOS, StyleSpec::NOCLIP, pos_offset, GUIFormSpecMenu::parserData::real_coordinates, GUIFormSpecMenu::FieldSpec::sound, spacing, split(), stof, stoi, StyleSpec::TEXTCOLOR, unescape_string(), unescape_translate(), and utf8_to_wide().

Referenced by parseElement().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseTable()

◆ parseTableColumns()

void GUIFormSpecMenu::parseTableColumns ( parserData data,
const std::string &  element 
)
private

References GUITable::TableColumn::options, split(), GUITable::splitOption(), GUIFormSpecMenu::parserData::table_columns, GUITable::TableColumn::type, and unescape_string().

Referenced by parseElement().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseTableOptions()

void GUIFormSpecMenu::parseTableOptions ( parserData data,
const std::string &  element 
)
private

References split(), GUITable::splitOption(), GUIFormSpecMenu::parserData::table_options, and unescape_string().

Referenced by parseElement().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseTextArea()

void GUIFormSpecMenu::parseTextArea ( parserData data,
std::vector< std::string > &  parts,
const std::string &  type 
)
private

References createTextField(), GUIFormSpecMenu::parserData::explicit_size, getElementBasePos(), getRealCoordinateBasePos(), getRealCoordinateGeometry(), imgsize, m_btn_height, m_fields, m_form_src, MY_CHECKGEOM, MY_CHECKPOS, padding, GUIFormSpecMenu::parserData::real_coordinates, IFormSource::resolveText(), spacing, split(), stof, translate_string(), unescape_string(), utf8_to_wide(), and warningstream.

Referenced by parseField().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseTextList()

void GUIFormSpecMenu::parseTextList ( parserData data,
const std::string &  element 
)
private

◆ parseTooltip()

void GUIFormSpecMenu::parseTooltip ( parserData data,
const std::string &  element 
)
private

References GUIFormSpecMenu::parserData::current_parent, errorstream, GUIFormSpecMenu::FieldSpec::fid, getElementBasePos(), getRealCoordinateBasePos(), getRealCoordinateGeometry(), m_default_tooltip_bgcolor, m_default_tooltip_color, m_fields, m_tooltip_rects, m_tooltips, MY_CHECKGEOM, MY_CHECKPOS, parseColorString(), GUIFormSpecMenu::parserData::real_coordinates, spacing, split(), stof, unescape_string(), and utf8_to_wide().

Referenced by parseElement().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseVersionDirect()

bool GUIFormSpecMenu::parseVersionDirect ( const std::string &  data)
private

References is_number(), m_formspec_version, mystoi(), split(), and trim().

Referenced by parseElement(), and regenerateGui().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseVertLabel()

void GUIFormSpecMenu::parseVertLabel ( parserData data,
const std::string &  element 
)
private

References GUIFormSpecMenu::parserData::current_parent, errorstream, GUIFormSpecMenu::parserData::explicit_size, GUIFormSpecMenu::FieldSpec::fid, GUIFormSpecMenu::FieldSpec::flabel, font_line_height(), FORMSPEC_API_VERSION, getDefaultStyleForElement(), getElementBasePos(), getRealCoordinateBasePos(), imgsize, m_btn_height, m_clickthrough_elements, m_fields, m_font, m_formspec_version, MY_CHECKPOS, StyleSpec::NOCLIP, GUIFormSpecMenu::parserData::real_coordinates, split(), StyleSpec::TEXTCOLOR, unescape_string(), unescape_translate(), utf8_to_wide(), and warningstream.

Referenced by parseElement().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ pausesGame()

bool GUIFormSpecMenu::pausesGame ( )
inlinevirtual

Reimplemented from GUIModalMenu.

References doPause.

◆ preprocessEvent()

bool GUIFormSpecMenu::preprocessEvent ( const SEvent &  event)
virtual

Reimplemented from GUIModalMenu.

References acceptInput(), CancelKey, KeyType::ESC, EscapeKey, getKeySetting(), JoystickController::handleEvent(), KeyType::JUMP, KeyPress::Key, m_allowclose, m_font, m_joystick, OnEvent(), GUIModalMenu::preprocessEvent(), quit_mode_accept, GUIModalMenu::quitMenu(), sanity_check, tryClose(), and JoystickController::wasKeyDown().

+ Here is the call graph for this function:

◆ regenerateGui()

void GUIFormSpecMenu::regenerateGui ( v2u32  screensize)
virtual

Implements GUIModalMenu.

References GUIButton::addButton(), GUIFormSpecMenu::parserData::anchor, GUIFormSpecMenu::parserData::basepos, clamp_u8(), container_stack, GUIFormSpecMenu::parserData::current_parent, errorstream, GUIFormSpecMenu::parserData::explicit_size, field_close_on_enter, font_line_height(), g_fontengine, g_settings, RenderingEngine::get_video_driver(), getBasePos(), RenderingEngine::getDisplayDensity(), Settings::getFloat(), FontEngine::getFont(), Settings::getS32(), Settings::getV3F(), imgsize, GUIFormSpecMenu::parserData::invsize, is_yes(), legacySortElements(), m_backgrounds, m_bgcolor, m_bgfullscreen, m_bgnonfullscreen, m_btn_height, m_checkboxes, m_clickthrough_elements, m_default_tooltip_bgcolor, m_default_tooltip_color, m_dropdown_index_event, m_dropdowns, m_fields, m_focused_element, m_font, TextDest::m_formname, m_formspec_prepend, m_formspec_string, m_formspec_version, m_fullscreen_bgcolor, m_inventory_rings, m_inventorylists, m_is_form_regenerated, m_last_formname, m_lock, m_lockscreensize, m_scroll_containers, m_scrollbars, m_tables, m_text_dst, m_tooltip_element, m_tooltip_rects, m_tooltips, m_tsrc, myround(), offset, GUIFormSpecMenu::parserData::offset, padding, parseAnchorDirect(), parseElement(), parsePositionDirect(), parseSizeDirect(), parseVersionDirect(), pos_offset, GUIFormSpecMenu::parserData::real_coordinates, GUIFormSpecMenu::parserData::rect, removeChildren(), sanity_check, GUIFormSpecMenu::parserData::screensize, setInitialFocus(), GUIFormSpecMenu::parserData::simple_field_count, GUIFormSpecMenu::parserData::size, spacing, split(), table, GUIFormSpecMenu::parserData::table_dyndata, theme_by_name, theme_by_type, trim(), and wgettext().

Referenced by drawMenu(), and setFormSpec().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ removeChildren()

void GUIFormSpecMenu::removeChildren ( )

References m_tooltip_element.

Referenced by ~GUIFormSpecMenu(), and regenerateGui().

+ Here is the caller graph for this function:

◆ setFocus()

void GUIFormSpecMenu::setFocus ( const std::string &  elementname)
inline

References m_focused_element.

Referenced by parseSetFocus().

+ Here is the caller graph for this function:

◆ setFormSource()

void GUIFormSpecMenu::setFormSource ( IFormSource form_src)
inline

References m_form_src.

Referenced by create().

+ Here is the caller graph for this function:

◆ setFormSpec()

void GUIFormSpecMenu::setFormSpec ( const std::string &  formspec_string,
const InventoryLocation current_inventory_location 
)
inline

References m_current_inventory_location, m_formspec_string, m_is_form_regenerated, GUIModalMenu::m_screensize_old, and regenerateGui().

+ Here is the call graph for this function:

◆ setFormspecPrepend()

void GUIFormSpecMenu::setFormspecPrepend ( const std::string &  formspecPrepend)
inline

References m_formspec_prepend.

Referenced by create(), and GUIEngine::setFormspecPrepend().

+ Here is the caller graph for this function:

◆ setInitialFocus()

void GUIFormSpecMenu::setInitialFocus ( )

Referenced by regenerateGui().

+ Here is the caller graph for this function:

◆ setTextDest()

void GUIFormSpecMenu::setTextDest ( TextDest text_dst)
inline

References m_text_dst.

Referenced by create().

+ Here is the caller graph for this function:

◆ showTooltip()

void GUIFormSpecMenu::showTooltip ( const std::wstring &  text,
const irr::video::SColor &  color,
const irr::video::SColor &  bgcolor 
)
private

References EnrichedString::hasBackground(), m_btn_height, GUIModalMenu::m_pointer, m_tooltip_element, EnrichedString::setBackground(), and EnrichedString::setDefaultColor().

Referenced by drawMenu().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ tryClose()

void GUIFormSpecMenu::tryClose ( )
private

References acceptInput(), doPause, TextDest::gotText(), m_allowclose, m_text_dst, quit_mode_cancel, and GUIModalMenu::quitMenu().

Referenced by OnEvent(), and preprocessEvent().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateSelectedItem()

void GUIFormSpecMenu::updateSelectedItem ( )

References ItemStack::count, ItemStack::empty(), InventoryManager::getInventory(), InventoryList::getItem(), Inventory::getList(), InventoryList::getSize(), GUIInventoryList::ItemSpec::i, GUIInventoryList::ItemSpec::inventoryloc, GUIInventoryList::ItemSpec::listname, m_inventorylists, m_invmgr, m_selected_amount, m_selected_dragging, m_selected_item, and verifySelectedItem().

Referenced by drawMenu(), and OnEvent().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ verifySelectedItem()

ItemStack GUIFormSpecMenu::verifySelectedItem ( )

References ItemStack::clear(), ItemStack::count, ItemStack::empty(), InventoryManager::getInventory(), InventoryList::getItem(), Inventory::getList(), InventoryList::getSize(), GUIInventoryList::ItemSpec::i, GUIInventoryList::ItemSpec::inventoryloc, GUIInventoryList::ItemSpec::isValid(), GUIInventoryList::ItemSpec::listname, m_invmgr, m_selected_amount, m_selected_dragging, m_selected_item, m_selected_swap, and ItemStack::name.

Referenced by updateSelectedItem().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ container_stack

std::stack<v2f32> GUIFormSpecMenu::container_stack
protected

◆ current_field_enter_pending

std::string GUIFormSpecMenu::current_field_enter_pending = ""
private

Referenced by acceptInput(), and OnEvent().

◆ current_keys_pending

fs_key_pending GUIFormSpecMenu::current_keys_pending
private

◆ doPause

bool GUIFormSpecMenu::doPause

Referenced by create(), pausesGame(), and tryClose().

◆ field_close_on_enter

std::unordered_map<std::string, bool> GUIFormSpecMenu::field_close_on_enter
protected

◆ imgsize

◆ m_allowclose

bool GUIFormSpecMenu::m_allowclose = true
protected

◆ m_auto_place

bool GUIFormSpecMenu::m_auto_place = false
protected

Referenced by OnEvent().

◆ m_backgrounds

std::vector<gui::IGUIElement *> GUIFormSpecMenu::m_backgrounds
protected

◆ m_bgcolor

video::SColor GUIFormSpecMenu::m_bgcolor
protected

◆ m_bgfullscreen

bool GUIFormSpecMenu::m_bgfullscreen
protected

◆ m_bgnonfullscreen

bool GUIFormSpecMenu::m_bgnonfullscreen
protected

◆ m_btn_height

◆ m_checkboxes

std::vector<std::pair<FieldSpec, gui::IGUICheckBox *> > GUIFormSpecMenu::m_checkboxes
protected

◆ m_clickthrough_elements

std::vector<gui::IGUIElement *> GUIFormSpecMenu::m_clickthrough_elements
protected

◆ m_client

◆ m_current_inventory_location

InventoryLocation GUIFormSpecMenu::m_current_inventory_location
protected

◆ m_default_tooltip_bgcolor

video::SColor GUIFormSpecMenu::m_default_tooltip_bgcolor
protected

◆ m_default_tooltip_color

video::SColor GUIFormSpecMenu::m_default_tooltip_color
protected

◆ m_dropdown_index_event

std::unordered_map<std::string, bool> GUIFormSpecMenu::m_dropdown_index_event
protected

◆ m_dropdowns

std::vector<std::pair<FieldSpec, std::vector<std::string> > > GUIFormSpecMenu::m_dropdowns
protected

◆ m_fields

◆ m_focused_element

◆ m_font

gui::IGUIFont* GUIFormSpecMenu::m_font = nullptr
private

◆ m_form_src

IFormSource* GUIFormSpecMenu::m_form_src
private

◆ m_formspec_prepend

std::string GUIFormSpecMenu::m_formspec_prepend
protected

◆ m_formspec_string

std::string GUIFormSpecMenu::m_formspec_string
protected

◆ m_formspec_version

◆ m_fullscreen_bgcolor

video::SColor GUIFormSpecMenu::m_fullscreen_bgcolor
protected

◆ m_hovered_item_tooltips

std::vector<std::string> GUIFormSpecMenu::m_hovered_item_tooltips
private

Referenced by addHoveredItemTooltip(), and drawMenu().

◆ m_hovered_time

u64 GUIFormSpecMenu::m_hovered_time = 0
protected

Referenced by drawMenu().

◆ m_inventory_rings

std::vector<ListRingSpec> GUIFormSpecMenu::m_inventory_rings
protected

◆ m_inventorylists

std::vector<GUIInventoryList *> GUIFormSpecMenu::m_inventorylists
protected

◆ m_invmgr

InventoryManager* GUIFormSpecMenu::m_invmgr
protected

◆ m_is_form_regenerated

bool GUIFormSpecMenu::m_is_form_regenerated = true
protected

◆ m_joystick

JoystickController* GUIFormSpecMenu::m_joystick
private

Referenced by preprocessEvent().

◆ m_last_formname

std::string GUIFormSpecMenu::m_last_formname
private

Referenced by parseSetFocus(), and regenerateGui().

◆ m_lock

bool GUIFormSpecMenu::m_lock = false
protected

Referenced by lockSize(), and regenerateGui().

◆ m_lockscreensize

v2u32 GUIFormSpecMenu::m_lockscreensize
protected

Referenced by lockSize(), and regenerateGui().

◆ m_old_tooltip_id

s32 GUIFormSpecMenu::m_old_tooltip_id = -1
protected

Referenced by drawMenu(), and OnEvent().

◆ m_scroll_containers

std::vector<std::pair<std::string, GUIScrollContainer *> > GUIFormSpecMenu::m_scroll_containers
protected

◆ m_scrollbars

std::vector<std::pair<FieldSpec, GUIScrollBar *> > GUIFormSpecMenu::m_scrollbars
protected

◆ m_selected_amount

u16 GUIFormSpecMenu::m_selected_amount = 0
protected

◆ m_selected_dragging

bool GUIFormSpecMenu::m_selected_dragging = false
protected

◆ m_selected_item

GUIInventoryList::ItemSpec* GUIFormSpecMenu::m_selected_item = nullptr
protected

◆ m_selected_swap

ItemStack GUIFormSpecMenu::m_selected_swap
protected

Referenced by OnEvent(), and verifySelectedItem().

◆ m_show_debug

bool GUIFormSpecMenu::m_show_debug = false
private

Referenced by drawMenu(), and OnEvent().

◆ m_sound_manager

ISoundManager* GUIFormSpecMenu::m_sound_manager
protected

Referenced by OnEvent().

◆ m_tables

std::vector<std::pair<FieldSpec, GUITable *> > GUIFormSpecMenu::m_tables
protected

◆ m_text_dst

TextDest* GUIFormSpecMenu::m_text_dst
private

◆ m_tooltip_append_itemname

bool GUIFormSpecMenu::m_tooltip_append_itemname
protected

◆ m_tooltip_element

gui::IGUIStaticText* GUIFormSpecMenu::m_tooltip_element = nullptr
protected

◆ m_tooltip_rects

std::vector<std::pair<gui::IGUIElement *, TooltipSpec> > GUIFormSpecMenu::m_tooltip_rects
protected

◆ m_tooltip_show_delay

u64 GUIFormSpecMenu::m_tooltip_show_delay
protected

Referenced by GUIFormSpecMenu(), and drawMenu().

◆ m_tooltips

std::map<std::string, TooltipSpec> GUIFormSpecMenu::m_tooltips
protected

◆ m_tsrc

◆ offset

v2s32 GUIFormSpecMenu::offset
protected

Referenced by getBasePos(), and regenerateGui().

◆ padding

◆ pos_offset

◆ property_warned

std::unordered_set<std::string> GUIFormSpecMenu::property_warned
protected

Referenced by parseStyle().

◆ spacing

◆ theme_by_name

std::unordered_map<std::string, std::vector<StyleSpec> > GUIFormSpecMenu::theme_by_name
protected

◆ theme_by_type

std::unordered_map<std::string, std::vector<StyleSpec> > GUIFormSpecMenu::theme_by_type
protected

The documentation for this class was generated from the following files: