7 class SCR_MapGadgetComponent : SCR_GadgetComponent
9 [
Attribute(
"0.3", UIWidgets.EditBox,
desc:
"seconds, delay before map gets activated giving time for the animation to be visible",
params:
"1 1000",
category:
"Map")]
10 protected float m_fActivationDelay;
30 delay = m_fActivationDelay * 1000;
65 MenuManager menuManager = g_Game.GetMenuManager();
71 MenuManager menuManager = g_Game.GetMenuManager();
106 override void ModeSwitch(EGadgetMode mode, IEntity charOwner)
108 super.ModeSwitch(mode, charOwner);
110 if (mode == EGadgetMode.ON_GROUND)
118 if (mode != EGadgetMode.IN_HAND)
122 if (!playerController)
139 super.ModeClear(mode);
143 if (mode == EGadgetMode.IN_HAND)
149 super.ModeClear(mode);
155 super.ToggleFocused(enable);
163 return EGadgetType.MAP;