#include <guiFormSpecMenu.h>
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, gui::IGUIEnvironment *guienv, 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 ¤t_inventory_location) |
const InventoryLocation & | getFormspecLocation () |
void | setFormspecPrepend (const std::string &formspecPrepend) |
void | setFormSource (IFormSource *form_src) |
void | setTextDest (TextDest *text_dst) |
void | allowClose (bool value) |
void | setDebugView (bool value) |
void | lockSize (bool lock, v2u32 basescreensize=v2u32(0, 0)) |
void | removeTooltip () |
void | setInitialFocus () |
void | setFocus (const std::string &elementname) |
Client * | getClient () const |
const GUIInventoryList::ItemSpec * | getSelectedItem () 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 () |
s16 | getNextInventoryRing (const InventoryLocation &inventoryloc, const std::string &listname) |
void | acceptInput (FormspecQuitMode quitmode=quit_mode_no) |
bool | preprocessEvent (const SEvent &event) |
bool | OnEvent (const SEvent &event) |
bool | pausesGame () |
GUITable * | getTable (const std::string &tablename) |
std::vector< std::string > * | getDropDownValues (const std::string &name) |
core::rect< s32 > | getAbsoluteRect () |
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 () |
Static Public Member Functions | |
static void | create (GUIFormSpecMenu *&cur_formspec, Client *client, gui::IGUIEnvironment *guienv, JoystickController *joystick, IFormSource *fs_src, TextDest *txt_dest, const std::string &formspecPrepend, ISoundManager *sound_manager) |
static double | getFixedImgsize (double screen_dpi, double gui_scaling) |
static double | getImgsize (v2u32 avail_screensize, double screen_dpi, double gui_scaling) |
Public Attributes | |
bool | doPause |
Protected Member Functions | |
v2s32 | getBasePos () const |
std::wstring | getLabelByID (s32 id) |
get label of element by id | |
std::string | getNameByID (s32 id) |
get name of element by element id | |
const FieldSpec * | getSpecByID (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) |
bool | precheckElement (const std::string &name, const std::string &element, size_t args_min, size_t args_max, std::vector< std::string > &parts) |
StyleSpec | getDefaultStyleForElement (const std::string &type, const std::string &name="", const std::string &parent_type="") |
std::array< StyleSpec, StyleSpec::NUM_STATES > | getStyleForElement (const std::string &type, const std::string &name="", const std::string &parent_type="") |
Protected Member Functions inherited from GUIModalMenu | |
ScalingInfo | getScalingInfo (v2u32 screensize, v2u32 base_size) |
Private Member Functions | |
void | removeAll () |
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, const std::string &element) |
void | parseScrollContainer (parserData *data, const std::string &element) |
void | parseScrollContainerEnd (parserData *data, const std::string &element) |
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) |
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 | parseFieldEnterAfterEdit (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) |
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) |
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 | parseRealCoordinates (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 | parsePaddingDirect (parserData *data, const std::string &element) |
void | parsePadding (parserData *data, const std::string &element) |
void | parseStyle (parserData *data, const std::string &element) |
void | parseSetFocus (parserData *, const std::string &element) |
void | parseModel (parserData *data, const std::string &element) |
bool | parseMiddleRect (const std::string &value, core::rect< s32 > *parsed_rect) |
void | tryClose () |
void | showTooltip (const std::wstring &text, const irr::video::SColor &color, const irr::video::SColor &bgcolor) |
void | legacySortElements (std::list< IGUIElement * >::iterator from) |
In formspec version < 2 the elements were not ordered properly. | |
double | calculateImgsize (const parserData &data) |
Private Attributes | |
IFormSource * | m_form_src |
TextDest * | m_text_dst |
std::string | m_last_formname |
u16 | m_formspec_version = 1 |
std::optional< std::string > | m_focused_element = std::nullopt |
JoystickController * | m_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 |
s32 | m_tabheader_upper_edge = 0 |
Static Private Attributes | |
static const std::unordered_map< std::string, std::function< void(GUIFormSpecMenu *, GUIFormSpecMenu::parserData *data, const std::string &description)> > | element_parsers |
GUIFormSpecMenu::GUIFormSpecMenu | ( | JoystickController * | joystick, |
gui::IGUIElement * | parent, | ||
s32 | id, | ||
IMenuManager * | menumgr, | ||
Client * | client, | ||
gui::IGUIEnvironment * | guienv, | ||
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().
GUIFormSpecMenu::~GUIFormSpecMenu | ( | ) |
References m_form_src, m_selected_item, m_text_dst, and removeAll().
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(), itos(), 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().
|
inline |
References m_hovered_item_tooltips.
Referenced by GUIInventoryList::draw().
|
inline |
References m_allowclose.
|
private |
References g_settings, RenderingEngine::getDisplayDensity(), getFixedImgsize(), Settings::getFloat(), getImgsize(), GUIFormSpecMenu::parserData::invsize, m_lock, GUIFormSpecMenu::parserData::padding, GUIFormSpecMenu::parserData::real_coordinates, and GUIFormSpecMenu::parserData::screensize.
Referenced by regenerateGui().
|
static |
References GUIFormSpecMenu(), doPause, g_menumgr, guienv, guiroot, setFormSource(), setFormspecPrepend(), and setTextDest().
Referenced by Game::handleClientEvent_ShowFormSpec(), Game::handleClientEvent_ShowLocalFormSpec(), Game::nodePlacement(), Game::openInventory(), Game::showDeathFormspecLegacy(), and Game::showPauseMenu().
|
private |
References irr::gui::StaticText::add(), StyleSpec::BORDER, GUIFormSpecMenu::parserData::current_parent, GUIFormSpecMenu::FieldSpec::fdefault, GUIFormSpecMenu::FieldSpec::fid, GUIFormSpecMenu::FieldSpec::flabel, GUIFormSpecMenu::FieldSpec::fname, g_fontengine, getDefaultStyleForElement(), FontEngine::getTextHeight(), m_focused_element, m_tsrc, StyleSpec::NOCLIP, GUIFormSpecMenu::FieldSpec::send, and StyleSpec::TEXTCOLOR.
Referenced by parseSimpleField(), and parseTextArea().
|
inline |
References m_tooltip_append_itemname.
Referenced by GUIInventoryList::draw().
|
virtual |
Implements GUIModalMenu.
References drawItemStack(), drawSelectedItem(), f_HyperText, RenderingEngine::get_raw_device(), porting::getDeltaMs(), IFormSource::getForm(), porting::getTimeMs(), IT_ROT_HOVERED, m_bgcolor, m_bgfullscreen, m_bgnonfullscreen, m_clickthrough_elements, m_client, m_default_tooltip_bgcolor, m_default_tooltip_color, m_fields, m_font, m_form_src, m_formspec_string, m_fullscreen_bgcolor, m_hovered_item_tooltips, m_hovered_time, m_is_form_regenerated, m_old_tooltip_id, GUIModalMenu::m_pointer, GUIModalMenu::m_screensize_old, m_show_debug, m_tooltip_element, m_tooltip_rects, m_tooltip_show_delay, m_tooltips, regenerateGui(), sanity_check, showTooltip(), updateSelectedItem(), and utf8_to_wide().
void GUIFormSpecMenu::drawSelectedItem | ( | ) |
References ItemStack::count, drawItemStack(), InventoryManager::getInventory(), InventoryList::getItem(), Inventory::getList(), GUIInventoryList::ItemSpec::i, GUIInventoryList::ItemSpec::inventoryloc, IT_ROT_DRAGGED, GUIInventoryList::ItemSpec::listname, m_client, m_font, m_invmgr, GUIModalMenu::m_pointer, m_selected_amount, m_selected_item, sanity_check, and GUIInventoryList::ItemSpec::slotsize.
Referenced by drawMenu().
core::rect< s32 > GUIFormSpecMenu::getAbsoluteRect | ( | ) |
References m_tabheader_upper_edge.
|
inlineprotected |
References offset, and padding.
Referenced by regenerateGui().
|
inline |
References m_client.
Referenced by GUIInventoryList::draw().
|
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().
std::vector< std::string > * GUIFormSpecMenu::getDropDownValues | ( | const std::string & | name | ) |
|
protected |
References padding, pos_offset, spacing, and stof.
Referenced by parseAnimatedImage(), parseBackground(), parseBox(), parseButton(), parseCheckbox(), parseDropDown(), parseHyperText(), parseImage(), parseImageButton(), parseItemImage(), parseItemImageButton(), parseLabel(), parseList(), parseModel(), parsePwdField(), parseScrollBar(), parseSimpleField(), parseTable(), parseTextArea(), parseTextList(), parseTooltip(), and parseVertLabel().
|
static |
|
inline |
References m_current_inventory_location.
|
static |
References getFixedImgsize().
Referenced by calculateImgsize().
GUIInventoryList::ItemSpec GUIFormSpecMenu::getItemAtPos | ( | v2s32 | p | ) | const |
References m_inventorylists, and p().
Referenced by OnEvent().
|
protectedvirtual |
get label of element by id
id | of element |
Implements GUIModalMenu.
References m_fields.
|
protectedvirtual |
get name of element by element id
id | of element |
Implements GUIModalMenu.
References m_fields.
s16 GUIFormSpecMenu::getNextInventoryRing | ( | const InventoryLocation & | inventoryloc, |
const std::string & | listname ) |
References GUIFormSpecMenu::ListRingSpec::inventoryloc, GUIFormSpecMenu::ListRingSpec::listname, and m_inventory_rings.
Referenced by OnEvent(), and updateSelectedItem().
|
protected |
References imgsize, pos_offset, and stof.
Referenced by parseAnimatedImage(), parseBackground(), parseBox(), parseButton(), parseCheckbox(), parseDropDown(), parseHyperText(), parseImage(), parseImageButton(), parseItemImage(), parseItemImageButton(), parseLabel(), parseList(), parseModel(), parsePwdField(), parseScrollBar(), parseScrollContainer(), parseTabHeader(), parseTable(), parseTextArea(), parseTextList(), parseTooltip(), and parseVertLabel().
|
protected |
Referenced by parseAnimatedImage(), parseBackground(), parseBox(), parseButton(), parseDropDown(), parseHyperText(), parseImage(), parseImageButton(), parseItemImage(), parseItemImageButton(), parseModel(), parsePwdField(), parseScrollBar(), parseScrollContainer(), parseTabHeader(), parseTable(), parseTextArea(), parseTextList(), and parseTooltip().
|
inline |
References m_selected_amount.
Referenced by GUIInventoryList::draw().
|
inline |
References m_selected_item.
Referenced by GUIInventoryList::draw().
|
protected |
References m_fields.
|
protected |
References theme_by_name, and theme_by_type.
Referenced by getDefaultStyleForElement(), parseButton(), parseImageButton(), parseItemImageButton(), and parseModel().
GUITable * GUIFormSpecMenu::getTable | ( | const std::string & | tablename | ) |
References m_tables, and table.
Referenced by acceptInput().
|
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().
References m_lock, and m_lockscreensize.
Referenced by parseSize().
|
virtual |
Reimplemented from GUIModalMenu.
References acceptInput(), InventoryList::addItem(), ItemStack::addItem(), BET_DOWN, BET_LEFT, BET_MIDDLE, BET_MOVE, BET_OTHER, BET_RIGHT, BET_UP, BET_WHEEL_DOWN, BET_WHEEL_UP, GUIModalMenu::canTakeFocus(), InventoryList::changeItem(), Client::checkPrivilege(), ItemStack::clear(), ICraftAction::count, IDropAction::count, IMoveAction::count, ItemStack::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, g_gamecallback, InventoryManager::getInventory(), InventoryList::getItem(), getItemAtPos(), getKeySetting(), Inventory::getList(), getNextInventoryRing(), InventoryList::getSize(), ItemStack::getStackMax(), TextDest::gotText(), GUIInventoryList::ItemSpec::i, IGameDef::idef(), infostream, Client::inhibit_inventory_revert, 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_client, m_fields, m_held_mouse_button, m_inventory_rings, m_invmgr, m_left_drag_amount, m_left_drag_stack, m_left_drag_stacks, m_left_dragging, GUIModalMenu::m_old_pointer, m_old_tooltip_id, GUIModalMenu::m_pointer, m_scroll_containers, GUIModalMenu::m_second_touch, m_selected_amount, m_selected_dragging, m_selected_item, m_selected_swap, m_shift_move_after_craft, m_show_debug, m_sound_manager, m_text_dst, Client::makeScreenshot(), IMoveAction::move_somewhere, MYMIN, ItemStack::name, porting::open_url(), ISoundManager::playSound(), quit_mode_accept, quit_mode_no, GUIModalMenu::quitMenu(), sanity_check, MainGameCallback::showOpenURLDialog(), ItemStack::stacksWith(), MoveAction::to_i, MoveAction::to_inv, MoveAction::to_list, tryClose(), updateSelectedItem(), and verbosestream.
Referenced by preprocessEvent().
|
private |
References GUIFormSpecMenu::parserData::anchor, errorstream, FORMSPEC_API_VERSION, m_formspec_version, MY_CHECKGEOM, split(), and stof.
Referenced by parseAnchorDirect().
|
private |
References parseAnchor(), split(), and trim().
Referenced by regenerateGui().
|
private |
References GUIFormSpecMenu::parserData::current_parent, GUIFormSpecMenu::parserData::explicit_size, f_AnimatedImage, GUIFormSpecMenu::FieldSpec::fid, GUIFormSpecMenu::FieldSpec::fname, GUIFormSpecMenu::FieldSpec::ftype, getDefaultStyleForElement(), getElementBasePos(), getRealCoordinateBasePos(), getRealCoordinateGeometry(), ISimpleTextureSource::getTexture(), imgsize, m_clickthrough_elements, m_fields, m_tsrc, MY_CHECKGEOM, MY_CHECKPOS, StyleSpec::NOCLIP, parseMiddleRect(), precheckElement(), GUIFormSpecMenu::parserData::real_coordinates, GUIFormSpecMenu::FieldSpec::send, GUIAnimatedImage::setFrameCount(), GUIAnimatedImage::setFrameDuration(), GUIAnimatedImage::setFrameIndex(), GUIAnimatedImage::setMiddleRect(), GUIAnimatedImage::setTexture(), split(), stof, stoi, unescape_string(), and warningstream.
|
private |
References GUIFormSpecMenu::parserData::background_parent, GUIFormSpecMenu::parserData::explicit_size, FATAL_ERROR_IF, GUIFormSpecMenu::FieldSpec::fid, getElementBasePos(), getRealCoordinateBasePos(), getRealCoordinateGeometry(), imgsize, is_yes(), m_fields, m_tsrc, MY_CHECKGEOM, MY_CHECKPOS, parseMiddleRect(), precheckElement(), GUIFormSpecMenu::parserData::real_coordinates, spacing, split(), stof, stoi, unescape_string(), and warningstream.
|
private |
References errorstream, is_yes(), m_bgcolor, m_bgfullscreen, m_bgnonfullscreen, m_formspec_version, m_fullscreen_bgcolor, parseColorString(), and precheckElement().
|
private |
References StyleSpec::BORDERCOLORS, StyleSpec::BORDERWIDTHS, StyleSpec::COLORS, GUIFormSpecMenu::parserData::current_parent, f_Box, GUIFormSpecMenu::FieldSpec::fid, GUIFormSpecMenu::FieldSpec::fname, GUIFormSpecMenu::FieldSpec::ftype, getDefaultStyleForElement(), getElementBasePos(), getRealCoordinateBasePos(), getRealCoordinateGeometry(), m_fields, m_formspec_version, MY_CHECKGEOM, MY_CHECKPOS, StyleSpec::NOCLIP, parseColorString(), precheckElement(), GUIFormSpecMenu::parserData::real_coordinates, spacing, split(), and stof.
|
private |
References GUIButton::addButton(), GUIFormSpecMenu::parserData::current_parent, GUIFormSpecMenu::parserData::explicit_size, f_Button, GUIFormSpecMenu::FieldSpec::fid, GUIFormSpecMenu::FieldSpec::flabel, GUIFormSpecMenu::FieldSpec::fname, GUIFormSpecMenu::FieldSpec::ftype, getElementBasePos(), getRealCoordinateBasePos(), getRealCoordinateGeometry(), getStyleForElement(), imgsize, GUIFormSpecMenu::FieldSpec::is_exit, m_btn_height, m_fields, m_focused_element, m_tsrc, MY_CHECKGEOM, MY_CHECKPOS, precheckElement(), GUIFormSpecMenu::parserData::real_coordinates, GUIButton::setStyles(), StyleSpec::SOUND, GUIFormSpecMenu::FieldSpec::sound, spacing, split(), StyleSpec::STATE_DEFAULT, stof, translate_string(), GUIFormSpecMenu::parserData::type, unescape_string(), GUIFormSpecMenu::FieldSpec::url, utf8_to_wide(), and warningstream.
|
private |
References GUIFormSpecMenu::parserData::current_parent, f_CheckBox, GUIFormSpecMenu::FieldSpec::fid, GUIFormSpecMenu::FieldSpec::flabel, GUIFormSpecMenu::FieldSpec::fname, GUIFormSpecMenu::FieldSpec::ftype, getDefaultStyleForElement(), getElementBasePos(), getRealCoordinateBasePos(), imgsize, m_checkboxes, m_fields, m_focused_element, m_font, MY_CHECKPOS, StyleSpec::NOCLIP, precheckElement(), GUIFormSpecMenu::parserData::real_coordinates, StyleSpec::SOUND, GUIFormSpecMenu::FieldSpec::sound, split(), translate_string(), unescape_string(), and utf8_to_wide().
|
private |
References container_stack, errorstream, pos_offset, split(), and stof.
|
private |
References container_stack, errorstream, and pos_offset.
|
private |
References GUIFormSpecMenu::parserData::current_parent, f_DropDown, GUIFormSpecMenu::FieldSpec::fid, GUIFormSpecMenu::FieldSpec::fname, GUIFormSpecMenu::FieldSpec::ftype, getDefaultStyleForElement(), getElementBasePos(), getRealCoordinateBasePos(), getRealCoordinateGeometry(), is_yes(), m_btn_height, m_dropdown_index_event, m_dropdowns, m_fields, m_focused_element, MY_CHECKGEOM, MY_CHECKPOS, StyleSpec::NOCLIP, precheckElement(), GUIFormSpecMenu::parserData::real_coordinates, GUIFormSpecMenu::FieldSpec::send, StyleSpec::SOUND, GUIFormSpecMenu::FieldSpec::sound, spacing, split(), stof, stoi, unescape_string(), unescape_translate(), and utf8_to_wide().
|
private |
References element_parsers, infostream, parseVersionDirect(), trim(), and GUIFormSpecMenu::parserData::type.
Referenced by regenerateGui().
|
private |
References parseSimpleField(), parseTextArea(), precheckElement(), and GUIFormSpecMenu::parserData::type.
|
private |
References field_close_on_enter, is_yes(), and precheckElement().
|
private |
References field_enter_after_edit, is_yes(), and precheckElement().
|
private |
References GUIFormSpecMenu::parserData::current_parent, f_HyperText, GUIFormSpecMenu::FieldSpec::fid, GUIFormSpecMenu::FieldSpec::flabel, GUIFormSpecMenu::FieldSpec::fname, GUIFormSpecMenu::FieldSpec::ftype, getDefaultStyleForElement(), getElementBasePos(), getRealCoordinateBasePos(), getRealCoordinateGeometry(), imgsize, m_btn_height, m_client, m_fields, m_form_src, m_tsrc, MY_CHECKGEOM, MY_CHECKPOS, padding, precheckElement(), GUIFormSpecMenu::parserData::real_coordinates, IFormSource::resolveText(), StyleSpec::SOUND, GUIFormSpecMenu::FieldSpec::sound, spacing, split(), stof, translate_string(), unescape_string(), and utf8_to_wide().
|
private |
References GUIFormSpecMenu::parserData::current_parent, GUIFormSpecMenu::parserData::explicit_size, GUIFormSpecMenu::FieldSpec::fid, GUIFormSpecMenu::FieldSpec::fname, getDefaultStyleForElement(), getElementBasePos(), getRealCoordinateBasePos(), getRealCoordinateGeometry(), ISimpleTextureSource::getTexture(), imgsize, m_clickthrough_elements, m_fields, m_formspec_version, m_tsrc, MY_CHECKGEOM, MY_CHECKPOS, StyleSpec::NOCLIP, offset, parseMiddleRect(), precheckElement(), GUIFormSpecMenu::parserData::real_coordinates, GUIAnimatedImage::setMiddleRect(), GUIAnimatedImage::setTexture(), split(), stof, unescape_string(), and warningstream.
|
private |
References GUIButtonImage::addButton(), StyleSpec::BORDER, GUIFormSpecMenu::parserData::current_parent, errorstream, GUIFormSpecMenu::parserData::explicit_size, f_Button, StyleSpec::FGIMG, GUIFormSpecMenu::FieldSpec::fid, GUIFormSpecMenu::FieldSpec::flabel, GUIFormSpecMenu::FieldSpec::fname, GUIFormSpecMenu::FieldSpec::ftype, getElementBasePos(), getRealCoordinateBasePos(), getRealCoordinateGeometry(), getStyleForElement(), imgsize, GUIFormSpecMenu::FieldSpec::is_exit, m_fields, m_focused_element, m_tsrc, MY_CHECKGEOM, MY_CHECKPOS, StyleSpec::NOCLIP, precheckElement(), GUIFormSpecMenu::parserData::real_coordinates, GUIButton::setScaleImage(), GUIButton::setStyles(), StyleSpec::SOUND, GUIFormSpecMenu::FieldSpec::sound, spacing, split(), StyleSpec::STATE_DEFAULT, StyleSpec::STATE_PRESSED, stof, GUIFormSpecMenu::parserData::type, unescape_string(), utf8_to_wide(), and warningstream.
|
private |
References GUIFormSpecMenu::parserData::current_parent, GUIFormSpecMenu::parserData::explicit_size, f_ItemImage, GUIFormSpecMenu::FieldSpec::fid, GUIFormSpecMenu::FieldSpec::fname, GUIFormSpecMenu::FieldSpec::ftype, getDefaultStyleForElement(), getElementBasePos(), getRealCoordinateBasePos(), getRealCoordinateGeometry(), imgsize, m_clickthrough_elements, m_client, m_fields, m_font, MY_CHECKGEOM, MY_CHECKPOS, StyleSpec::NOCLIP, precheckElement(), GUIFormSpecMenu::parserData::real_coordinates, split(), stof, and warningstream.
|
private |
References GUIButtonItemImage::addButton(), GUIFormSpecMenu::parserData::basepos, GUIFormSpecMenu::parserData::current_parent, ItemDefinition::description, ItemStack::deSerialize(), GUIFormSpecMenu::parserData::explicit_size, f_Button, GUIFormSpecMenu::FieldSpec::fid, GUIFormSpecMenu::FieldSpec::flabel, GUIFormSpecMenu::FieldSpec::fname, GUIFormSpecMenu::FieldSpec::ftype, ItemStack::getDefinition(), getElementBasePos(), getRealCoordinateBasePos(), getRealCoordinateGeometry(), getStyleForElement(), IGameDef::idef(), imgsize, m_client, m_default_tooltip_bgcolor, m_default_tooltip_color, m_fields, m_focused_element, m_tooltips, m_tsrc, MY_CHECKCLIENT, MY_CHECKGEOM, MY_CHECKPOS, padding, precheckElement(), GUIFormSpecMenu::parserData::real_coordinates, GUIFormSpecMenu::FieldSpec::rect, GUIButton::setStyles(), StyleSpec::SOUND, GUIFormSpecMenu::FieldSpec::sound, spacing, split(), StyleSpec::STATE_DEFAULT, stof, unescape_string(), utf8_to_wide(), and warningstream.
|
private |
References irr::gui::StaticText::add(), GUIFormSpecMenu::parserData::current_parent, GUIFormSpecMenu::parserData::explicit_size, GUIFormSpecMenu::FieldSpec::fid, getDefaultStyleForElement(), getElementBasePos(), EnrichedString::getNextLine(), getRealCoordinateBasePos(), imgsize, m_btn_height, m_clickthrough_elements, m_fields, m_font, MY_CHECKPOS, StyleSpec::NOCLIP, precheckElement(), GUIFormSpecMenu::parserData::real_coordinates, EnrichedString::size(), spacing, split(), stof, StyleSpec::TEXTCOLOR, unescape_string(), utf8_to_wide(), and warningstream.
|
private |
References GUIFormSpecMenu::parserData::current_parent, InventoryLocation::deSerialize(), errorstream, GUIFormSpecMenu::parserData::explicit_size, GUIFormSpecMenu::FieldSpec::fid, GUIFormSpecMenu::FieldSpec::fname, getDefaultStyleForElement(), getElementBasePos(), getRealCoordinateBasePos(), imgsize, GUIFormSpecMenu::parserData::inventorylist_options, m_current_inventory_location, m_fields, m_font, m_inventorylists, m_invmgr, MY_CHECKCLIENT, MY_CHECKGEOM, MY_CHECKPOS, StyleSpec::NOCLIP, precheckElement(), GUIFormSpecMenu::parserData::real_coordinates, StyleSpec::SIZE, StyleSpec::SPACING, spacing, split(), stoi, and warningstream.
|
private |
References errorstream, GUIFormSpecMenu::parserData::inventorylist_options, m_default_tooltip_bgcolor, m_default_tooltip_color, m_inventorylists, parseColorString(), precheckElement(), GUIInventoryList::Options::slotbg_h, GUIInventoryList::Options::slotbg_n, GUIInventoryList::Options::slotborder, and GUIInventoryList::Options::slotbordercolor.
|
private |
References InventoryLocation::deSerialize(), errorstream, GUIInventoryList::getInventoryloc(), GUIInventoryList::getListname(), m_current_inventory_location, m_inventory_rings, m_inventorylists, MY_CHECKCLIENT, and split().
|
private |
References split(), stoi, and warningstream.
Referenced by parseAnimatedImage(), parseBackground(), and parseImage().
|
private |
References GUIFormSpecMenu::parserData::current_parent, GUIScene::enableContinuousRotation(), GUIScene::enableMouseControl(), errorstream, GUIFormSpecMenu::parserData::explicit_size, GUIFormSpecMenu::FieldSpec::fid, GUIFormSpecMenu::FieldSpec::fname, getElementBasePos(), Client::getMesh(), getRealCoordinateBasePos(), getRealCoordinateGeometry(), Client::getSceneManager(), getStyleForElement(), ISimpleTextureSource::getTexture(), imgsize, is_yes(), m_client, m_fields, m_tsrc, MY_CHECKCLIENT, MY_CHECKGEOM, MY_CHECKPOS, precheckElement(), GUIFormSpecMenu::parserData::real_coordinates, GUIScene::setAnimationSpeed(), GUIScene::setFrameLoop(), GUIScene::setMesh(), GUIScene::setRotation(), GUIScene::setStyles(), GUIScene::setTexture(), split(), stof, stoi, unescape_string(), and warningstream.
|
private |
References errorstream, FORMSPEC_API_VERSION, m_formspec_version, MY_CHECKGEOM, GUIFormSpecMenu::parserData::padding, split(), and stof.
Referenced by parsePaddingDirect().
|
private |
References parsePadding(), split(), and trim().
Referenced by regenerateGui().
|
private |
References errorstream, FORMSPEC_API_VERSION, m_formspec_version, MY_CHECKGEOM, GUIFormSpecMenu::parserData::offset, split(), and stof.
Referenced by parsePositionDirect().
|
private |
References parsePosition(), split(), and trim().
Referenced by regenerateGui().
|
private |
References irr::gui::StaticText::add(), StyleSpec::BORDER, GUIFormSpecMenu::parserData::current_parent, GUIFormSpecMenu::FieldSpec::fid, GUIFormSpecMenu::FieldSpec::flabel, GUIFormSpecMenu::FieldSpec::fname, g_fontengine, getDefaultStyleForElement(), getElementBasePos(), getRealCoordinateBasePos(), getRealCoordinateGeometry(), FontEngine::getTextHeight(), imgsize, m_btn_height, m_fields, m_focused_element, MY_CHECKGEOM, MY_CHECKPOS, StyleSpec::NOCLIP, padding, precheckElement(), GUIFormSpecMenu::parserData::real_coordinates, GUIFormSpecMenu::FieldSpec::send, spacing, split(), stof, StyleSpec::TEXTCOLOR, translate_string(), unescape_string(), and utf8_to_wide().
|
private |
References is_yes(), and GUIFormSpecMenu::parserData::real_coordinates.
|
private |
References GUIFormSpecMenu::parserData::arrow_visiblity, GUIFormSpecMenu::parserData::current_parent, f_ScrollBar, GUIFormSpecMenu::FieldSpec::fid, GUIFormSpecMenu::FieldSpec::fname, GUIFormSpecMenu::FieldSpec::ftype, getDefaultStyleForElement(), getElementBasePos(), getRealCoordinateBasePos(), getRealCoordinateGeometry(), GUIFormSpecMenu::parserData::large_step, m_fields, m_focused_element, m_scrollbars, m_tsrc, GUIFormSpecMenu::parserData::max, GUIFormSpecMenu::parserData::min, MY_CHECKGEOM, MY_CHECKPOS, StyleSpec::NOCLIP, precheckElement(), GUIFormSpecMenu::parserData::real_coordinates, GUIFormSpecMenu::parserData::scrollbar_options, GUIFormSpecMenu::FieldSpec::send, GUIScrollBar::setArrowsVisible(), GUIScrollBar::setLargeStep(), GUIScrollBar::setMax(), GUIScrollBar::setMin(), GUIScrollBar::setPageSize(), GUIScrollBar::setPos(), GUIScrollBar::setSmallStep(), GUIFormSpecMenu::parserData::small_step, spacing, split(), stof, stoi, and GUIFormSpecMenu::parserData::thumb_size.
|
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.
|
private |
References container_stack, GUIFormSpecMenu::parserData::current_parent, GUIFormSpecMenu::FieldSpec::fid, getRealCoordinateBasePos(), getRealCoordinateGeometry(), imgsize, m_fields, m_scroll_containers, MY_CHECKGEOM, MY_CHECKPOS, pos_offset, precheckElement(), GUIScrollContainer::setContentPadding(), split(), stof, and warningstream.
|
private |
References container_stack, GUIFormSpecMenu::parserData::current_parent, errorstream, and pos_offset.
|
private |
References is_yes(), TextDest::m_formname, m_is_form_regenerated, m_last_formname, m_text_dst, precheckElement(), and setFocus().
|
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().
|
private |
References errorstream, GUIFormSpecMenu::parserData::explicit_size, FORMSPEC_API_VERSION, g_settings, Settings::getBool(), GUIFormSpecMenu::parserData::invsize, lockSize(), m_formspec_version, MYMAX, split(), and stof.
Referenced by parseSizeDirect().
|
private |
References parseSize(), split(), trim(), and warningstream.
Referenced by regenerateGui().
|
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(), GUIFormSpecMenu::parserData::type, unescape_string(), and warningstream.
|
private |
References StyleSpec::BGCOLOR, GUIFormSpecMenu::parserData::current_parent, errorstream, f_TabHeader, GUIFormSpecMenu::FieldSpec::fid, GUIFormSpecMenu::FieldSpec::ftype, getDefaultStyleForElement(), getRealCoordinateBasePos(), getRealCoordinateGeometry(), m_btn_height, m_fields, m_tabheader_upper_edge, MY_CHECKGEOM, MY_CHECKPOS, MYMIN, StyleSpec::NOCLIP, pos_offset, precheckElement(), GUIFormSpecMenu::parserData::real_coordinates, StyleSpec::SOUND, GUIFormSpecMenu::FieldSpec::sound, spacing, split(), stof, stoi, StyleSpec::TEXTCOLOR, unescape_string(), unescape_translate(), and utf8_to_wide().
|
private |
References GUIFormSpecMenu::parserData::current_parent, f_Table, GUIFormSpecMenu::FieldSpec::fid, GUIFormSpecMenu::FieldSpec::fname, GUIFormSpecMenu::FieldSpec::ftype, getDefaultStyleForElement(), getElementBasePos(), getRealCoordinateBasePos(), getRealCoordinateGeometry(), m_fields, m_focused_element, m_tables, m_tsrc, MY_CHECKGEOM, MY_CHECKPOS, StyleSpec::NOCLIP, precheckElement(), GUIFormSpecMenu::parserData::real_coordinates, GUITable::setDynamicData(), GUITable::setOverrideFont(), GUITable::setSelected(), GUITable::setTable(), spacing, split(), stof, stoi, GUIFormSpecMenu::parserData::table_columns, GUIFormSpecMenu::parserData::table_dyndata, GUIFormSpecMenu::parserData::table_options, unescape_string(), unescape_translate(), utf8_to_wide(), and wide_to_utf8().
|
private |
References GUITable::TableColumn::options, split(), GUITable::splitOption(), GUIFormSpecMenu::parserData::table_columns, GUITable::TableColumn::type, and unescape_string().
|
private |
References split(), GUITable::splitOption(), GUIFormSpecMenu::parserData::table_options, and unescape_string().
|
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().
|
private |
References GUIFormSpecMenu::parserData::current_parent, f_Table, GUIFormSpecMenu::FieldSpec::fid, GUIFormSpecMenu::FieldSpec::fname, GUIFormSpecMenu::FieldSpec::ftype, getDefaultStyleForElement(), getElementBasePos(), getRealCoordinateBasePos(), getRealCoordinateGeometry(), is_yes(), m_fields, m_focused_element, m_tables, m_tsrc, MY_CHECKGEOM, MY_CHECKPOS, StyleSpec::NOCLIP, precheckElement(), GUIFormSpecMenu::parserData::real_coordinates, GUITable::setDynamicData(), GUITable::setOverrideFont(), GUITable::setSelected(), GUITable::setTextList(), spacing, split(), stof, stoi, GUIFormSpecMenu::parserData::table_dyndata, unescape_string(), unescape_translate(), utf8_to_wide(), and wide_to_utf8().
|
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(), precheckElement(), GUIFormSpecMenu::parserData::real_coordinates, spacing, split(), stof, unescape_string(), and utf8_to_wide().
|
private |
References is_number(), m_formspec_version, mystoi(), split(), and trim().
Referenced by parseElement(), and regenerateGui().
|
private |
References irr::gui::StaticText::add(), GUIFormSpecMenu::parserData::current_parent, GUIFormSpecMenu::parserData::explicit_size, GUIFormSpecMenu::FieldSpec::fid, GUIFormSpecMenu::FieldSpec::flabel, font_line_height(), getDefaultStyleForElement(), getElementBasePos(), getRealCoordinateBasePos(), imgsize, m_btn_height, m_clickthrough_elements, m_fields, m_font, MY_CHECKPOS, StyleSpec::NOCLIP, precheckElement(), GUIFormSpecMenu::parserData::real_coordinates, split(), StyleSpec::TEXTCOLOR, unescape_string(), unescape_translate(), utf8_to_wide(), and warningstream.
|
inlinevirtual |
Reimplemented from GUIModalMenu.
References doPause.
|
protected |
References errorstream, FORMSPEC_API_VERSION, m_formspec_version, and split().
Referenced by parseAnimatedImage(), parseBackground(), parseBackgroundColor(), parseBox(), parseButton(), parseCheckbox(), parseDropDown(), parseField(), parseFieldCloseOnEnter(), parseFieldEnterAfterEdit(), parseHyperText(), parseImage(), parseImageButton(), parseItemImage(), parseItemImageButton(), parseLabel(), parseList(), parseListColors(), parseModel(), parsePwdField(), parseScrollBar(), parseScrollContainer(), parseSetFocus(), parseTabHeader(), parseTable(), parseTextList(), parseTooltip(), and parseVertLabel().
|
virtual |
Reimplemented from GUIModalMenu.
References acceptInput(), BET_OTHER, KeyType::ESC, EscapeKey, JoystickController::getJoystickId(), getKeySetting(), JoystickController::handleEvent(), KeyType::JUMP, KeyPress::Key, m_allowclose, m_font, m_held_mouse_button, m_joystick, OnEvent(), GUIModalMenu::preprocessEvent(), quit_mode_accept, GUIModalMenu::quitMenu(), sanity_check, tryClose(), and JoystickController::wasKeyDown().
|
virtual |
Implements GUIModalMenu.
References irr::gui::StaticText::add(), GUIButton::addButton(), GUIFormSpecMenu::parserData::anchor, GUIFormSpecMenu::parserData::background_parent, GUIFormSpecMenu::parserData::basepos, calculateImgsize(), clamp_u8(), container_stack, GUIFormSpecMenu::parserData::current_parent, errorstream, GUIFormSpecMenu::parserData::explicit_size, field_close_on_enter, field_enter_after_edit, font_line_height(), g_fontengine, g_settings, RenderingEngine::get_video_driver(), getBasePos(), FontEngine::getFont(), Settings::getS32(), Settings::getV3F(), imgsize, GUIFormSpecMenu::parserData::invsize, is_yes(), legacySortElements(), 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_tabheader_upper_edge, m_tables, m_text_dst, m_tooltip_element, m_tooltip_rects, m_tooltips, m_tsrc, myround(), offset, GUIFormSpecMenu::parserData::offset, padding, GUIFormSpecMenu::parserData::padding, parseAnchorDirect(), parseElement(), parsePaddingDirect(), parsePositionDirect(), parseSizeDirect(), parseVersionDirect(), pos_offset, GUIFormSpecMenu::parserData::real_coordinates, GUIFormSpecMenu::parserData::rect, removeAll(), 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 wstrgettext().
Referenced by drawMenu(), and setFormSpec().
|
private |
References m_checkboxes, m_clickthrough_elements, m_inventorylists, m_scroll_containers, m_scrollbars, m_tables, m_tooltip_rects, and removeTooltip().
Referenced by ~GUIFormSpecMenu(), and regenerateGui().
void GUIFormSpecMenu::removeTooltip | ( | ) |
References m_tooltip_element.
Referenced by removeAll().
|
inline |
References m_show_debug.
Referenced by Game::updateDebugState().
|
inline |
References m_focused_element.
Referenced by parseSetFocus().
|
inline |
|
inline |
References m_current_inventory_location, m_formspec_string, m_is_form_regenerated, GUIModalMenu::m_screensize_old, and regenerateGui().
|
inline |
void GUIFormSpecMenu::setInitialFocus | ( | ) |
|
inline |
|
private |
References RenderingEngine::getLastPointerType(), EnrichedString::hasBackground(), m_btn_height, GUIModalMenu::m_pointer, m_tooltip_element, EnrichedString::setBackground(), EnrichedString::setDefaultColor(), setStaticText(), and Touch.
Referenced by drawMenu().
|
private |
References acceptInput(), doPause, TextDest::gotText(), m_allowclose, m_text_dst, quit_mode_cancel, and GUIModalMenu::quitMenu().
Referenced by OnEvent(), and preprocessEvent().
void GUIFormSpecMenu::updateSelectedItem | ( | ) |
References IMoveAction::count, ItemStack::count, ItemStack::empty(), MoveAction::from_i, MoveAction::from_inv, MoveAction::from_list, InventoryManager::getInventory(), InventoryList::getItem(), Inventory::getList(), getNextInventoryRing(), InventoryList::getSize(), GUIInventoryList::ItemSpec::i, InventoryManager::inventoryAction(), GUIFormSpecMenu::ListRingSpec::inventoryloc, GUIInventoryList::ItemSpec::inventoryloc, GUIFormSpecMenu::ListRingSpec::listname, GUIInventoryList::ItemSpec::listname, m_inventory_rings, m_inventorylists, m_invmgr, m_left_dragging, m_selected_amount, m_selected_dragging, m_selected_item, m_shift_move_after_craft, IMoveAction::move_somewhere, GUIInventoryList::ItemSpec::slotsize, MoveAction::to_inv, MoveAction::to_list, and verifySelectedItem().
Referenced by drawMenu(), and OnEvent().
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().
|
protected |
Referenced by parseContainer(), parseContainerEnd(), parseScrollContainer(), parseScrollContainerEnd(), and regenerateGui().
|
private |
Referenced by acceptInput(), and OnEvent().
|
private |
Referenced by GUIFormSpecMenu(), acceptInput(), and OnEvent().
bool GUIFormSpecMenu::doPause |
Referenced by create(), pausesGame(), and tryClose().
|
staticprivate |
Referenced by parseElement().
|
protected |
Referenced by OnEvent(), parseFieldCloseOnEnter(), and regenerateGui().
|
protected |
Referenced by parseFieldEnterAfterEdit(), and regenerateGui().
|
protected |
Referenced by getRealCoordinateBasePos(), getRealCoordinateGeometry(), parseAnimatedImage(), parseBackground(), parseButton(), parseCheckbox(), parseHyperText(), parseImage(), parseImageButton(), parseItemImage(), parseItemImageButton(), parseLabel(), parseList(), parseModel(), parsePwdField(), parseScrollContainer(), parseTextArea(), parseVertLabel(), and regenerateGui().
|
protected |
Referenced by allowClose(), OnEvent(), preprocessEvent(), and tryClose().
|
protected |
Referenced by drawMenu(), parseBackgroundColor(), and regenerateGui().
|
protected |
Referenced by drawMenu(), parseBackgroundColor(), and regenerateGui().
|
protected |
Referenced by drawMenu(), parseBackgroundColor(), and regenerateGui().
|
private |
|
protected |
Referenced by parseCheckbox(), regenerateGui(), and removeAll().
|
protected |
Referenced by drawMenu(), parseAnimatedImage(), parseImage(), parseItemImage(), parseLabel(), parseVertLabel(), regenerateGui(), and removeAll().
|
protected |
Referenced by drawMenu(), drawSelectedItem(), getClient(), OnEvent(), parseHyperText(), parseItemImage(), parseItemImageButton(), and parseModel().
|
protected |
Referenced by getFormspecLocation(), parseList(), parseListRing(), and setFormSpec().
|
protected |
Referenced by drawMenu(), parseItemImageButton(), parseListColors(), parseTooltip(), and regenerateGui().
|
protected |
Referenced by drawMenu(), parseItemImageButton(), parseListColors(), parseTooltip(), and regenerateGui().
|
protected |
Referenced by acceptInput(), parseDropDown(), and regenerateGui().
|
protected |
Referenced by getDropDownValues(), parseDropDown(), and regenerateGui().
|
protected |
Referenced by acceptInput(), drawMenu(), getLabelByID(), getNameByID(), getSpecByID(), OnEvent(), parseAnimatedImage(), parseBackground(), parseBox(), parseButton(), parseCheckbox(), parseDropDown(), parseHyperText(), parseImage(), parseImageButton(), parseItemImage(), parseItemImageButton(), parseLabel(), parseList(), parseModel(), parsePwdField(), parseScrollBar(), parseScrollContainer(), parseSimpleField(), parseTabHeader(), parseTable(), parseTextArea(), parseTextList(), parseTooltip(), parseVertLabel(), and regenerateGui().
|
private |
|
private |
Referenced by drawMenu(), drawSelectedItem(), parseCheckbox(), parseItemImage(), parseLabel(), parseList(), parseVertLabel(), preprocessEvent(), and regenerateGui().
|
private |
Referenced by ~GUIFormSpecMenu(), drawMenu(), parseHyperText(), parseSimpleField(), parseTextArea(), and setFormSource().
|
protected |
Referenced by regenerateGui(), and setFormspecPrepend().
|
protected |
Referenced by drawMenu(), regenerateGui(), and setFormSpec().
|
private |
|
protected |
Referenced by drawMenu(), parseBackgroundColor(), and regenerateGui().
|
protected |
Referenced by OnEvent(), and preprocessEvent().
|
private |
Referenced by addHoveredItemTooltip(), and drawMenu().
|
protected |
Referenced by drawMenu().
|
protected |
Referenced by getNextInventoryRing(), OnEvent(), parseListRing(), regenerateGui(), and updateSelectedItem().
|
protected |
Referenced by getItemAtPos(), parseList(), parseListColors(), parseListRing(), regenerateGui(), removeAll(), and updateSelectedItem().
|
protected |
Referenced by drawSelectedItem(), OnEvent(), parseList(), updateSelectedItem(), and verifySelectedItem().
|
protected |
Referenced by drawMenu(), parseSetFocus(), regenerateGui(), and setFormSpec().
|
private |
Referenced by preprocessEvent().
|
private |
Referenced by parseSetFocus(), and regenerateGui().
|
protected |
Referenced by OnEvent().
|
protected |
Referenced by OnEvent().
|
protected |
Referenced by OnEvent(), and updateSelectedItem().
|
protected |
Referenced by calculateImgsize(), lockSize(), and regenerateGui().
|
protected |
Referenced by lockSize(), and regenerateGui().
|
protected |
Referenced by drawMenu(), and OnEvent().
|
protected |
Referenced by OnEvent(), parseScrollContainer(), regenerateGui(), and removeAll().
|
protected |
Referenced by parseScrollBar(), regenerateGui(), and removeAll().
|
protected |
Referenced by drawSelectedItem(), getSelectedAmount(), OnEvent(), updateSelectedItem(), and verifySelectedItem().
|
protected |
Referenced by OnEvent(), updateSelectedItem(), and verifySelectedItem().
|
protected |
Referenced by ~GUIFormSpecMenu(), drawSelectedItem(), getSelectedItem(), OnEvent(), updateSelectedItem(), and verifySelectedItem().
|
protected |
Referenced by OnEvent(), and verifySelectedItem().
|
protected |
Referenced by OnEvent(), and updateSelectedItem().
|
private |
Referenced by drawMenu(), OnEvent(), and setDebugView().
|
protected |
Referenced by OnEvent().
|
private |
Referenced by getAbsoluteRect(), parseTabHeader(), and regenerateGui().
Referenced by getTable(), parseTable(), parseTextList(), regenerateGui(), and removeAll().
|
private |
Referenced by ~GUIFormSpecMenu(), acceptInput(), OnEvent(), parseSetFocus(), regenerateGui(), setTextDest(), and tryClose().
|
protected |
Referenced by GUIFormSpecMenu(), and doTooltipAppendItemname().
|
protected |
Referenced by drawMenu(), regenerateGui(), removeTooltip(), and showTooltip().
|
protected |
Referenced by drawMenu(), parseTooltip(), regenerateGui(), and removeAll().
|
protected |
Referenced by GUIFormSpecMenu(), and drawMenu().
|
protected |
Referenced by drawMenu(), parseItemImageButton(), parseTooltip(), and regenerateGui().
|
protected |
|
protected |
Referenced by getBasePos(), parseImage(), and regenerateGui().
|
protected |
Referenced by getBasePos(), getElementBasePos(), parseHyperText(), parseItemImageButton(), parsePwdField(), parseTextArea(), and regenerateGui().
|
protected |
|
protected |
Referenced by parseStyle().
|
protected |
Referenced by getElementBasePos(), parseBackground(), parseBox(), parseButton(), parseDropDown(), parseHyperText(), parseImageButton(), parseItemImageButton(), parseLabel(), parseList(), parsePwdField(), parseScrollBar(), parseTabHeader(), parseTable(), parseTextArea(), parseTextList(), parseTooltip(), and regenerateGui().
|
protected |
Referenced by getStyleForElement(), parseStyle(), and regenerateGui().
|
protected |
Referenced by getStyleForElement(), parseStyle(), and regenerateGui().