MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / ShowState

Method ShowState

ogsr_engine/xrGame/ui/UIMotionIcon.cpp:68–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68void CUIMotionIcon::ShowState(EState state)
69{
70 if (m_curren_state == state)
71 return;
72 if (m_curren_state != stLast)
73 {
74 m_states[m_curren_state].Show(false);
75 m_states[m_curren_state].Enable(false);
76 }
77 m_states[state].Show(true);
78 m_states[state].Enable(true);
79
80 m_curren_state = state;
81}
82
83void CUIMotionIcon::SetPower(float Pos) { m_power_progress.SetProgressPos(Pos); }
84

Callers 1

UpdateMotionIconMethod · 0.80

Calls 2

ShowMethod · 0.45
EnableMethod · 0.45

Tested by

no test coverage detected