70 PluginDeveloperSync developer_sync = PluginDeveloperSync.Cast(
GetPlugin( PluginDeveloperSync ) );
75 ref Param1<bool> params =
new Param1<bool>( state );
78 player.RPCSingleParam(
ERPCs.DEV_AGENTS_UPDATE, params,
true );
87 developer_sync.EnableUpdate( state,
ERPCs.DEV_AGENTS_UPDATE, player );
125 PluginDeveloperSync developer_sync = PluginDeveloperSync.Cast(
GetPlugin( PluginDeveloperSync ) );
131 if ( developer_sync.m_PlayerAgentsSynced.Count() > 0 )
133 for (
int i = 0; i < developer_sync.m_PlayerAgentsSynced.Count(); i++ )
137 syncedValue.GetName(),
138 syncedValue.GetValue(),
140 syncedValue.GetTemporaryResistanceTime(),
149 if (w.GetName() ==
"ButtonAgentActivate")
155 else if (w.GetName() ==
"ButtonAgentDeactivate")
161 else if (w.GetName() ==
"ResetAgents")
177 ref Param1<int> p1 =
new Param1<int>( agent_id );
179 man.RPCSingleParam(
ERPCs.DEV_AGENT_GROW, p1,
true, man.GetIdentity());
184 ref Param1<bool> p1 =
new Param1<bool>(
false );
186 man.RPCSingleParam(
ERPCs.DEV_RPC_AGENT_RESET, p1,
true, man.GetIdentity());
189 void AddAgent(
string title,
string value,
int id,
float temporaryResistance)
192 ButtonWidget btn = ButtonWidget.Cast( widget.FindAnyWidget(
"TextAgentName" ) );
194 TextWidget tempResistanceWidget =
TextWidget.Cast(widget.FindAnyWidget(
"TextWidgetAgentTempResistanceTime"));
195 Widget activateButton = widget.FindAnyWidget(
"ButtonAgentActivate");
196 Widget deactivateButton = widget.FindAnyWidget(
"ButtonAgentDeactivate");
198 countWidget.SetText(value);
200 if (temporaryResistance > 0.0)
201 tempResistanceWidget.SetText(
string.Format(
"(R-%1s)",
Math.
Round(temporaryResistance).
ToString()));
203 tempResistanceWidget.SetText(
"");
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
ref map< Widget, ref DebugAgentData > m_AgentWidgetData
void HudDebugWinCharAgents(Widget widget_root)
void ~HudDebugWinCharAgents()
ref array< ref Widget > m_AgentWidgets
void DebugGrowAgentsRequest(int agent_id, bool should_grow)
void AddAgent(string title, string value, int id, float temporaryResistance)
class DebugAgentData m_WgtAgents
AutoHeightSpacer WgtModifiersContentPanelScript
void DebugRemoveAgentsRequest()
PluginBase GetPlugin(typename plugin_type)
void SyncedValueAgent(string name, string value, int id, float temporaryResistance)
proto native DayZPlayer GetPlayer()
proto native WorkspaceWidget GetWorkspace()
float GetTemporaryResistance()
void DebugAgentData(string name, int id)
bool OnClick(Widget w, int x, int y, int button)
void FitWindowByContent(TextListboxWidget wgt)
void SetUpdate(bool state)
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
proto string ToString(bool simple=true)
proto native CGame GetGame()
static proto float Round(float f)
Returns mathematical round of value.