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 );
166 AddModifier( synced_value.GetName(), synced_value.GetID(), synced_value.GetActive(),synced_value.GetLocked() );
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" )
256 m_WgtDetailedInfo =
GetGame().GetWorkspace().CreateWidgets(
"gui/layouts/debug/day_z_hud_debug_modifier_detailed.layout");
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 );