MCPcopy Create free account
hub / github.com/crossuo/crossuo / OnItemClicked

Method OnItemClicked

src/Managers/ObjectPropertiesManager.cpp:126–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126void CObjectPropertiesManager::OnItemClicked(int serial)
127{
128 if (!g_ConfigManager.GetItemPropertiesIcon() || !g_TooltipsEnabled ||
129 g_ConfigManager.GetItemPropertiesMode() != OPM_SINGLE_CLICK)
130 {
131 return;
132 }
133
134 auto it = m_Map.find(serial);
135 if (it == m_Map.end() || it->second.Empty())
136 {
137 return;
138 }
139
140 g_GumpManager.CloseGump(0, 0, GT_PROPERTY);
141 g_GumpManager.AddGump(new CGumpProperty(it->second.CreateTextData(true)));
142}
143
144void CObjectPropertiesManager::Display(int serial)
145{

Callers 1

ProcessDelayedClicksMethod · 0.80

Calls 8

GetItemPropertiesIconMethod · 0.80
GetItemPropertiesModeMethod · 0.80
findMethod · 0.80
CloseGumpMethod · 0.80
AddGumpMethod · 0.80
CreateTextDataMethod · 0.80
endMethod · 0.45
EmptyMethod · 0.45

Tested by

no test coverage detected