55 return HudDebug.HUD_WIN_CHAR_MODIFIERS;
69 ref Param1<bool> params =
new Param1<bool>( state );
72 player.RPCSingleParam(
ERPCs.DEV_MODS_UPDATE, params,
true );
137 float title_size = 20;
141 float wgt_content_size_x;
142 float wgt_content_size_y;
146 float wgt_root_size_x;
147 float wgt_root_size_y;
148 m_WgtRoot.GetSize( wgt_root_size_x, wgt_root_size_y );
151 float new_size_y = title_size + wgt_content_size_y + spacing;
154 m_WgtRoot.SetSize( wgt_root_size_x, new_size_y );
173 modifier.GetActive(),
174 modifier.GetLocked(),
195 ButtonWidget mod_name_text = ButtonWidget.Cast( widget.FindAnyWidget(
"TextModifierName" ) );
196 mod_name_text.SetText(
name );
199 mod_name_text.SetTextColor(
ARGB( 255, 0, 255, 0 ) );
203 mod_name_text.SetTextColor(
ARGB( 255, 255, 0, 0 ) );
209 Widget modifier_button = widget.FindAnyWidget(
"TextModifierName" );
212 Widget activate_button = widget.FindAnyWidget(
"ButtonModifierActivate" );
216 Widget deactivate_button = widget.FindAnyWidget(
"ButtonModifierDeactivate" );
220 Widget checkbox_widget = widget.FindAnyWidget(
"CheckBoxLock" );
223 CheckBoxWidget checkbox = CheckBoxWidget.Cast( checkbox_widget );
224 checkbox.SetChecked( locked );
228 WgtModifiersContent_panel_script.
Update();
244 if ( w.GetName() ==
"TextModifierName" )
262 m_WgtDetailedInfo =
GetGame().GetWorkspace().CreateWidgets(
"gui/layouts/debug/day_z_hud_debug_modifier_detailed.layout");
276 if ( w.GetName() ==
"ButtonModifierActivate" )
289 else if ( w.GetName() ==
"ButtonModifierDeactivate" )
302 else if ( w.GetName() ==
"CheckBoxLock" )
305 CheckBoxWidget checkbox = CheckBoxWidget.Cast( w );
315 else if ( w.GetName() ==
"ResetModifiers" )
336 ref Param1<bool> params =
new Param1<bool>(
false );
339 player.RPCSingleParam(
ERPCs.DEV_RPC_MODS_RESET, params,
true );
354 ref Param1<int> params =
new Param1<int>(
id );
357 player.RPCSingleParam(
ERPCs.DEV_RPC_MODS_DETAILED, params,
true );
375 ref Param1<int> params =
new Param1<int>(
id );
378 player.RPCSingleParam(
ERPCs.DEV_RPC_MODS_ACTIVATE, params,
true );
396 ref Param1<int> params =
new Param1<int>(
id );
399 player.RPCSingleParam(
ERPCs.DEV_RPC_MODS_DEACTIVATE, params,
true );
420 player.RPCSingleParam(
ERPCs.DEV_RPC_MODS_LOCK, params,
true );
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
PluginDeveloperSync m_PluginDeveloperSync
void SetUpdate(bool state)
override bool OnClick(Widget w, int x, int y, int button)
buttons clicks
int m_ID
ID of effect, given by SEffectManager when registered (automatically done when playing through it)
proto native CGame GetGame()
void HudDebugWinCharModifiers(Widget widget_root)
ref map< Widget, ref DebugModifierData > m_ModifierWidgetData
TextWidget m_WgtDetailedInfoText
class DebugModifierData m_WgtModifiersContent
void ~HudDebugWinCharModifiers()
PluginDeveloperSync m_PluginDeveloperSync
void RequestDetailedInfo(int id)
ref map< int, Widget > m_ModifierWidgets
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)
int ARGB(int a, int r, int g, int b)