4class HudDebugEventHandler
extends ScriptedWidgetEventHandler
8 void HudDebugEventHandler(
HudDebug hud_debug )
10 m_HudDebug = hud_debug;
18 override bool OnClick( Widget w,
int x,
int y,
int button )
20 super.OnClick( w,
x,
y, button );
21 return GetHudDebug().OnClick( w,
x,
y, button );
24 override bool OnFocus(Widget w,
int x,
int y)
55 override bool OnSelect(Widget w,
int x,
int y)
60 override bool OnItemSelected(Widget w,
int x,
int y,
int row,
int column,
int oldRow,
int oldColumn)
66 override bool OnModalResult(Widget w,
int x,
int y,
int code,
int result)
72 override bool OnChange(Widget w,
int x,
int y,
bool finished)
75 super.OnChange( w,
x,
y, finished );
76 return GetHudDebug().OnChange( w,
x,
y, finished );
83 static const int HUD_WIN_CHAR_STATS = 1;
84 static const int HUD_WIN_CHAR_MODIFIERS = 2;
85 static const int HUD_WIN_CHAR_AGENTS = 3;
86 static const int HUD_WIN_CHAR_DEBUG = 4;
87 static const int HUD_WIN_CHAR_LEVELS = 5;
88 static const int HUD_WIN_CHAR_STOMACH = 6;
89 static const int HUD_WIN_VERSION = 7;
90 static const int HUD_WIN_TEMPERATURE = 8;
91 static const int HUD_WIN_HEALTH = 9;
92 static const int HUD_WIN_HORTICULTURE = 10;
124 override void Init( Widget hud_panel_widget )
139 HudDebugWinCharLevels win_char_levels =
new HudDebugWinCharLevels(
m_WgtRoot.FindAnyWidget(
"wdw_CharacterLevels" ) );
151 HudDebugWinCharDebug win_char_debug =
new HudDebugWinCharDebug(
m_WgtRoot.FindAnyWidget(
"wdw_CharacterDebug" ) );
155 HudDebugWinCharStomach win_char_stomach =
new HudDebugWinCharStomach(
m_WgtRoot.FindAnyWidget(
"wdw_CharacterStomach" ) );
156 m_Panels.Insert( win_char_stomach );
159 HudDebugWinVersion win_version =
new HudDebugWinVersion(
m_WgtRoot.FindAnyWidget(
"wdw_Version" ) );
163 HudDebugWinTemperature win_temp =
new HudDebugWinTemperature(
m_WgtRoot.FindAnyWidget(
"wdw_Temp" ) );
190 override void Update(
float timeslice )
192 for (
int i = 0; i <
m_Panels.Count(); ++i )
194 if (
m_Panels.Get( i ).IsVisible() )
221 for (
int i = 0; i <
m_Panels.Count(); ++i )
225 if ( panel.
GetType() == panel_type )
237 for (
int i = 0; i <
m_Panels.Count(); ++i )
241 if ( panel.
GetType() == panel_type )
255 if ( module_cfg_profile )
257 PluginDeveloper modul_dev = PluginDeveloper.Cast(
GetPlugin( PluginDeveloper ) );
259 if ( modul_dev.IsEnabledFreeCamera() )
261 m_Crosshair.Show( module_cfg_profile.GetFreeCameraCrosshairVisible() );
278 if ( module_cfg_profile )
280 PluginDeveloper modul_dev = PluginDeveloper.Cast(
GetPlugin( PluginDeveloper ) );
282 if ( modul_dev.IsEnabledFreeCamera() )
296 if ( module_cfg_profile )
bool OnClick(Widget w, int x, int y, int button)
Called from HudDebug.c.
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
override bool IsInitialized()
override bool OnClick(Widget w, int x, int y, int button)
buttons clicks
void RefreshCrosshairVisibility()
void SetPanelVisible(int panel_type, bool visible)
void PanelHide(int panel_type)
void RefreshByLocalProfile()
ref HudDebugWinCharAgents m_WinCharAgents
ref array< ref HudDebugWinBase > m_Panels
ref HudDebugEventHandler m_HudDebugHandler
ref HudDebugWinCharStats m_WinCharStats
ref HudDebugWinHealth m_WinHealth
ref HudDebugWinHorticulture m_WinHorticulture
void PanelShow(int panel_type)
ref HudDebugWinCharModifiers m_WinCharModifiers
class HudDebugEventHandler extends ScriptedWidgetEventHandler HUD_WIN_UNDEFINED
void HideCrosshairVisibility()
void HudDebugWinCharModifiers(Widget widget_root)
void HudDebugWinHealth(Widget widget_root)
override bool OnChange(Widget w, int x, int y, bool finished)
bool OnMouseButtonDown(Widget w, int x, int y, int button)
PluginBase GetPlugin(typename plugin_type)
override bool OnFocusLost(Widget w, int x, int y)
override bool OnFocus(Widget w, int x, int y)