6 if( ButtonWidget.Cast(w))
16 if( ButtonWidget.Cast(w))
26 return m_Owner.OnClick( w,
x,
y, button );
31 return m_Owner.OnMouseButtonDown( w,
x,
y, button );
35 return m_Owner.OnMouseButtonUp( w,
x,
y, button );
191 entity.OnDebugButtonPressClient(index);
203 myTimer1.Run(1,
this,
"Tick", NULL,
true);
215 SetDebugDeveloper_item(item);
250 if (
GetGame().GetUIManager().IsDialogVisible())
303 Debug.
LogError(
"PluginItemDiagnostic: dead debug record, removing record");
325 Param1<Object> p1 =
new Param1<Object>(item);
329 if (!
GetGame().IsMultiplayer())
347 if (!
GetGame().IsMultiplayer())
361 SetDebugDeveloper_item(entity);
403 for(
int i = 0; i < count; i++)
447 super.OnUpdate(delta_time);
488 if (vars_server && vars_client)
493 string button1, button2, button3, button4;
494 item.GetDebugButtonNames(button1, button2, button3, button4);
507 for(
int i = 0; i < agents_count; i++)
521 for(
int i = 0; i <
m_Agents.Count(); i++)
532 for(
int i = 0; i < vars_server.Count(); i++)
534 Param param_server = vars_server.Get(i);
537 Param param_client = vars_client.Get(i);
540 string name = p2_server.param1;
551 Debug.
Log(
"----------------------",
"ItemDebug");
566 Param1<string> debug_output =
new Param1<string>(entity.GetDebugText());
567 properties.Insert(debug_output);
572 Param1<int> agents_count =
new Param1<int>(num_of_agents);
573 properties.InsertAt(agents_count,1);
578 int number_of_items = 0;
580 properties.Insert(quantity);
584 properties.Insert(liquid_type);
588 properties.Insert(wetness);
592 properties.Insert(temperature);
596 properties.Insert(energy);
608 properties.Insert(health);
612 item.GetColor(r,g,b,a);
614 properties.Insert(p2r);
617 properties.Insert(p2g);
620 properties.Insert(p2b);
623 properties.Insert(p2a);
628 Param1<int> item_count =
new Param1<int>(number_of_items);
629 properties.InsertAt(item_count,2);
639 int agents = item.GetAgents();
640 if(agents == 0)
return 0;
641 int num_of_agents = 0;
643 PluginTransmissionAgents.BuildAgentArray(agents, agents_aray);
644 int agents_count = agents_aray.Count();
646 for(
int i = 0; i < agents_count; i++)
649 string agent_name = PluginTransmissionAgents.GetNameByID(agents_aray.Get(i));
650 Param1<string> param1 =
new Param1<string>(agent_name);
651 properties.Insert(param1);
655 return num_of_agents;
override bool OnClick(Widget w, int x, int y, int button)
buttons clicks
enum ProcessDirectDamageFlags m_Owner
void ShowWidgets(bool show)
void ToggleDebugWindowEvent()
void RegisterDebugItem(ItemBase item, PlayerBase player)
void UpdateNumericalVarsWidget(array< ref Param > vars_server, array< ref Param > vars_client)
ref map< string, float > m_Floats
ref map< string, float > m_VarsNumbersFinalServer
void GeneratePropertiesObject(EntityAI item)
void GetLocalProperties(EntityAI entity, array< ref Param > properties, bool client=false)
TextWidget m_ClassNameWidget
ref map< string, float > m_VarsFinalClient
ButtonWidget m_CloseButton
ButtonWidget m_DebugButtonWidget3
PluginConfigDebugProfile m_ConfigDebugProfile
TextListboxWidget m_DebugFloatsProperListWidget
TextListboxWidget m_DebugClientVarsWidget
void SetDragging(bool enable)
void FillServerFinalVars(int count, ParamsReadContext ctx, array< ref Param > params)
class PluginItemDiagnosticEventHandler extends ScriptedWidgetEventHandler m_Entity
TextWidget m_DebugOutputClient
ButtonWidget m_DebugButtonWidget4
ButtonWidget m_DebugButtonWidget1
ItemPreviewWidget m_ItemPreviewWidget
void PluginItemDiagnostic()
int FillWithAgents(ItemBase item, array< ref Param > properties)
TextListboxWidget m_DebugAgentListWidget
void OnScriptMenuOpened(bool opened)
ref PluginItemDiagnosticEventHandler m_EventHandler
void FillAgentArray(ParamsReadContext ctx, int agents_count)
ref map< PlayerBase, Object > m_ObserversMap
Object GetWatchedItem(PlayerBase player)
void StopWatchRequest(PlayerBase player)
TextWidget m_DebugOutputServer
ButtonWidget m_DebugButtonWidget2
void DisplayAll(EntityAI item, array< ref Param > vars_server, array< ref Param > vars_client, string debug_text_server)
void ~PluginItemDiagnostic()
ref array< ref Param > m_Properties
bool OnMouseButtonDown(Widget w, int x, int y, int button)
PluginBase GetPlugin(typename plugin_type)
ref TextWidget m_DistanceWidget[MAX_SIMULTANIOUS_PLAYERS]
void OnRPC(float stamina, float stamina_cap, bool cooldown)
deprecated use, StaminaHandler uses SyncJunctures now
proto native Mission GetMission()
proto native void RPC(Object target, int rpcType, notnull array< ref Param > params, bool guaranteed, PlayerIdentity recipient=null)
Initiate remote procedure call. When called on client, RPC is evaluated on server; When called on ser...
proto native Input GetInput()
proto native DayZPlayer GetPlayer()
override ScriptCallQueue GetCallQueue(int call_category)
void RPCSingleParam(Object target, int rpc_type, Param param, bool guaranteed, PlayerIdentity recipient=null)
see CGame.RPC
proto native UIManager GetUIManager()
proto native WorkspaceWidget GetWorkspace()
static ref Param1< string > PARAM1_STRING
static ref Param1< int > PARAM1_INT
static void LogArrayString(array< string > arr=NULL, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
static void LogError(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Prints debug message as error message.
static void Log(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Prints debug message with normal prio.
void AddActiveInputExcludes(array< string > excludes)
void RemoveActiveInputExcludes(array< string > excludes, bool bForceSupress=false)
deprecated
Base Param Class with no parameters. Used as general purpose parameter overloaded with Param1 to Para...
proto void CallLater(func fn, int delay=0, bool repeat=false, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
adds call into the queue with given parameters and arguments (arguments are held in memory until the ...
Serialization general interface. Serializer API works with:
proto bool Read(void value_in)
proto native void CloseDialog()
void ShowUICursor(bool visible)
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
static proto native float Distance(vector v1, vector v2)
Returns the distance between tips of two 3D vectors.
proto native CGame GetGame()
proto native vector Vector(float x, float y, float z)
Vector constructor from components.
proto void GetMousePos(out int x, out int y)