42 {
48
49 cmenu.Hide();
50 cmenu.Clear();
51
53 return;
54
55 TSelectableActionInfoArrayEx customActions = new TSelectableActionInfoArrayEx();
58
60 {
61 m_player.GetDebugActions(customActions);
62 }
63
64 int actionsCount = customActions.Count();
65 for (int i = 0; i < customActions.Count(); i++)
66 {
68 if (actionInfo)
69 {
70 int actionId = actionInfo.param2;
71 int textColor = actionInfo.param4;
72 string actionText = actionInfo.param3;
73
75 cmenu.AddEx(actionText, textColor, this, "", null);
76 else
77 cmenu.AddEx(actionText, textColor, this, "OnSelectActionEx", new Param3<EntityAI, int, int>(itemBase, actionId, textColor));
78 }
79 }
80
81 int actionMenuPosX, actionMenuPosY;
83 actionMenuPosX -= 5;
84 actionMenuPosY -= 5;
85 cmenu.Show(actionMenuPosX, actionMenuPosY);
86 }
Param4< int, int, string, int > TSelectableActionInfoWithColor
class GP5GasMask extends MaskBase ItemBase
override void GetDebugActions(out TSelectableActionInfoArrayEx outputList)
proto native CGame GetGame()
proto void GetMousePos(out int x, out int y)