57 return HudDebug.HUD_WIN_CHAR_MODIFIERS;
71 ref Param1<bool> params =
new Param1<bool>( state );
74 player.RPCSingleParam(
ERPCs.DEV_MODS_UPDATE, params,
true );
132 float title_size = 20;
136 float wgt_content_size_x;
137 float wgt_content_size_y;
141 float wgt_root_size_x;
142 float wgt_root_size_y;
143 m_WgtRoot.GetSize( wgt_root_size_x, wgt_root_size_y );
146 float new_size_y = title_size + wgt_content_size_y + spacing;
149 m_WgtRoot.SetSize( wgt_root_size_x, new_size_y );
182 ButtonWidget mod_name_text = ButtonWidget.Cast( widget.FindAnyWidget(
"TextModifierName" ) );
183 mod_name_text.SetText(
name );
186 mod_name_text.SetTextColor(
ARGB( 255, 0, 255, 0 ) );
190 mod_name_text.SetTextColor(
ARGB( 255, 255, 0, 0 ) );
196 Widget modifier_button = widget.FindAnyWidget(
"TextModifierName" );
199 Widget activate_button = widget.FindAnyWidget(
"ButtonModifierActivate" );
203 Widget deactivate_button = widget.FindAnyWidget(
"ButtonModifierDeactivate" );
207 Widget checkbox_widget = widget.FindAnyWidget(
"CheckBoxLock" );
210 CheckBoxWidget checkbox = CheckBoxWidget.Cast( checkbox_widget );
211 checkbox.SetChecked( locked );
215 WgtModifiersContent_panel_script.
Update();
238 if ( w.GetName() ==
"TextModifierName" )
270 if ( w.GetName() ==
"ButtonModifierActivate" )
283 else if ( w.GetName() ==
"ButtonModifierDeactivate" )
296 else if ( w.GetName() ==
"CheckBoxLock" )
299 CheckBoxWidget checkbox = CheckBoxWidget.Cast( w );
309 else if ( w.GetName() ==
"ResetModifiers" )
330 ref Param1<bool> params =
new Param1<bool>(
false );
333 player.RPCSingleParam(
ERPCs.DEV_RPC_MODS_RESET, params,
true );
348 ref Param1<int> params =
new Param1<int>(
id );
351 player.RPCSingleParam(
ERPCs.DEV_RPC_MODS_DETAILED, params,
true );
369 ref Param1<int> params =
new Param1<int>(
id );
372 player.RPCSingleParam(
ERPCs.DEV_RPC_MODS_ACTIVATE, params,
true );
390 ref Param1<int> params =
new Param1<int>(
id );
393 player.RPCSingleParam(
ERPCs.DEV_RPC_MODS_DEACTIVATE, params,
true );
414 player.RPCSingleParam(
ERPCs.DEV_RPC_MODS_LOCK, params,
true );
void HudDebugWinCharModifiers(Widget widget_root)
protected ref map< Widget, ref DebugModifierData > m_ModifierWidgetData
protected PluginDeveloperSync m_PluginDeveloperSync
protected ref array< ref Widget > m_ModifierWidgets
protected TextWidget m_WgtDetailedInfoText
class DebugModifierData m_WgtModifiersContent
void ~HudDebugWinCharModifiers()
void RequestDetailedInfo(int id)
protected int m_DetailedInfoIndex
protected Widget m_WgtDetailedInfo
void LockModifier(int id, bool state)
void DeactivateModifier(int modifier_id, bool triggerEvent=true)
void ActivateModifier(int modifier_id, bool triggerEvent=EActivationType.TRIGGER_EVENT_ON_ACTIVATION)
void AddModifier(ModifierBase modifier)
PluginBase GetPlugin(typename plugin_type)
proto native WorkspaceWidget GetWorkspace()
void DebugModifierData(string name, int id)
protected PluginDeveloperSync m_PluginDeveloperSync
void SetUpdate(bool state)
bool OnClick(Widget w, int x, int y, int button)
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
proto native CGame GetGame()
int ARGB(int a, int r, int g, int b)