![]() |
TrinityCore
|
#include <GossipDef.h>
Public Member Functions | |||||||||
| GossipMenu () | |||||||||
| ~GossipMenu () | |||||||||
| uint32 | AddMenuItem (int32 menuItemId, GossipOptionIcon icon, std::string const &message, uint32 sender, uint32 action, std::string const &boxMessage, uint32 boxMoney, bool coded=false) | ||||||||
| void | SetMenuId (uint32 menu_id) | ||||||||
| uint32 | GetMenuId () const | ||||||||
| void | SetSenderGUID (ObjectGuid guid) | ||||||||
| ObjectGuid | GetSenderGUID () const | ||||||||
| void | SetLocale (LocaleConstant locale) | ||||||||
| LocaleConstant | GetLocale () const | ||||||||
| uint32 | GetMenuItemCount () const | ||||||||
| bool | Empty () const | ||||||||
| GossipMenuItem const * | GetItem (uint32 id) const | ||||||||
| GossipMenuItemData const * | GetItemData (uint32 indexId) const | ||||||||
| GossipMenuItemContainer const & | GetMenuItems () const | ||||||||
AddMenuItem | |||||||||
Adds a localized gossip menu item from db by menu id and menu item id.
| |||||||||
| void | AddMenuItem (uint32 menuId, uint32 menuItemId, uint32 sender, uint32 action) | ||||||||
| void | AddGossipMenuItemData (uint32 menuItemId, uint32 gossipActionMenuId, uint32 gossipActionPoi) | ||||||||
| uint32 | GetMenuItemSender (uint32 menuItemId) const | ||||||||
| uint32 | GetMenuItemAction (uint32 menuItemId) const | ||||||||
| bool | IsMenuItemCoded (uint32 menuItemId) const | ||||||||
| void | ClearMenu () | ||||||||
Private Attributes | |
| GossipMenuItemContainer | _menuItems |
| GossipMenuItemDataContainer | _menuItemData |
| uint32 | _menuId |
| ObjectGuid | _senderGUID |
| LocaleConstant | _locale |
Definition at line 161 of file GossipDef.h.
| GossipMenu::GossipMenu | ( | ) |
| GossipMenu::~GossipMenu | ( | ) |
Find items for given menu id.
Store texts for localization.
OptionText
BoxText
Check need of localization.
Find localizations from database.
Find localizations from database.
Add menu item with existing method. Menu item id -1 is also used in ADD_GOSSIP_ITEM macro.
Definition at line 92 of file GossipDef.cpp.
Here is the call graph for this function:| void GossipMenu::ClearMenu | ( | ) |
|
inline |
Definition at line 184 of file GossipDef.h.
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 161 of file GossipDef.cpp.
|
inline |
|
inline |
Definition at line 152 of file GossipDef.cpp.
|
inline |
| bool GossipMenu::IsMenuItemCoded | ( | uint32 | menuItemId | ) | const |
Definition at line 170 of file GossipDef.cpp.
|
inline |
|
inline |
|
inline |
|
private |
Definition at line 223 of file GossipDef.h.
|
private |
Definition at line 221 of file GossipDef.h.
|
private |
Definition at line 220 of file GossipDef.h.
|
private |
Definition at line 219 of file GossipDef.h.
|
private |
Definition at line 222 of file GossipDef.h.