190 {
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");
197
198 countWidget.SetText(value);
199 btn.SetText(title);
200 if (temporaryResistance > 0.0)
201 tempResistanceWidget.SetText(
string.Format(
"(R-%1s)",
Math.
Round(temporaryResistance).
ToString()));
202 else
203 tempResistanceWidget.SetText("");
204
212
214 }
ref map< Widget, ref DebugAgentData > m_AgentWidgetData
ref array< ref Widget > m_AgentWidgets
class DebugAgentData m_WgtAgents
AutoHeightSpacer WgtModifiersContentPanelScript
proto native WorkspaceWidget GetWorkspace()
proto string ToString(bool simple=true)
proto native CGame GetGame()
static proto float Round(float f)
Returns mathematical round of value.