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

Method OnLeftMouseDown

src/Gumps/GumpTargetSystem.cpp:147–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147void CGumpTargetSystem::OnLeftMouseDown()
148{
149 if (g_GeneratedMouseDown)
150 {
151 return;
152 }
153
154 if (g_PressedObject.LeftSerial == 0u)
155 {
156 //Проверим, может быть есть таргет, который нужно повесить на данного чара
157 if (g_Target.IsTargeting())
158 {
159 g_Target.SendTargetObject(g_NewTargetSystem.Serial);
160 g_MouseManager.CancelDoubleClick = true;
161 }
162 }
163}
164
165void CGumpTargetSystem::GUMP_BUTTON_EVENT_C
166{

Callers

nothing calls this directly

Calls 2

IsTargetingMethod · 0.80
SendTargetObjectMethod · 0.80

Tested by

no test coverage detected