ManaPlus
|
#include <popupmenu.h>
Public Member Functions | |
PopupMenu () | |
void | postInit () |
void | showPopup (const int x, const int y, const Being *const being) |
void | showPopup (const int x, const int y, const std::vector< ActorSprite * > &beings) |
void | showPlayerPopup (const std::string &nick) |
void | showPopup (const int x, const int y, const FloorItem *const floorItem) |
void | showPopup (Window *const parent, const int x, const int y, const Item *const item, const InventoryTypeT type) |
void | showPopup (const int x, const int y, Button *const button) |
void | showPopup (const int x, const int y, const ProgressBar *const bar) |
void | showPopup (const int x, const int y, MapItem *const mapItem) |
void | showItemPopup (const int x, const int y, const Item *const item) |
void | showItemPopup (const int x, const int y, const int itemId, const ItemColor color) |
void | showDropPopup (const int x, const int y, const Item *const item) |
void | showOutfitsWindowPopup (const int x, const int y) |
void | showSpellPopup (const int x, const int y, TextCommand *const cmd) |
void | showAttackMonsterPopup (const int x, const int y, const std::string &name, const int type) |
void | showPickupItemPopup (const int x, const int y, const std::string &name) |
void | showUndressPopup (const int x, const int y, const Being *const being, const Item *const item) |
void | showMapPopup (const int x, const int y, const int x2, const int y2, const bool isMinimap) |
void | showChatPopup (const int x, const int y, ChatTab *const tab) |
void | showChangePos (const int x, const int y) |
void | showPopup (const int x, const int y, ListModel *const model) |
void | showTextFieldPopup (TextField *const input) |
void | showLinkPopup (const std::string &link) |
void | showWindowsPopup () |
void | showNpcDialogPopup (const BeingId npcId, const int x, const int y) |
void | showWindowPopup (Window *const window) |
void | showSkillPopup (const SkillInfo *const info) |
void | showSkillLevelPopup (const SkillInfo *const info) |
void | showSkillTypePopup (const SkillInfo *const info) |
void | showSkillOffsetPopup (const SkillInfo *const info, const bool isOffsetX) |
void | showCraftPopup () |
void | showEmoteType () |
void | showPartyPopup () |
void | showGuildPopup () |
void | showAttackPopup () |
void | showNavigationPopup () |
void | showPickupPopup () |
void | showPlayersPopup () |
void | showFriendsPopup () |
void | handleLink (const std::string &link, MouseEvent *event) |
void | clear () |
void | moveUp () |
void | moveDown () |
void | select () |
Public Member Functions inherited from Popup | |
Popup (const std::string &name, std::string skin) | |
~Popup () | |
void | draw (Graphics *const graphics) |
void | safeDraw (Graphics *const graphics) |
void | setContentSize (int width, int height) |
void | setLocationRelativeTo (const Widget *const widget) |
void | mouseMoved (MouseEvent &event) |
void | setMinWidth (const int width) |
int | getMinWidth () const |
void | setMinHeight (const int height) |
int | getMinHeight () const |
void | setMaxWidth (const int width) |
int | getMaxWidth () const |
void | setMaxHeight (const int height) |
int | getMaxHeight () const |
int | getPadding () const |
void | setPadding (int padding) |
void | setPopupName (const std::string &name) |
const std::string & | getPopupName () const |
void | scheduleDelete () |
Rect | getChildrenArea () |
void | position (const int x, const int y) |
void | hide () |
void | widgetResized (const Event &event) |
void | widgetMoved (const Event &event) |
bool | isPopupVisible () const |
void | postInit () |
Public Member Functions inherited from Container | |
Container (const Widget2 *const widget) | |
~Container () | |
bool | safeRemove (Widget *const widget) |
void | removeControls () |
Public Member Functions inherited from BasicContainer2 | |
BasicContainer2 (const Widget2 *const widget) | |
~BasicContainer2 () | |
void | setOpaque (Opaque opaque) |
bool | isOpaque () const |
virtual void | add (Widget *const widget) |
void | addXY (Widget *const widget, const int x, const int y) |
Public Member Functions inherited from BasicContainer | |
BasicContainer (const Widget2 *const widget) | |
~BasicContainer () | |
void | showWidgetPart (Widget *const widget, const Rect &area) |
void | moveToTop (Widget *const widget) |
void | moveToBottom (Widget *const widget) |
void | focusNext () |
void | focusPrevious () |
void | logic () |
void | setFocusHandler (FocusHandler *const focusHandler) |
void | setInternalFocusHandler (FocusHandler *const focusHandler) |
Widget * | getWidgetAt (int x, int y) |
void | death (const Event &event) |
Widget * | findFirstWidget (const std::set< Widget * > &list) |
void | add (Widget *const widget) |
virtual void | remove (Widget *const widget) |
Public Member Functions inherited from Widget | |
Widget (const Widget2 *const widget) | |
~Widget () | |
virtual void | drawFrame (Graphics *graphics) |
virtual void | safeDrawFrame (Graphics *graphics) |
void | setFrameSize (const unsigned int frameSize) |
unsigned int | getFrameSize () const |
Widget * | getParent () const |
void | setWidth (const int width) |
int | getWidth () const |
void | setHeight (const int height) |
int | getHeight () const |
void | setSize (const int width, const int height) |
void | setX (const int x) |
int | getX () const |
void | setY (const int y) |
int | getY () const |
void | setPosition (const int x, const int y) |
void | setDimension (const Rect &dimension) |
const Rect & | getDimension () const |
void | setFocusable (const bool focusable) |
bool | isFocusable () const |
virtual bool | isFocused () const |
void | setEnabled (const bool enabled) |
bool | isEnabled () const |
void | setVisible (Visible visible) |
bool | isVisible () const |
void | setBaseColor (const Color &color) |
const Color & | getBaseColor () const |
void | setForegroundColor (const Color &color) |
const Color & | getForegroundColor () const |
void | setBackgroundColor (const Color &color) |
const Color & | getBackgroundColor () const |
virtual void | requestFocus () |
virtual void | requestMoveToTop () |
virtual void | requestMoveToBottom () |
FocusHandler * | getFocusHandler () |
void | addActionListener (ActionListener *const actionListener) |
void | removeActionListener (ActionListener *const actionListener) |
void | addDeathListener (WidgetDeathListener *const deathListener) |
void | removeDeathListener (WidgetDeathListener *const deathListener) |
void | addMouseListener (MouseListener *const mouseListener) |
void | removeMouseListener (MouseListener *const mouseListener) |
void | addKeyListener (KeyListener *const keyListener) |
void | removeKeyListener (KeyListener *const keyListener) |
void | addFocusListener (FocusListener *const focusListener) |
void | removeFocusListener (FocusListener *const focusListener) |
void | addWidgetListener (WidgetListener *const widgetListener) |
void | removeWidgetListener (WidgetListener *const widgetListener) |
void | setActionEventId (const std::string &actionEventId) |
const std::string & | getActionEventId () const |
virtual void | getAbsolutePosition (int &x, int &y) const |
virtual void | setParent (Widget *parent) |
Font * | getFont () const |
void | setFont (Font *const font) |
virtual void | fontChanged () |
bool | isTabInEnabled () const |
void | setTabInEnabled (const bool enabled) |
bool | isTabOutEnabled () const |
void | setTabOutEnabled (const bool enabled) |
void | requestModalFocus () |
virtual void | requestModalMouseInputFocus () |
virtual void | releaseModalFocus () |
virtual void | releaseModalMouseInputFocus () |
virtual bool | isModalFocused () const |
virtual bool | isModalMouseInputFocused () const |
const std::list< MouseListener * > & | getMouseListeners () const A_CONST |
const std::list< KeyListener * > & | getKeyListeners () const A_CONST |
const std::list< FocusListener * > & | getFocusListeners () const A_CONST |
virtual FocusHandler * | getInternalFocusHandler () |
void | setInternalFocusHandler (FocusHandler *const internalFocusHandler) |
void | setId (const std::string &id) |
const std::string & | getId () const |
virtual void | showPart (const Rect &rectangle) |
bool | isAllowLogic () const |
void | setMouseConsume (const bool b) |
bool | isMouseConsume () const |
void | setRedraw (const bool b) |
virtual bool | isSelectable () const |
void | setSelectable (const bool selectable) |
void | windowResized () |
Public Member Functions inherited from Widget2 | |
virtual | ~Widget2 () |
const Color & | getThemeColor (const ThemeColorIdT type, const unsigned int alpha) const A_INLINE |
const Color & | getThemeCharColor (const signed char c, bool &valid) const A_INLINE |
virtual void | setWidget2 (const Widget2 *const widget) |
void | setPalette (int palette) |
void | checkPalette () |
void | setForegroundColor2 (const Color &color) |
Widget * | getWindow () const |
virtual void | setWindow (Widget *const window) |
Public Member Functions inherited from WidgetDeathListener | |
virtual | ~WidgetDeathListener () |
Public Member Functions inherited from MouseListener | |
virtual | ~MouseListener () |
virtual void | mouseEntered (MouseEvent &event) |
virtual void | mouseExited (MouseEvent &event) |
virtual void | mousePressed (MouseEvent &event) |
virtual void | mouseReleased (MouseEvent &event) |
virtual void | mouseClicked (MouseEvent &event) |
virtual void | mouseWheelMovedUp (MouseEvent &event) |
virtual void | mouseWheelMovedDown (MouseEvent &event) |
virtual void | mouseDragged (MouseEvent &event) |
Public Member Functions inherited from WidgetListener | |
virtual | ~WidgetListener () |
virtual void | widgetHidden (const Event &event) |
virtual void | widgetShown (const Event &event) |
Public Member Functions inherited from LinkHandler | |
LinkHandler () | |
virtual | ~LinkHandler () |
Private Member Functions | |
void | initPopup () |
bool | isAllowCommand (const ServerCommandTypeT command) |
bool | isAllowOtherCommand (const ServerCommandTypeT command) |
void | setMousePos () |
void | setMousePos2 () |
void | addPlayerRelation (const std::string &name) |
void | addFollow () |
void | addBuySell (const Being *const being) |
void | addParty (const std::string &nick) |
void | addPartyName (const std::string &partyName) |
void | addBuySellDefault () |
void | addPlayerMisc () |
void | addPickupFilter (const std::string &name) |
void | addProtection () |
void | addUse (const Item *const item) |
void | addItemMenu (const Item *const item, const InventoryTypeT type) |
void | addDrop (const Item *const item, const bool isProtected) |
void | addGmCommands () |
void | showMuteCommands () |
void | showPlayerMenu () |
void | showFloorItemGMCommands () |
void | showItemGMCommands () |
void | addNormalRelations () |
void | addWindowMenu (const Window *const window) |
void | showHomunGMCommands () |
void | showPetGMCommands () |
void | showMercenaryGMCommands () |
void | addChat (const Being *const being) |
void | addMailCommands () |
void | addCatchPetCommands () |
void | showGMPopup (const std::string &name) |
void | showPlayerGMCommands (const std::string &name) |
void | showNpcGMCommands () |
void | showMonsterGMCommands () |
void | showAdoptCommands () |
void | addSocialMenu () |
bool | addBeingMenu () |
void | showPopup (int x, int y) |
Private Attributes | |
StaticBrowserBox * | mBrowserBox |
ScrollArea * | mScrollArea |
BeingId | mBeingId |
BeingId | mFloorItemId |
int | mItemId |
int | mItemIndex |
int | mItemCards [4] |
ItemColor | mItemColor |
MapItem * | mMapItem |
ChatTab * | mTab |
TextCommand * | mSpell |
Window * | mCallerWindow |
RenameListener | mRenameListener |
PlayerListener | mPlayerListener |
TextDialog * | mDialog |
Button * | mButton |
const GroupInfo * | mGroup |
std::string | mName |
std::string | mExtName |
TextField * | mTextField |
ActorTypeT | mType |
BeingTypeId | mSubType |
int | mX |
int | mY |
bool | mAllowCleanMenu |
Additional Inherited Members | |
Static Public Member Functions inherited from Popup | |
static void | setWindowContainer (WindowContainer *const windowContainer) |
Static Public Member Functions inherited from Widget | |
static void | setGlobalFont (Font *const font) |
static Font * | getGloablFont () |
static void | cleanGlobalFont () |
static bool | widgetExists (const Widget *const widget) |
static void | distributeWindowResizeEvent () |
static Widget * | callPostInit (Widget *const widget) |
Data Fields inherited from Widget | |
Visible | mVisible |
Protected Types inherited from BasicContainer | |
typedef std::vector< Widget * > | WidgetList |
typedef WidgetList::iterator | WidgetListIterator |
typedef WidgetList::const_iterator | WidgetListConstIterator |
typedef WidgetList::reverse_iterator | WidgetListReverseIterator |
typedef WidgetList::const_reverse_iterator | WidgetListCReverseIterator |
Protected Types inherited from Widget | |
typedef std::list< MouseListener * > | MouseListenerList |
typedef MouseListenerList::iterator | MouseListenerIterator |
typedef std::list< KeyListener * > | KeyListenerList |
typedef KeyListenerList::iterator | KeyListenerIterator |
typedef std::list< ActionListener * > | ActionListenerList |
typedef ActionListenerList::iterator | ActionListenerIterator |
typedef std::list< WidgetDeathListener * > | WidgetDeathListenerList |
typedef WidgetDeathListenerList::iterator | WidgetDeathListenerIterator |
typedef std::list< FocusListener * > | FocusListenerList |
typedef FocusListenerList::iterator | FocusListenerIterator |
typedef std::list< WidgetListener * > | WidgetListenerList |
typedef WidgetListenerList::iterator | WidgetListenerIterator |
Protected Member Functions inherited from BasicContainer | |
virtual void | drawChildren (Graphics *const graphics) |
virtual void | safeDrawChildren (Graphics *const graphics) |
virtual void | logicChildren () |
Protected Member Functions inherited from Widget | |
void | distributeActionEvent () |
void | distributeResizedEvent () |
void | distributeMovedEvent () |
void | distributeHiddenEvent () |
void | distributeShownEvent () |
Protected Member Functions inherited from Widget2 | |
Widget2 (const Widget2 *const widget) | |
Protected Member Functions inherited from WidgetDeathListener | |
WidgetDeathListener () | |
Protected Member Functions inherited from MouseListener | |
MouseListener () | |
Protected Member Functions inherited from WidgetListener | |
WidgetListener () | |
Protected Attributes inherited from Popup | |
int | mPadding |
Skin * | mSkin |
Protected Attributes inherited from BasicContainer2 | |
Opaque | mOpaque |
Protected Attributes inherited from BasicContainer | |
WidgetList | mWidgets |
WidgetList | mLogicWidgets |
Protected Attributes inherited from Widget | |
MouseListenerList | mMouseListeners |
KeyListenerList | mKeyListeners |
ActionListenerList | mActionListeners |
WidgetDeathListenerList | mDeathListeners |
FocusListenerList | mFocusListeners |
WidgetListenerList | mWidgetListeners |
Color | mForegroundColor |
Color | mBackgroundColor |
Color | mBaseColor |
Rect | mDimension |
std::string | mActionEventId |
std::string | mId |
FocusHandler * | mFocusHandler |
FocusHandler * | mInternalFocusHandler |
Widget * | mParent |
Font * | mCurrentFont |
unsigned int | mFrameSize |
bool | mFocusable |
bool | mTabIn |
bool | mTabOut |
bool | mEnabled |
bool | mAllowLogic |
bool | mMouseConsume |
bool | mRedraw |
bool | mSelectable |
Protected Attributes inherited from Widget2 | |
int | mPaletteOffset |
Widget * | mWindow |
Color | mForegroundColor2 |
Static Protected Attributes inherited from Widget | |
static Font * | mGlobalFont = 0 |
Window showing popup menu.
Definition at line 69 of file popupmenu.h.
PopupMenu::PopupMenu | ( | ) |
Constructor.
Definition at line 105 of file popupmenu.cpp.
References Widget::addMouseListener(), mBrowserBox, mPlayerListener, mRenameListener, mScrollArea, Opaque_false, PlayerListener::setDialog(), RenameListener::setDialog(), StaticBrowserBox::setLinkHandler(), RenameListener::setMapItem(), PlayerListener::setNick(), StaticBrowserBox::setOpaque(), PlayerListener::setType(), ScrollArea::setVerticalScrollPolicy(), ScrollArea::SHOW_AUTO, and ActorType::Unknown.
|
private |
Definition at line 520 of file popupmenu.cpp.
References actorManager, StaticBrowserBox::addRow(), BeingMenuItem::command, ActorManager::findBeing(), FOR_EACH, fromInt, NPCDB::get(), Being::getSubType(), Actions::info(), mBeingId, mBrowserBox, EAthena::menu, and BeingMenuItem::name.
Referenced by showPopup().
|
private |
Definition at line 2593 of file popupmenu.cpp.
References _, StaticBrowserBox::addRow(), StaticBrowserBox::addSeparator(), PlayerRelationsManager::getDefault(), Net::getNetworkType(), Being::isBuyShopEnabled(), Being::isSellShopEnabled(), mBrowserBox, playerRelations, ServerType::TMWATHENA, and PlayerRelation::TRADE.
Referenced by showChatPopup(), and showPopup().
|
private |
Definition at line 2627 of file popupmenu.cpp.
References _, StaticBrowserBox::addRow(), StaticBrowserBox::addSeparator(), PlayerRelationsManager::getDefault(), mBrowserBox, playerRelations, and PlayerRelation::TRADE.
Referenced by showChatPopup(), and showPlayerPopup().
|
private |
Definition at line 3490 of file popupmenu.cpp.
References _, StaticBrowserBox::addRow(), Net::getNetworkType(), mBrowserBox, and ServerType::TMWATHENA.
Referenced by showPopup().
|
private |
Definition at line 2690 of file popupmenu.cpp.
References _, StaticBrowserBox::addRow(), StaticBrowserBox::addSeparator(), Being::getChat(), mBrowserBox, strprintf(), and ChatObject::title.
Referenced by showPopup().
|
private |
Definition at line 2864 of file popupmenu.cpp.
References _, StaticBrowserBox::addRow(), StaticBrowserBox::addSeparator(), Item::getQuantity(), and mBrowserBox.
Referenced by showDropPopup(), showItemPopup(), and showPopup().
|
private |
Definition at line 2581 of file popupmenu.cpp.
References _, StaticBrowserBox::addRow(), features, Configuration::getBoolValue(), and mBrowserBox.
Referenced by showChatPopup(), showPlayerPopup(), and showPopup().
|
private |
Definition at line 2888 of file popupmenu.cpp.
References _, StaticBrowserBox::addRow(), Being::isGM(), localPlayer, and mBrowserBox.
Referenced by showChatPopup(), showDropPopup(), showItemPopup(), showPlayerPopup(), showPopup(), and showUndressPopup().
|
private |
Definition at line 2817 of file popupmenu.cpp.
References StaticBrowserBox::addRow(), StaticBrowserBox::addSeparator(), InventoryType::Cart, ItemMenuItem::command1, ItemMenuItem::command2, InventoryType::Craft, Equipm_true, Equipped_true, FOR_EACHP, Item::getInfo(), Item::getQuantity(), Actions::info(), InventoryType::Inventory, Item::isEquipment(), Item::isEquipped(), InventoryType::MailEdit, InventoryType::MailView, mBrowserBox, EAthena::menu, ItemMenuItem::name1, ItemMenuItem::name2, InventoryType::Npc, InventoryType::Storage, InventoryType::Trade, InventoryType::TypeEnd, and InventoryType::Vending.
Referenced by showPopup().
|
private |
Definition at line 3480 of file popupmenu.cpp.
References _, StaticBrowserBox::addRow(), Net::getNetworkType(), mBrowserBox, and ServerType::TMWATHENA.
Referenced by showChatPopup(), showPlayerPopup(), and showPopup().
|
private |
Definition at line 2473 of file popupmenu.cpp.
References _, StaticBrowserBox::addRow(), and mBrowserBox.
Referenced by addPlayerRelation().
|
private |
Definition at line 2665 of file popupmenu.cpp.
References _, StaticBrowserBox::addRow(), StaticBrowserBox::addSeparator(), Being::getParty(), Being::isInParty(), localPlayer, mBrowserBox, party, and showAdoptCommands().
Referenced by showChatPopup().
|
private |
Definition at line 2641 of file popupmenu.cpp.
References _, StaticBrowserBox::addRow(), StaticBrowserBox::addSeparator(), Party::getName(), Being::getParty(), Being::isInParty(), localPlayer, mBrowserBox, and showAdoptCommands().
Referenced by showPopup().
|
private |
Definition at line 2717 of file popupmenu.cpp.
References _, actorManager, StaticBrowserBox::addRow(), ActorManager::isInIgnorePickupList(), ActorManager::isInPickupList(), and mBrowserBox.
Referenced by showDropPopup(), showItemPopup(), and showPopup().
|
private |
Definition at line 2705 of file popupmenu.cpp.
References _, StaticBrowserBox::addRow(), and mBrowserBox.
Referenced by showChatPopup(), and showPopup().
|
private |
Definition at line 2492 of file popupmenu.cpp.
References _, addNormalRelations(), StaticBrowserBox::addRow(), Relation::BLACKLISTED, Relation::DISREGARDED, Relation::ENEMY2, Relation::ERASED, Relation::FRIEND, PlayerRelationsManager::getRelation(), Relation::IGNORED, mBrowserBox, Relation::NEUTRAL, and playerRelations.
Referenced by showChatPopup(), showPlayerPopup(), and showPopup().
|
private |
Definition at line 2777 of file popupmenu.cpp.
References _, StaticBrowserBox::addRow(), StaticBrowserBox::addSeparator(), PlayerInfo::isItemProtected(), mBrowserBox, mItemId, and SPELL_MIN_ID.
Referenced by showDropPopup(), showItemPopup(), and showPopup().
|
private |
Definition at line 3508 of file popupmenu.cpp.
References _, StaticBrowserBox::addRow(), StaticBrowserBox::addSeparator(), StaticBrowserBox::clearRows(), Being::getGuild(), Net::getNetworkType(), Being::getParty(), guild, initPopup(), localPlayer, mBrowserBox, party, setMousePos(), and ServerType::TMWATHENA.
Referenced by showAttackPopup(), showFriendsPopup(), showGuildPopup(), showNavigationPopup(), showPartyPopup(), showPickupPopup(), and showPlayersPopup().
|
private |
Definition at line 2798 of file popupmenu.cpp.
References _, StaticBrowserBox::addRow(), Equipm_true, Equipped_true, Item::getInfo(), Actions::info(), Item::isEquipment(), Item::isEquipped(), and mBrowserBox.
Referenced by showDropPopup(), and showItemPopup().
|
private |
Definition at line 1185 of file popupmenu.cpp.
References _, StaticBrowserBox::addRow(), Window::getAlowClose(), initPopup(), Window::isSticky(), Window::isStickyButtonLock(), and mBrowserBox.
Referenced by showChatPopup(), showOutfitsWindowPopup(), and showWindowPopup().
|
virtual |
Clears the basic container from all widgets.
Reimplemented from BasicContainer.
Definition at line 2758 of file popupmenu.cpp.
References TextDialog::close(), maxCards, mButton, mCallerWindow, mDialog, mItemCards, mItemId, mItemIndex, mMapItem, mSpell, mTab, and mTextField.
Referenced by PopupManager::clearPopup().
|
virtual |
Handles link action.
Implements LinkHandler.
Definition at line 1251 of file popupmenu.cpp.
References _, actorManager, Widget::addActionListener(), adminHandler, BeingId_zero, BeingTypeId_zero, CAST_S32, Net::GuildHandler::changeMemberPostion(), chatHandler, Window::close(), CREATEWIDGET, CREATEWIDGETR, CREATEWIDGETV, MapItemType::EMPTY, escapeString(), InputManager::executeAction(), InputManager::executeChatCommand(), ActorManager::findBeing(), ActorManager::findBeingByName(), ActorManager::findItem(), fromInt, FloorItem::getCard(), Being::getChat(), Being::getComment(), MapItem::getComment(), Being::getGuild(), ActorSprite::getId(), FloorItem::getItemId(), Viewport::getMap(), Being::getName(), Being::getPartyName(), Map::getSpecialLayer(), Being::getTileX(), Being::getTileY(), MapItem::getType(), Widget::getX(), MapItem::getX(), Widget::getY(), MapItem::getY(), guild, guildHandler, TextField::handleCopy(), TextField::handlePaste(), MapItemType::HOME, inputManager, ItemColor_one, Net::ChatHandler::joinChat(), Being::loadComment(), localPlayer, mAllowCleanMenu, maxCards, mBeingId, mButton, mCallerWindow, mDialog, mExtName, mFloorItemId, miniStatusWindow, mItemCards, mItemColor, mItemId, mItemIndex, mMapItem, mName, mPlayerListener, mRenameListener, mSpell, mSubType, mTab, mTextField, mType, Net::AdminHandler::mute(), mX, mY, ActorType::Player, LocalPlayer::removeHome(), SocialWindow::removePortal(), replaceAll(), reportAlways, LocalPlayer::saveHomes(), Widget::setActionEventId(), PlayerListener::setDialog(), RenameListener::setDialog(), RenameListener::setMapItem(), PlayerListener::setNick(), Window::setSticky(), TextDialog::setText(), SpecialLayer::setTile(), PlayerListener::setType(), Widget::setVisible(), MiniStatusWindow::showBar(), WindowMenu::showButton(), showChangePos(), showCraftPopup(), showGMPopup(), showMuteCommands(), showPlayerMenu(), showPopup(), socialWindow, toInt, Catch::toString(), Catch::trim(), ActorType::Unknown, SpecialLayer::updateCache(), Being::updateComment(), viewport, Visible_false, Visible_true, Widget::widgetExists(), windowMenu, x, and y.
Referenced by PopupManager::closePopupMenu().
|
private |
Definition at line 152 of file popupmenu.cpp.
References GroupDb::getGroup(), Being::getGroupId(), localPlayer, and mGroup.
Referenced by addSocialMenu(), addWindowMenu(), showAttackMonsterPopup(), showChangePos(), showChatPopup(), showDropPopup(), showEmoteType(), showItemPopup(), showLinkPopup(), showMapPopup(), showNpcDialogPopup(), showOutfitsWindowPopup(), showPickupItemPopup(), showPlayerPopup(), showPopup(), showSkillLevelPopup(), showSkillOffsetPopup(), showSkillPopup(), showSkillTypePopup(), showSpellPopup(), showTextFieldPopup(), showUndressPopup(), showWindowPopup(), and showWindowsPopup().
|
private |
Definition at line 160 of file popupmenu.cpp.
References CAST_SIZE, Enable_true, Net::getNetworkType(), Being::isGM(), localPlayer, GroupInfo::mCommands, mGroup, GroupInfo::mPermissions, ServerCommandEnable::Self, and ServerType::TMWATHENA.
Referenced by showFloorItemGMCommands(), showItemGMCommands(), showMapPopup(), showMonsterGMCommands(), showMuteCommands(), showNpcGMCommands(), showPlayerGMCommands(), showPlayerMenu(), and showPopup().
|
private |
Definition at line 183 of file popupmenu.cpp.
References CAST_SIZE, Being::getName(), Net::getNetworkType(), Being::isGM(), localPlayer, GroupInfo::mCommands, mGroup, mName, ServerCommandEnable::Other, ServerCommandEnable::Self, and ServerType::TMWATHENA.
Referenced by showPlayerGMCommands(), and showPlayerMenu().
void PopupMenu::moveDown | ( | ) |
Definition at line 3625 of file popupmenu.cpp.
References mBrowserBox, and StaticBrowserBox::moveSelectionDown().
void PopupMenu::moveUp | ( | ) |
Definition at line 3620 of file popupmenu.cpp.
References mBrowserBox, and StaticBrowserBox::moveSelectionUp().
|
virtual |
Reimplemented from Widget.
Definition at line 146 of file popupmenu.cpp.
References BasicContainer2::add(), mScrollArea, and Popup::postInit().
void PopupMenu::select | ( | ) |
Definition at line 3630 of file popupmenu.cpp.
References mBrowserBox, and StaticBrowserBox::selectSelection().
|
private |
Definition at line 540 of file popupmenu.cpp.
References Gui::getMouseState(), Viewport::mMouseX, Viewport::mMouseY, mX, mY, and viewport.
Referenced by addSocialMenu(), showEmoteType(), showLinkPopup(), showPlayerPopup(), showSkillPopup(), showTextFieldPopup(), showWindowPopup(), and showWindowsPopup().
|
private |
Definition at line 553 of file popupmenu.cpp.
References Gui::getMouseState(), Viewport::mMouseX, Viewport::mMouseY, mX, mY, and viewport.
Referenced by showSkillLevelPopup(), showSkillOffsetPopup(), and showSkillTypePopup().
|
private |
Definition at line 3499 of file popupmenu.cpp.
References _, StaticBrowserBox::addRow(), Net::getNetworkType(), mBrowserBox, and ServerType::TMWATHENA.
Referenced by addParty(), addPartyName(), and showPlayerPopup().
void PopupMenu::showAttackMonsterPopup | ( | const int | x, |
const int | y, | ||
const std::string & | name, | ||
const int | type | ||
) |
Definition at line 2018 of file popupmenu.cpp.
References _, actorManager, StaticBrowserBox::addRow(), StaticBrowserBox::addSeparator(), MapItemType::ATTACK, BeingTypeId_zero, StaticBrowserBox::clearRows(), ActorManager::getAttackMobIndex(), ActorManager::getAttackMobsSize(), ActorManager::getPriorityAttackMobsSize(), MapItemType::IGNORE_, initPopup(), localPlayer, mBrowserBox, mExtName, mName, ActorType::Monster, mSubType, mType, mX, mY, MapItemType::PRIORITY, showPopup(), EmoteDB::size(), x, and y.
Referenced by AvatarListBox::mousePressed().
void PopupMenu::showAttackPopup | ( | ) |
Definition at line 3570 of file popupmenu.cpp.
References _, StaticBrowserBox::addRow(), addSocialMenu(), mBrowserBox, mX, mY, and showPopup().
Referenced by SocialWindow::action().
void PopupMenu::showChangePos | ( | const int | x, |
const int | y | ||
) |
Definition at line 1117 of file popupmenu.cpp.
References _, StaticBrowserBox::addRow(), BeingId_zero, BeingTypeId_zero, StaticBrowserBox::clearRows(), FOR_EACH, Being::getGuild(), guild, initPopup(), localPlayer, maxCards, mBeingId, mBrowserBox, mExtName, mFloorItemId, mItemCards, mItemId, mItemIndex, mMapItem, mName, mSubType, mType, mX, mY, Widget::setVisible(), showPopup(), strprintf(), ActorType::Unknown, Visible_false, x, and y.
Referenced by handleLink().
void PopupMenu::showChatPopup | ( | const int | x, |
const int | y, | ||
ChatTab *const | tab | ||
) |
Shows the related popup menu when right click on the chat at the specified mouse coordinates.
Definition at line 913 of file popupmenu.cpp.
References _, actorManager, addBuySell(), addBuySellDefault(), addFollow(), addGmCommands(), addMailCommands(), addParty(), addPlayerMisc(), addPlayerRelation(), StaticBrowserBox::addRow(), StaticBrowserBox::addSeparator(), addWindowMenu(), BeingId_zero, BeingTypeId_zero, ChatTabType::CHANNEL, chatWindow, StaticBrowserBox::clearRows(), ActorManager::findBeingByName(), ChatTab::getAllowHighlight(), Being::getExtName(), Being::getGuild(), ActorSprite::getId(), Guild::getId(), Being::getName(), Net::getNetworkType(), WhisperTab::getNick(), ChatTab::getNoAway(), Being::getParty(), ChatTab::getRemoveNames(), Guild::getServerGuild(), Being::getSubType(), Being::getType(), ChatTab::getType(), guildManager, GuildManager::havePower(), initPopup(), Being::isInParty(), localPlayer, mBeingId, mBrowserBox, mCallerWindow, mExtName, mName, mSubType, mTab, mType, mX, mY, ChatTabType::PARTY, party, ActorType::Player, showPopup(), strprintf(), ServerType::TMWATHENA, ChatTabType::WHISPER, x, and y.
Referenced by ChatWindow::mousePressed().
void PopupMenu::showCraftPopup | ( | ) |
Definition at line 3460 of file popupmenu.cpp.
References _, StaticBrowserBox::addRow(), StaticBrowserBox::clearRows(), mBrowserBox, mX, mY, showPopup(), and strprintf().
Referenced by handleLink().
void PopupMenu::showDropPopup | ( | const int | x, |
const int | y, | ||
const Item *const | item | ||
) |
Definition at line 1849 of file popupmenu.cpp.
References _, addDrop(), addGmCommands(), addPickupFilter(), addProtection(), StaticBrowserBox::addRow(), StaticBrowserBox::addSeparator(), addUse(), StaticBrowserBox::clearRows(), config, Configuration::getBoolValue(), Item::getCard(), Item::getColor(), Item::getId(), Item::getInvIndex(), Item::getName(), initPopup(), PlayerInfo::isItemProtected(), InventoryWindow::isStorageActive(), maxCards, mBrowserBox, mExtName, mItemCards, mItemColor, mItemId, mItemIndex, mName, mX, mY, showPopup(), x, and y.
Referenced by VirtShortcutContainer::mousePressed().
void PopupMenu::showEmoteType | ( | ) |
Definition at line 1215 of file popupmenu.cpp.
References _, StaticBrowserBox::addRow(), StaticBrowserBox::addSeparator(), StaticBrowserBox::clearRows(), ServerType::EVOL2, Net::getNetworkType(), initPopup(), mBrowserBox, mX, mY, setMousePos(), and showPopup().
Referenced by EmoteShortcutContainer::mousePressed().
|
private |
Definition at line 3336 of file popupmenu.cpp.
References _, StaticBrowserBox::addRow(), Net::getNetworkType(), isAllowCommand(), mBrowserBox, and ServerType::TMWATHENA.
Referenced by showGMPopup().
void PopupMenu::showFriendsPopup | ( | ) |
Definition at line 3610 of file popupmenu.cpp.
References _, StaticBrowserBox::addRow(), addSocialMenu(), mBrowserBox, mX, mY, and showPopup().
Referenced by SocialWindow::action().
|
private |
Definition at line 3396 of file popupmenu.cpp.
References _, StaticBrowserBox::addRow(), StaticBrowserBox::addSeparator(), ActorType::Avatar, StaticBrowserBox::clearRows(), ActorType::Elemental, ActorType::FloorItem, Widget::getX(), Widget::getY(), ActorType::Homunculus, Being::isGM(), localPlayer, mBrowserBox, ActorType::Mercenary, mItemId, ActorType::Monster, mType, ActorType::Npc, ActorType::Pet, ActorType::Player, ActorType::Portal, showFloorItemGMCommands(), showHomunGMCommands(), showItemGMCommands(), showMercenaryGMCommands(), showMonsterGMCommands(), showNpcGMCommands(), showPetGMCommands(), showPlayerGMCommands(), showPopup(), ActorType::SkillUnit, and ActorType::Unknown.
Referenced by handleLink().
void PopupMenu::showGuildPopup | ( | ) |
Definition at line 3556 of file popupmenu.cpp.
References _, StaticBrowserBox::addRow(), addSocialMenu(), mBrowserBox, mX, mY, and showPopup().
Referenced by SocialWindow::action().
|
private |
|
private |
Definition at line 3355 of file popupmenu.cpp.
References _, StaticBrowserBox::addRow(), StaticBrowserBox::addSeparator(), Net::getNetworkType(), isAllowCommand(), mBrowserBox, and ServerType::TMWATHENA.
Referenced by showGMPopup().
void PopupMenu::showItemPopup | ( | const int | x, |
const int | y, | ||
const int | itemId, | ||
const ItemColor | color | ||
) |
Definition at line 1748 of file popupmenu.cpp.
References _, addGmCommands(), addProtection(), StaticBrowserBox::addRow(), StaticBrowserBox::addSeparator(), StaticBrowserBox::clearRows(), Inventory::findItem(), PlayerInfo::getInventory(), initPopup(), PlayerInfo::isItemProtected(), maxCards, mBrowserBox, mItemCards, mItemColor, mItemId, mItemIndex, mX, mY, showItemPopup(), showPopup(), x, and y.
void PopupMenu::showItemPopup | ( | const int | x, |
const int | y, | ||
const Item *const | item | ||
) |
Definition at line 1790 of file popupmenu.cpp.
References _, addDrop(), addGmCommands(), addPickupFilter(), addProtection(), StaticBrowserBox::addRow(), StaticBrowserBox::addSeparator(), addUse(), StaticBrowserBox::clearRows(), config, Configuration::getBoolValue(), Item::getCard(), Item::getColor(), Item::getId(), Item::getInvIndex(), Item::getName(), initPopup(), PlayerInfo::isItemProtected(), InventoryWindow::isStorageActive(), ItemColor_one, maxCards, mBrowserBox, mExtName, mItemCards, mItemColor, mItemId, mItemIndex, mName, mX, mY, showPopup(), x, and y.
Referenced by ItemShortcutContainer::mousePressed(), ShopListBox::mouseReleased(), and showItemPopup().
void PopupMenu::showLinkPopup | ( | const std::string & | link | ) |
Definition at line 2194 of file popupmenu.cpp.
References _, StaticBrowserBox::addRow(), StaticBrowserBox::addSeparator(), StaticBrowserBox::clearRows(), initPopup(), mBrowserBox, mExtName, mName, mX, mY, setMousePos(), and showPopup().
Referenced by ItemLinkHandler::handleHttpLink().
void PopupMenu::showMapPopup | ( | const int | x, |
const int | y, | ||
const int | x2, | ||
const int | y2, | ||
const bool | isMinimap | ||
) |
Definition at line 805 of file popupmenu.cpp.
References _, StaticBrowserBox::addRow(), StaticBrowserBox::addSeparator(), Settings::cameraMode, StaticBrowserBox::clearRows(), initPopup(), isAllowCommand(), mBrowserBox, mCallerWindow, minimap, mX, mY, settings, showPopup(), Actions::slide(), x, and y.
Referenced by Minimap::mouseReleased().
|
private |
|
private |
Definition at line 3277 of file popupmenu.cpp.
References _, StaticBrowserBox::addRow(), StaticBrowserBox::addSeparator(), BeingId_zero, Net::getNetworkType(), isAllowCommand(), Actions::kick(), mBeingId, mBrowserBox, and ServerType::TMWATHENA.
Referenced by showGMPopup().
|
private |
Definition at line 3170 of file popupmenu.cpp.
References _, StaticBrowserBox::addRow(), StaticBrowserBox::addSeparator(), BeingId_zero, StaticBrowserBox::clearRows(), Net::getNetworkType(), Widget::getX(), Widget::getY(), isAllowCommand(), mBeingId, mBrowserBox, mName, showPopup(), strprintf(), and ServerType::TMWATHENA.
Referenced by handleLink().
void PopupMenu::showNavigationPopup | ( | ) |
Definition at line 3580 of file popupmenu.cpp.
References _, StaticBrowserBox::addRow(), addSocialMenu(), mBrowserBox, mX, mY, and showPopup().
Referenced by SocialWindow::action().
void PopupMenu::showNpcDialogPopup | ( | const BeingId | npcId, |
const int | x, | ||
const int | y | ||
) |
Definition at line 2244 of file popupmenu.cpp.
References _, StaticBrowserBox::addRow(), StaticBrowserBox::addSeparator(), StaticBrowserBox::clearRows(), initPopup(), mBeingId, mBrowserBox, mX, mY, showPopup(), x, and y.
Referenced by NpcDialog::mousePressed().
|
private |
Definition at line 3233 of file popupmenu.cpp.
References _, StaticBrowserBox::addRow(), StaticBrowserBox::addSeparator(), BeingId_zero, Net::getNetworkType(), isAllowCommand(), Actions::kick(), mBeingId, mBrowserBox, and ServerType::TMWATHENA.
Referenced by showGMPopup().
void PopupMenu::showOutfitsWindowPopup | ( | const int | x, |
const int | y | ||
) |
Definition at line 853 of file popupmenu.cpp.
References _, StaticBrowserBox::addRow(), StaticBrowserBox::addSeparator(), addWindowMenu(), StaticBrowserBox::clearRows(), initPopup(), mBrowserBox, mCallerWindow, mX, mY, outfitWindow, showPopup(), x, and y.
Referenced by OutfitWindow::mousePressed().
void PopupMenu::showPartyPopup | ( | ) |
Definition at line 3546 of file popupmenu.cpp.
References _, StaticBrowserBox::addRow(), addSocialMenu(), mBrowserBox, mX, mY, and showPopup().
Referenced by SocialWindow::action().
|
private |
void PopupMenu::showPickupItemPopup | ( | const int | x, |
const int | y, | ||
const std::string & | name | ||
) |
Definition at line 2101 of file popupmenu.cpp.
References _, actorManager, StaticBrowserBox::addRow(), StaticBrowserBox::addSeparator(), BeingTypeId_zero, StaticBrowserBox::clearRows(), ActorType::FloorItem, initPopup(), localPlayer, mBrowserBox, mExtName, mName, mSubType, mType, mX, mY, showPopup(), x, and y.
Referenced by AvatarListBox::mousePressed().
void PopupMenu::showPickupPopup | ( | ) |
Definition at line 3590 of file popupmenu.cpp.
References _, StaticBrowserBox::addRow(), addSocialMenu(), mBrowserBox, mX, mY, and showPopup().
Referenced by SocialWindow::action().
|
private |
Definition at line 2962 of file popupmenu.cpp.
References _, actorManager, StaticBrowserBox::addRow(), StaticBrowserBox::addSeparator(), BeingId_zero, ActorManager::findBeingByName(), Being::getGuildName(), Being::getName(), Net::getNetworkType(), Being::getParty(), Being::getPartyName(), Actions::heal(), isAllowCommand(), isAllowOtherCommand(), Being::isInParty(), Actions::kick(), AvatarDB::load(), localPlayer, mBeingId, mBrowserBox, mName, party, ActorType::Player, ServerType::TMWATHENA, and Actions::where().
Referenced by showGMPopup().
|
private |
Definition at line 2898 of file popupmenu.cpp.
References _, StaticBrowserBox::addRow(), StaticBrowserBox::clearRows(), Widget::getX(), Widget::getY(), isAllowCommand(), isAllowOtherCommand(), mBrowserBox, mName, showPopup(), and strprintf().
Referenced by handleLink().
void PopupMenu::showPlayerPopup | ( | const std::string & | nick | ) |
Definition at line 606 of file popupmenu.cpp.
References _, addBuySellDefault(), addFollow(), addGmCommands(), addMailCommands(), addPlayerRelation(), StaticBrowserBox::addRow(), StaticBrowserBox::addSeparator(), BeingId_zero, BeingTypeId_zero, StaticBrowserBox::clearRows(), Being::getGuild(), Avatar::getMap(), Guild::getMember(), Being::getName(), Being::getParty(), Guild::getServerGuild(), guildManager, GuildManager::havePower(), initPopup(), Being::isInParty(), localPlayer, mBeingId, mBrowserBox, mExtName, mName, mSubType, mType, mX, mY, party, ActorType::Player, setMousePos(), showAdoptCommands(), showPopup(), and strprintf().
Referenced by WhoIsOnline::handleLink(), and AvatarListBox::mousePressed().
void PopupMenu::showPlayersPopup | ( | ) |
Definition at line 3600 of file popupmenu.cpp.
References _, StaticBrowserBox::addRow(), addSocialMenu(), mBrowserBox, mX, mY, and showPopup().
Referenced by SocialWindow::action().
void PopupMenu::showPopup | ( | const int | x, |
const int | y, | ||
Button *const | button | ||
) |
Definition at line 1900 of file popupmenu.cpp.
References _, StaticBrowserBox::addRow(), StaticBrowserBox::addSeparator(), StaticBrowserBox::clearRows(), Widget::getActionEventId(), WindowMenu::getButtons(), Button::getCaption(), Button::getDescription(), initPopup(), mBrowserBox, mButton, Widget::mVisible, mX, mY, showPopup(), strprintf(), Visible_true, windowMenu, x, and y.
void PopupMenu::showPopup | ( | const int | x, |
const int | y, | ||
const Being *const | being | ||
) |
Shows the being related popup menu at the specified mouse coords.
Definition at line 203 of file popupmenu.cpp.
References _, actorManager, addBeingMenu(), addBuySell(), addCatchPetCommands(), addChat(), addFollow(), addGmCommands(), addMailCommands(), addPartyName(), addPlayerMisc(), addPlayerRelation(), StaticBrowserBox::addRow(), StaticBrowserBox::addSeparator(), ActorType::Avatar, CAST_S32, StaticBrowserBox::clearRows(), config, ActorType::Elemental, ActorManager::findBeing(), ActorType::FloorItem, Configuration::getBoolValue(), Being::getCreatorId(), Being::getExtName(), Being::getGenderSignWithSpace(), Being::getGuild(), PlayerInfo::getHomunculus(), ActorSprite::getId(), Guild::getId(), Being::getInfo(), Guild::getMember(), Being::getName(), Net::getNetworkType(), Being::getOwner(), Being::getPartyName(), ActorManager::getSeenPlayerById(), Guild::getServerGuild(), Being::getSubType(), Being::getType(), guildManager, GuildManager::havePower(), ActorType::Homunculus, Actions::info(), initPopup(), ActorManager::isInAttackList(), ActorManager::isInIgnoreAttackList(), ActorManager::isInPriorityAttackList(), localPlayer, mBeingId, mBrowserBox, ActorType::Mercenary, mExtName, mName, ActorType::Monster, Actions::msg(), mSubType, mType, mX, mY, ActorType::Npc, ActorType::Pet, ActorType::Player, ActorType::Portal, ActorType::SkillUnit, strprintf(), ServerType::TMWATHENA, ActorType::Unknown, x, and y.
Referenced by handleLink(), WhoIsOnline::handleLink(), InventoryWindow::mouseClicked(), AvatarListBox::mousePressed(), WindowMenu::mousePressed(), EquipmentWindow::mousePressed(), MiniStatusWindow::mousePressed(), showAttackMonsterPopup(), showAttackPopup(), showChangePos(), showChatPopup(), showCraftPopup(), showDropPopup(), showEmoteType(), showFriendsPopup(), showGMPopup(), showGuildPopup(), showItemPopup(), showLinkPopup(), showMapPopup(), showMuteCommands(), showNavigationPopup(), showNpcDialogPopup(), showOutfitsWindowPopup(), showPartyPopup(), showPickupItemPopup(), showPickupPopup(), showPlayerMenu(), showPlayerPopup(), showPlayersPopup(), showPopup(), showSkillLevelPopup(), showSkillOffsetPopup(), showSkillPopup(), showSkillTypePopup(), showSpellPopup(), showTextFieldPopup(), showUndressPopup(), showWindowPopup(), and showWindowsPopup().
void PopupMenu::showPopup | ( | const int | x, |
const int | y, | ||
const FloorItem *const | floorItem | ||
) |
Shows the floor item related popup menu at the specified mouse coords.
Definition at line 714 of file popupmenu.cpp.
References _, actorManager, addGmCommands(), addPickupFilter(), addProtection(), StaticBrowserBox::addRow(), StaticBrowserBox::addSeparator(), BeingTypeId_zero, StaticBrowserBox::clearRows(), config, ActorType::FloorItem, Configuration::getBoolValue(), FloorItem::getCard(), ActorSprite::getId(), FloorItem::getItemId(), FloorItem::getName(), initPopup(), ActorManager::isInIgnorePickupList(), ActorManager::isInPickupList(), maxCards, mBrowserBox, mExtName, mFloorItemId, mItemCards, mItemId, mName, mSubType, mType, mX, mY, showPopup(), x, and y.
void PopupMenu::showPopup | ( | const int | x, |
const int | y, | ||
const ProgressBar *const | bar | ||
) |
Definition at line 1944 of file popupmenu.cpp.
References _, StaticBrowserBox::addRow(), StaticBrowserBox::addSeparator(), StaticBrowserBox::clearRows(), Widget::getActionEventId(), MiniStatusWindow::getBars(), Widget::getId(), initPopup(), mBrowserBox, mExtName, miniStatusWindow, mName, Widget::mVisible, mX, mY, showPopup(), strprintf(), ProgressBar::text(), Visible_true, x, and y.
void PopupMenu::showPopup | ( | const int | x, |
const int | y, | ||
const std::vector< ActorSprite * > & | beings | ||
) |
Shows the beings related popup menu at the specified mouse coords.
Definition at line 569 of file popupmenu.cpp.
References _, StaticBrowserBox::addRow(), StaticBrowserBox::addSeparator(), CAST_U32, StaticBrowserBox::clearRows(), ActorType::FloorItem, FOR_EACH, Being::getGenderSignWithSpace(), ActorSprite::getId(), Being::getName(), FloorItem::getName(), ActorSprite::getType(), initPopup(), mBrowserBox, mX, mY, showPopup(), strprintf(), x, and y.
void PopupMenu::showPopup | ( | const int | x, |
const int | y, | ||
ListModel *const | model | ||
) |
Definition at line 2740 of file popupmenu.cpp.
References _, StaticBrowserBox::addRow(), StaticBrowserBox::clearRows(), ListModel::getElementAt(), ListModel::getNumberOfElements(), mBrowserBox, showPopup(), strprintf(), x, and y.
void PopupMenu::showPopup | ( | const int | x, |
const int | y, | ||
MapItem *const | mapItem | ||
) |
Definition at line 769 of file popupmenu.cpp.
References _, StaticBrowserBox::addRow(), StaticBrowserBox::addSeparator(), StaticBrowserBox::clearRows(), initPopup(), isAllowCommand(), mBrowserBox, mMapItem, mX, mY, showPopup(), Actions::slide(), x, and y.
|
private |
Shared code for the various showPopup functions.
Definition at line 2438 of file popupmenu.cpp.
References Widget::getHeight(), Graphics::getHeight(), Widget::getWidth(), PopupManager::hideItemPopup(), mainGraphics, mAllowCleanMenu, mBrowserBox, Graphics::mHeight, Popup::mPadding, mScrollArea, Graphics::mWidth, Widget::requestMoveToTop(), Popup::setContentSize(), ScrollArea::setHeight(), Widget::setPosition(), Widget::setVisible(), Widget::setWidth(), ScrollArea::setWidth(), StaticBrowserBox::updateHeight(), Visible_true, x, and y.
void PopupMenu::showPopup | ( | Window *const | parent, |
const int | x, | ||
const int | y, | ||
const Item *const | item, | ||
const InventoryTypeT | type | ||
) |
Shows the related popup menu when right click on the inventory at the specified mouse coordinates.
Definition at line 1580 of file popupmenu.cpp.
References _, addDrop(), addGmCommands(), addItemMenu(), addPickupFilter(), addProtection(), StaticBrowserBox::addRow(), StaticBrowserBox::addSeparator(), InventoryType::Cart, StaticBrowserBox::clearRows(), config, InventoryType::Craft, Configuration::getBoolValue(), Item::getCard(), Item::getColor(), Net::NpcHandler::getCurrentNpcDialog(), Item::getId(), NpcDialog::getInputState(), Item::getInvIndex(), Item::getName(), Item::getQuantity(), initPopup(), InventoryType::Inventory, PlayerInfo::isItemProtected(), InventoryWindow::isStorageActive(), Window::isWindowVisible(), NpcInputState::ITEM_CRAFT, InventoryType::MailEdit, InventoryType::MailView, maxCards, mBrowserBox, mCallerWindow, mExtName, mItemCards, mItemColor, mItemId, mItemIndex, mName, mX, mY, InventoryType::Npc, npcHandler, showPopup(), InventoryType::Storage, InventoryType::Trade, tradeWindow, InventoryType::TypeEnd, InventoryType::Vending, x, and y.
void PopupMenu::showSkillLevelPopup | ( | const SkillInfo *const | info | ) |
Definition at line 2356 of file popupmenu.cpp.
References _, StaticBrowserBox::addRow(), StaticBrowserBox::addSeparator(), StaticBrowserBox::clearRows(), Actions::info(), initPopup(), maxCards, mBrowserBox, mItemCards, mItemId, mItemIndex, mX, mY, setMousePos2(), showPopup(), and strprintf().
Referenced by SkillListBox::mousePressed(), and SkillRectangleListBox::mousePressed().
void PopupMenu::showSkillOffsetPopup | ( | const SkillInfo *const | info, |
const bool | isOffsetX | ||
) |
Definition at line 2307 of file popupmenu.cpp.
References _, StaticBrowserBox::addRow(), StaticBrowserBox::clearRows(), Actions::info(), initPopup(), mBrowserBox, mItemId, mItemIndex, mX, mY, setMousePos2(), showPopup(), and strprintf().
void PopupMenu::showSkillPopup | ( | const SkillInfo *const | info | ) |
Definition at line 2263 of file popupmenu.cpp.
References _, StaticBrowserBox::addRow(), StaticBrowserBox::addSeparator(), StaticBrowserBox::clearRows(), Actions::info(), initPopup(), mBrowserBox, mItemId, mItemIndex, mX, mY, setMousePos(), and showPopup().
Referenced by SkillListBox::mousePressed(), and SkillRectangleListBox::mousePressed().
void PopupMenu::showSkillTypePopup | ( | const SkillInfo *const | info | ) |
Definition at line 2394 of file popupmenu.cpp.
References _, StaticBrowserBox::addRow(), StaticBrowserBox::addSeparator(), StaticBrowserBox::clearRows(), Actions::info(), initPopup(), maxCards, mBrowserBox, mItemCards, mItemId, mItemIndex, mX, mY, setMousePos2(), showPopup(), and strprintf().
void PopupMenu::showSpellPopup | ( | const int | x, |
const int | y, | ||
TextCommand *const | cmd | ||
) |
Definition at line 887 of file popupmenu.cpp.
References _, StaticBrowserBox::addRow(), StaticBrowserBox::addSeparator(), StaticBrowserBox::clearRows(), initPopup(), mBrowserBox, mSpell, mX, mY, showPopup(), x, and y.
Referenced by SpellShortcutContainer::mouseReleased().
void PopupMenu::showTextFieldPopup | ( | TextField *const | input | ) |
Definition at line 2172 of file popupmenu.cpp.
References _, StaticBrowserBox::addRow(), StaticBrowserBox::addSeparator(), StaticBrowserBox::clearRows(), initPopup(), mBrowserBox, mTextField, mX, mY, setMousePos(), and showPopup().
Referenced by TextField::mousePressed().
void PopupMenu::showUndressPopup | ( | const int | x, |
const int | y, | ||
const Being *const | being, | ||
const Item *const | item | ||
) |
Definition at line 2138 of file popupmenu.cpp.
References _, addGmCommands(), StaticBrowserBox::addRow(), StaticBrowserBox::addSeparator(), StaticBrowserBox::clearRows(), Item::getCard(), Item::getColor(), ActorSprite::getId(), Item::getId(), Item::getInvIndex(), initPopup(), maxCards, mBeingId, mBrowserBox, mItemCards, mItemColor, mItemId, mItemIndex, mX, mY, showPopup(), x, and y.
Referenced by EquipmentWindow::mousePressed().
void PopupMenu::showWindowPopup | ( | Window *const | window | ) |
Definition at line 1164 of file popupmenu.cpp.
References _, StaticBrowserBox::addRow(), addWindowMenu(), StaticBrowserBox::clearRows(), initPopup(), mBrowserBox, mCallerWindow, mX, mY, setMousePos(), and showPopup().
Referenced by Window::mousePressed().
void PopupMenu::showWindowsPopup | ( | ) |
Definition at line 2217 of file popupmenu.cpp.
References _, StaticBrowserBox::addRow(), StaticBrowserBox::addSeparator(), CAST_S32, StaticBrowserBox::clearRows(), FOR_EACH, WindowMenu::getButtonTexts(), initPopup(), ButtonText::key, mBrowserBox, mX, mY, setMousePos(), showPopup(), strprintf(), ButtonText::text, and windowMenu.
|
private |
Definition at line 311 of file popupmenu.h.
Referenced by handleLink(), and showPopup().
|
private |
Definition at line 289 of file popupmenu.h.
Referenced by addBeingMenu(), handleLink(), showChangePos(), showChatPopup(), showMonsterGMCommands(), showMuteCommands(), showNpcDialogPopup(), showNpcGMCommands(), showPlayerGMCommands(), showPlayerPopup(), showPopup(), and showUndressPopup().
|
private |
Definition at line 286 of file popupmenu.h.
Referenced by addBeingMenu(), addBuySell(), addBuySellDefault(), addCatchPetCommands(), addChat(), addDrop(), addFollow(), addGmCommands(), addItemMenu(), addMailCommands(), addNormalRelations(), addParty(), addPartyName(), addPickupFilter(), addPlayerMisc(), addPlayerRelation(), addProtection(), addSocialMenu(), addUse(), addWindowMenu(), moveDown(), moveUp(), PopupMenu(), select(), showAdoptCommands(), showAttackMonsterPopup(), showAttackPopup(), showChangePos(), showChatPopup(), showCraftPopup(), showDropPopup(), showEmoteType(), showFloorItemGMCommands(), showFriendsPopup(), showGMPopup(), showGuildPopup(), showItemGMCommands(), showItemPopup(), showLinkPopup(), showMapPopup(), showMonsterGMCommands(), showMuteCommands(), showNavigationPopup(), showNpcDialogPopup(), showNpcGMCommands(), showOutfitsWindowPopup(), showPartyPopup(), showPickupItemPopup(), showPickupPopup(), showPlayerGMCommands(), showPlayerMenu(), showPlayerPopup(), showPlayersPopup(), showPopup(), showSkillLevelPopup(), showSkillOffsetPopup(), showSkillPopup(), showSkillTypePopup(), showSpellPopup(), showTextFieldPopup(), showUndressPopup(), showWindowPopup(), and showWindowsPopup().
|
private |
Definition at line 302 of file popupmenu.h.
Referenced by clear(), handleLink(), and showPopup().
|
private |
Definition at line 298 of file popupmenu.h.
Referenced by clear(), handleLink(), showChatPopup(), showMapPopup(), showOutfitsWindowPopup(), showPopup(), and showWindowPopup().
|
private |
Definition at line 301 of file popupmenu.h.
Referenced by clear(), and handleLink().
|
private |
Definition at line 305 of file popupmenu.h.
Referenced by handleLink(), showAttackMonsterPopup(), showChangePos(), showChatPopup(), showDropPopup(), showItemPopup(), showLinkPopup(), showPickupItemPopup(), showPlayerPopup(), and showPopup().
|
private |
Definition at line 290 of file popupmenu.h.
Referenced by handleLink(), showChangePos(), and showPopup().
|
private |
Definition at line 303 of file popupmenu.h.
Referenced by initPopup(), isAllowCommand(), and isAllowOtherCommand().
|
private |
Definition at line 293 of file popupmenu.h.
Referenced by clear(), handleLink(), showChangePos(), showDropPopup(), showItemPopup(), showPopup(), showSkillLevelPopup(), showSkillTypePopup(), and showUndressPopup().
|
private |
Definition at line 294 of file popupmenu.h.
Referenced by handleLink(), showDropPopup(), showItemPopup(), showPopup(), and showUndressPopup().
|
private |
Definition at line 291 of file popupmenu.h.
Referenced by addProtection(), clear(), handleLink(), showChangePos(), showDropPopup(), showGMPopup(), showItemPopup(), showPopup(), showSkillLevelPopup(), showSkillOffsetPopup(), showSkillPopup(), showSkillTypePopup(), and showUndressPopup().
|
private |
Definition at line 292 of file popupmenu.h.
Referenced by clear(), handleLink(), showChangePos(), showDropPopup(), showItemPopup(), showPopup(), showSkillLevelPopup(), showSkillOffsetPopup(), showSkillPopup(), showSkillTypePopup(), and showUndressPopup().
|
private |
Definition at line 295 of file popupmenu.h.
Referenced by clear(), handleLink(), showChangePos(), and showPopup().
|
private |
Definition at line 304 of file popupmenu.h.
Referenced by handleLink(), isAllowOtherCommand(), showAttackMonsterPopup(), showChangePos(), showChatPopup(), showDropPopup(), showItemPopup(), showLinkPopup(), showMuteCommands(), showPickupItemPopup(), showPlayerGMCommands(), showPlayerMenu(), showPlayerPopup(), and showPopup().
|
private |
Definition at line 300 of file popupmenu.h.
Referenced by handleLink(), and PopupMenu().
|
private |
Definition at line 299 of file popupmenu.h.
Referenced by handleLink(), and PopupMenu().
|
private |
Definition at line 287 of file popupmenu.h.
Referenced by PopupMenu(), postInit(), and showPopup().
|
private |
Definition at line 297 of file popupmenu.h.
Referenced by clear(), handleLink(), and showSpellPopup().
|
private |
Definition at line 308 of file popupmenu.h.
Referenced by handleLink(), showAttackMonsterPopup(), showChangePos(), showChatPopup(), showPickupItemPopup(), showPlayerPopup(), and showPopup().
|
private |
Definition at line 296 of file popupmenu.h.
Referenced by clear(), handleLink(), and showChatPopup().
|
private |
Definition at line 306 of file popupmenu.h.
Referenced by clear(), handleLink(), and showTextFieldPopup().
|
private |
Definition at line 307 of file popupmenu.h.
Referenced by handleLink(), showAttackMonsterPopup(), showChangePos(), showChatPopup(), showGMPopup(), showPickupItemPopup(), showPlayerPopup(), and showPopup().
|
private |
Definition at line 309 of file popupmenu.h.
Referenced by handleLink(), setMousePos(), setMousePos2(), showAttackMonsterPopup(), showAttackPopup(), showChangePos(), showChatPopup(), showCraftPopup(), showDropPopup(), showEmoteType(), showFriendsPopup(), showGuildPopup(), showItemPopup(), showLinkPopup(), showMapPopup(), showNavigationPopup(), showNpcDialogPopup(), showOutfitsWindowPopup(), showPartyPopup(), showPickupItemPopup(), showPickupPopup(), showPlayerPopup(), showPlayersPopup(), showPopup(), showSkillLevelPopup(), showSkillOffsetPopup(), showSkillPopup(), showSkillTypePopup(), showSpellPopup(), showTextFieldPopup(), showUndressPopup(), showWindowPopup(), and showWindowsPopup().
|
private |
Definition at line 310 of file popupmenu.h.
Referenced by handleLink(), setMousePos(), setMousePos2(), showAttackMonsterPopup(), showAttackPopup(), showChangePos(), showChatPopup(), showCraftPopup(), showDropPopup(), showEmoteType(), showFriendsPopup(), showGuildPopup(), showItemPopup(), showLinkPopup(), showMapPopup(), showNavigationPopup(), showNpcDialogPopup(), showOutfitsWindowPopup(), showPartyPopup(), showPickupItemPopup(), showPickupPopup(), showPlayerPopup(), showPlayersPopup(), showPopup(), showSkillLevelPopup(), showSkillOffsetPopup(), showSkillPopup(), showSkillTypePopup(), showSpellPopup(), showTextFieldPopup(), showUndressPopup(), showWindowPopup(), and showWindowsPopup().