3 protected Widget m_MainWidget;
7 protected string m_LayoutName;
10 protected bool m_ImmedUpdate;
11 protected bool m_TooltipOwner;
13 protected EntityAI m_am_entity1, m_am_entity2;
15 void UpdateInterval();
22 m_ImmedUpdate =
false;
31 void OnSelectActionEx(
EntityAI item,
int actionId)
48 if (m_am_entity1 ==
null)
51 TSelectableActionInfoArrayEx customActions =
new TSelectableActionInfoArrayEx();
53 itemBase.GetDebugActions(customActions);
57 m_player.GetDebugActions(customActions);
60 int actionsCount = customActions.Count();
61 for (
int i = 0; i < customActions.Count(); i++)
66 int actionId = actionInfo.param2;
67 int textColor = actionInfo.param4;
68 string actionText = actionInfo.param3;
71 cmenu.AddEx(actionText, textColor,
this,
"",
null);
77 int actionMenuPosX, actionMenuPosY;
81 cmenu.Show(actionMenuPosX, actionMenuPosY);
93 m_TooltipOwner =
false;
95 if ( m_LayoutName !=
"" )
97 m_MainWidget =
GetGame().GetWorkspace().CreateWidgets( m_LayoutName,
null,
false );
98 m_MainWidget.Show(
true,
false );
115 m_MainWidget.Update();
138 void SetParentWidget()
149 void SetActive(
bool active)
154 void SetLastActive();
155 void SetFirstActive();
206 InspectMenuNew inspect_menu = InspectMenuNew.Cast( menu.EnterScriptedMenu(
MENU_INSPECT) );
209 GetGame().GetMission().GetHud().ShowHudUI(
false );
210 GetGame().GetMission().GetHud().ShowQuickbarUI(
false );
211 inspect_menu.SetItem( item );
215 void UpdateSelectionIcons()
218 void PrepareOwnedTooltip(
EntityAI item,
int x = 0,
int y = 0)
221 m_TooltipOwner =
true;
224 void PrepareOwnedSlotsTooltip(
Widget w,
string name,
string desc,
int x = 0,
int y = 0)
228 m_TooltipOwner =
true;
231 void HideOwnedTooltip()
236 m_TooltipOwner =
false;
240 void HideOwnedSlotsTooltip()
245 m_TooltipOwner =
false;