11 private ref ContextMenu m_context_menu;
17 protected static int m_Width;
18 protected static int m_Height;
26 m_context_menu =
new ContextMenu();
33 m_context_menu.Init(layoutRoot);
44 float ratio = m_Width / m_Height;
47 else if( ratio > 1.5 )
64 static int GetHeight()
69 static float GetHeightMultiplied(
float value )
71 float height = m_Height;
72 return height / 1080 * value;
82 return m_context_menu;
90 override void Update(
float timeslice )
109 PPERequesterBank.GetRequester(PPERequesterBank.REQ_INVENTORYBLUR).Start();
115 SetFocus( layoutRoot );
117 MissionGameplay
mission = MissionGameplay.Cast(
GetGame().GetMission() );
120 mission.MoveHudForInventory(
true );
132 return m_Inventory.Controller( w, control, value );
144 m_context_menu.Hide();
146 PPERequesterBank.GetRequester(PPERequesterBank.REQ_INVENTORYBLUR).Stop();
149 MissionGameplay
mission = MissionGameplay.Cast(
GetGame().GetMission());
152 mission.MoveHudForInventory(
false );
172 super.OnPlayerDeath();
173 MissionGameplay
mission = MissionGameplay.Cast(
GetGame().GetMission());
void Inventory(LayoutHolder parent)
void SetItemMicromanagmentMode(bool item_micromanagment_mode)
void SetSelectedItemEx(EntityAI selected_item, Container selected_container, LayoutHolder selected_icon)
static ItemManager GetInstance()
proto native CGame GetGame()
proto void GetScreenSize(out int x, out int y)