| 124 | } |
| 125 | |
| 126 | void 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 | |
| 144 | void CObjectPropertiesManager::Display(int serial) |
| 145 | { |
no test coverage detected