Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
pluginitemdiagnostic.c
Go to the documentation of this file.
1 class PluginItemDiagnosticEventHandler extends ScriptedWidgetEventHandler
2 {
4  override bool OnMouseEnter(Widget w, int x, int y)
5  {
6  if( ButtonWidget.Cast(w))
7  {
8  GetGame().GetMission().AddActiveInputExcludes({"menu"});
9  }
10  return true;
11 
12  }
13 
14  override bool OnMouseLeave(Widget w, Widget enterW, int x, int y)
15  {
16  if( ButtonWidget.Cast(w))
17  {
18  GetGame().GetMission().RemoveActiveInputExcludes({"menu"},true);
19  }
20 
21  return true;
22  }
23 
24  override bool OnClick( Widget w, int x, int y, int button )
25  {
26  return m_Owner.OnClick( w, x, y, button );
27  }
28 
29  override bool OnMouseButtonDown(Widget w, int x, int y, int button)
30  {
31  return m_Owner.OnMouseButtonDown( w, x, y, button );
32  }
33  override bool OnMouseButtonUp(Widget w, int x, int y, int button)
34  {
35  return m_Owner.OnMouseButtonUp( w, x, y, button );
36  }
37 }
38 
39 
40 
41 class PluginItemDiagnostic extends PluginDeveloper
42 {
44 
45 
53  bool m_IsActive = false;
55  string m_NoteClient;
56  ref PluginItemDiagnosticEventHandler m_EventHandler;
59 
62 
63  TextListboxWidget m_DebugAgentListWidget;
66  TextListboxWidget m_DebugFloatsProperListWidget;
67  TextListboxWidget m_DebugClientVarsWidget;
71 
72  ButtonWidget m_DebugButtonWidget1;
73  ButtonWidget m_DebugButtonWidget2;
74  ButtonWidget m_DebugButtonWidget3;
75  ButtonWidget m_DebugButtonWidget4;
76 
77  ButtonWidget m_CloseButton;
78 
81 
82 
84  {
85 
86  #ifndef NO_GUI
88  ShowWidgets(false);
89  #endif
90  }
91 
93  {
95  if (m_ItemLine)
96  {
97  m_ItemLine.Destroy();
98  m_ItemLine = null;
99  }
100  }
101 
102  override void OnInit()
103  {
105  if ( m_ConfigDebugProfile )
106  {
107  vector pos = m_ConfigDebugProfile.GetItemDebugPos();
108  if (m_DebugRootWidget && pos != vector.Zero)
109  {
110  float wx = pos[0];
111  float wy = pos[1];
112  m_DebugRootWidget.SetPos(wx, wy);
113  }
114  }
115  }
116 
117  bool OnMouseButtonDown(Widget w, int x, int y, int button)
118  {
119  if (button == 0)
120  SetDragging(true);
121  if (button == 1)
122  {
123  if (m_Entity)
124  {
125  float xx, yy;
126  m_DebugRootWidget.GetPos(xx,yy);
127  ContextMenu.DisplayContextMenu(x - xx, y - yy, EntityAI.Cast(m_Entity), m_DebugRootWidget, this);
128  }
129  }
130  return true;
131  }
132 
133  bool OnMouseButtonUp(Widget w, int x, int y, int button)
134  {
135  if (button == 0)
136  SetDragging(false);
137  return true;
138  }
139 
140  void SetDragging(bool enable)
141  {
142  if(enable && !m_IsDragging)
143  OnDraggingStart();
144  else if (!enable && m_IsDragging)
145  OnDraggingEnd();
146  m_IsDragging = enable;
147  }
148 
150  {
151  int mx, my;
152  float wx, wy;
153  GetMousePos(mx,my);
154  m_DebugRootWidget.GetScreenPos(wx,wy);
155  m_DraggingOffset[0] = wx - mx;
156  m_DraggingOffset[1] = wy - my;
157  }
158 
160  {
161  if ( m_ConfigDebugProfile )
162  {
163  float wx, wy;
164  m_DebugRootWidget.GetScreenPos(wx,wy);
165  m_ConfigDebugProfile.SetItemDebugPos(Vector(wx,wy,0));
166  }
167  }
168 
169 
170 
171  bool OnClick( Widget w, int x, int y, int button )
172  {
173  SetDragging(false);
174 
175  if (w == m_CloseButton)
176  {
178  return true;
179  }
180  return true;
181  }
182 
184  {
185  if(!myTimer1)
186  {
187  myTimer1 = new Timer();
188  myTimer1.Run(1, this, "Tick", NULL, true);
189  }
190 
191  if(m_ObserversMap.Contains(player))
192  {
193  m_ObserversMap.Set(player,item);
194  }
195  else
196  {
197  m_ObserversMap.Insert(player,item);
198  }
199  #ifdef DEVELOPER
200  SetDebugDeveloper_item(item);
201  #endif
202  }
203 
205  {
206  return m_ObserversMap.Get(player);
207  }
208 
209 
210  bool IsActive()
211  {
212  return m_IsActive;
213  }
214 
215  void OnScriptMenuOpened(bool opened/*1 - opened , 0 - closed*/)
216  {
217  m_ScriptMenuOpened = opened;
218  }
219 
220 
221  void ShowWidgets(bool show)
222  {
223 
224  m_IsActive = show;
225 
226  if(m_DebugRootWidget)
227  m_DebugRootWidget.Show(show);
228  }
229 
230  void OnSelectAction(EntityAI ent, int actionId)
231  {
232  PlayerBase player = PlayerBase.Cast( GetGame().GetPlayer() );
233  player.GetActionManager().OnInstantAction(ActionDebug,new Param2<EntityAI,int>(ent,actionId));
234  }
235 
237  {
238  GetGame().GetInput().ResetGameFocus();
239  GetGame().GetUIManager().ShowUICursor(false);
240  if (GetGame().GetUIManager())
241  {
242  if (GetGame().GetUIManager().IsDialogVisible())
243  {
244  GetGame().GetUIManager().CloseDialog();
245 
246  }
247  }
248  }
249 
251  {
252  if (m_IsActive)
253  {
254  PlayerBase player = PlayerBase.Cast(GetGame().GetPlayer());
255  GetGame().RPCSingleParam(player, ERPCs.RPC_ITEM_DIAG_CLOSE,null, true);
256  ShowWidgets(false);
257  ClearWidgets();
258 
259  GetGame().GetCallQueue( CALL_CATEGORY_GUI ).CallLater( ReleaseFocus, 100);
260  //m_IsActive = false;
261  SetDragging(false);
262  }
263  else
264  {
265  ShowWidgets(true);
266  //m_IsActive = true;
267  }
268 
269  }
270 
272  {
273  m_DebugAgentListWidget.ClearItems();
274  m_DebugOutputServer.SetText("");
275  m_DebugOutputClient.SetText("");
276  m_DebugFloatsProperListWidget.ClearItems();
277  m_ItemPreviewWidget.SetItem(NULL);
278  m_ClassNameWidget.SetText("");
279  }
280 
281  void Tick()
282  {
283  for(int i = 0; i < m_ObserversMap.Count();i++)
284  {
285  Object item = m_ObserversMap.GetElement(i);
286  PlayerBase player = m_ObserversMap.GetKey(i);
287 
288  if (item && player)
289  {
291  SendRPC(item, player);
292  }
293  else
294  {
295  Debug.LogError("PluginItemDiagnostic: dead debug record, removing record");
296  m_ObserversMap.RemoveElement(i);
297  }
298  }
299 
300  }
301 
303  {
304  m_Properties.Clear();
305  }
306 
307 
309  {
310  ClearProperties();
312 
313  }
314 
315  void SendRPC(Object item, PlayerBase player)
316  {
317  Param1<Object> p1 = new Param1<Object>(item);
318  m_Properties.InsertAt(p1,0);
319  GetGame().RPC(player,ERPCs.RPC_ITEM_DIAG,m_Properties,true,player.GetIdentity());
320 
321  if (!GetGame().IsMultiplayer())
322  {
323  m_Entity = item;
324  }
325 
326  }
327 
328  void StopWatchRequest(PlayerBase player)//called from player after an RPC call
329  {
330  if( m_ObserversMap.Contains(player) )
331  {
332  m_ObserversMap.Remove(player);
333  }
334  }
335 
336  void OnRPC(Object entity, ParamsReadContext ctx)
337  {
338 
339  if (!GetGame().IsMultiplayer())
340  {
341  entity = m_Entity;
342  }
343  else
344  {
345  m_Entity = entity;
346  }
347 
348  ItemBase item = ItemBase.Cast(entity);
349 
350 
351 
352  #ifdef DEVELOPER
353  SetDebugDeveloper_item(entity);
354  #endif
355  if( !IsActive() )
356  {
357  ShowWidgets(true);
358  }
359 
360  ctx.Read(CachedObjectsParams.PARAM1_STRING);
361  string debug_output_server = CachedObjectsParams.PARAM1_STRING.param1;
362  array<ref Param> vars_client;
363  array<ref Param> vars_server;
364  if (item)
365  {
366  ctx.Read(CachedObjectsParams.PARAM1_INT);//hardcoded to index 1
367  int agents_count = CachedObjectsParams.PARAM1_INT.param1;
368 
369  ctx.Read(CachedObjectsParams.PARAM1_INT);//hardcoded to index 2
370  int individual_items_count = CachedObjectsParams.PARAM1_INT.param1;
371 
372  FillAgentArray(ctx, agents_count);
373 
374  vars_server = new array<ref Param>;
375  FillServerFinalVars(individual_items_count, ctx, vars_server);
376 
377  vars_client = new array<ref Param>;
378  GetLocalProperties(item, vars_client, true);
379  }
380  if (EntityAI.Cast(entity))
381  {
382  DisplayAll(EntityAI.Cast(entity), vars_server, vars_client, debug_output_server );
383  }
384  if (GetDayZGame().IsInventoryOpen() || GetGame().GetUIManager().FindMenu(MENU_SCRIPTCONSOLE))
385  m_DebugRootWidget.SetSort(-1);
386  else
387  m_DebugRootWidget.SetSort(10);
388  m_DebugRootWidget.Show(true);
389 
390 
391  }
392 
394  {
395  for(int i = 0; i < count; i++)
396  {
398 
399  ctx.Read(p2);
400  /*
401  string name = CachedObjectsParams.PARAM2_STRING_FLOAT.param1;
402  float value = CachedObjectsParams.PARAM2_STRING_FLOAT.param2;
403  PrintString(name+","+value.ToString());
404  */
405  params.Insert(p2);
406  }
407  //PrintString("----------------------------------------------------");
408  }
409 
411  {
412  m_EventHandler = new PluginItemDiagnosticEventHandler;
413  m_EventHandler.m_Owner = this;
414 
415  if(!m_DebugRootWidget)
416  m_DebugRootWidget = GetGame().GetWorkspace().CreateWidgets("gui/layouts/debug/debug_item.layout");
417 
418  m_DebugRootWidget.SetHandler(m_EventHandler);
419 
420  m_FrameWidget = m_DebugRootWidget.FindAnyWidget("FrameWidget0");
421  m_DebugAgentListWidget = TextListboxWidget.Cast(m_DebugRootWidget.FindAnyWidget("w_Agents"));
422  m_DebugOutputServer = TextWidget.Cast(m_DebugRootWidget.FindAnyWidget("DebugOutputServer"));
423  m_DebugOutputClient = TextWidget.Cast(m_DebugRootWidget.FindAnyWidget("DebugOutputClient"));
424  m_DebugFloatsProperListWidget = TextListboxWidget.Cast(m_DebugRootWidget.FindAnyWidget("w_FloatsProper"));
425  m_ItemPreviewWidget = ItemPreviewWidget.Cast(m_DebugRootWidget.FindAnyWidget("w_ItemPreview"));
426  m_ClassNameWidget = TextWidget.Cast(m_DebugRootWidget.FindAnyWidget("w_ClassName"));
427  m_DistanceWidget = TextWidget.Cast(m_DebugRootWidget.FindAnyWidget("w_Distance"));
428 
429  m_DebugButtonWidget1 = ButtonWidget.Cast(m_DebugRootWidget.FindAnyWidget("DebugButton1"));
430  m_DebugButtonWidget2 = ButtonWidget.Cast(m_DebugRootWidget.FindAnyWidget("DebugButton2"));
431  m_DebugButtonWidget3 = ButtonWidget.Cast(m_DebugRootWidget.FindAnyWidget("DebugButton3"));
432  m_DebugButtonWidget4 = ButtonWidget.Cast(m_DebugRootWidget.FindAnyWidget("DebugButton4"));
433 
434  m_CloseButton = ButtonWidget.Cast(m_DebugRootWidget.FindAnyWidget("CloseButton"));
435  }
436 
437  override void OnUpdate(float delta_time)
438  {
439  super.OnUpdate(delta_time);
440 
441  if (!m_Entity || !m_IsActive)
442  {
443 
444  if (m_ItemLine)
445  {
446  m_ItemLine.Destroy();
447  m_ItemLine = null;
448  }
449  return;
450  }
451 
453 
454 
455  if (m_IsDragging)
456  {
457  int x,y;
458  GetMousePos(x,y);
460  }
461  vector pts[2];
462  pts[0] = GetGame().GetPlayer().GetPosition();
463  pts[1] = m_Entity.GetPosition();
464  if (m_ItemLine)
465  {
466  m_ItemLine.Destroy();
467  m_ItemLine = null;
468 
469  }
470  m_ItemLine = Shape.CreateLines(COLOR_BLUE, ShapeFlags.TRANSP|ShapeFlags.NOOUTLINE|ShapeFlags.NOZBUFFER, pts, 2);
471  m_DistanceWidget.SetText(vector.Distance(pts[0], pts[1]).ToString()+"m.");
472  }
473 
474  void DisplayAll(EntityAI item, array<ref Param> vars_server, array<ref Param> vars_client, string debug_text_server)
475  {
476  m_ClassNameWidget.SetText( item.GetType() );
477  m_ItemPreviewWidget.SetItem(item);
479  //UpdateFloatWidget();
480  if (vars_server && vars_client)
481  UpdateNumericalVarsWidget(vars_server, vars_client);
482  m_DebugOutputServer.SetText(debug_text_server);
483  m_DebugOutputClient.SetText(item.GetDebugText());
484 
485  /*
486  string button1, button2, button3, button4;
487  item.GetDebugButtonNames(button1, button2, button3, button4);
488  m_DebugButtonWidget1.SetText(button1);
489  m_DebugButtonWidget2.SetText(button2);
490  m_DebugButtonWidget3.SetText(button3);
491  m_DebugButtonWidget4.SetText(button4);
492  */
493 
494 
495  }
496 
497  void FillAgentArray(ParamsReadContext ctx, int agents_count)
498  {
499  m_Agents.Clear();
500  for(int i = 0; i < agents_count; i++)
501  {
502  if(ctx.Read(CachedObjectsParams.PARAM1_STRING))
503  {
504  string agent = CachedObjectsParams.PARAM1_STRING.param1;
505  m_Agents.Insert(agent);
506  }
507  }
508  }
509 
510 
512  {
513  m_DebugAgentListWidget.ClearItems();
514  for(int i = 0; i < m_Agents.Count(); i++)
515  {
516  string agent = m_Agents.Get(i);
517  m_DebugAgentListWidget.AddItem(agent,NULL,0);
518  }
519  }
520 
521 
523  {
524  m_DebugFloatsProperListWidget.ClearItems();
525  for(int i = 0; i < vars_server.Count(); i++)
526  {
527  Param param_server = vars_server.Get(i);
528  Param2<string,float> p2_server = Param2<string,float>.Cast(param_server);
529 
530  Param param_client = vars_client.Get(i);
531  Param2<string,float> p2_client = Param2<string,float>.Cast(param_client);
532 
533  string name = p2_server.param1;
534  m_DebugFloatsProperListWidget.AddItem(name,NULL,0);
535  m_DebugFloatsProperListWidget.SetItem(i,p2_server.param2.ToString(),NULL,1);
536  m_DebugFloatsProperListWidget.SetItem(i,p2_client.param2.ToString(),NULL,2);
537  }
538  }
539 
540 
541  void PrintOut()
542  {
543  Debug.LogArrayString(m_Agents,"ItemDebug");
544  Debug.Log("----------------------","ItemDebug");
545  }
546 
547  //-------------------------
548  // QUERY FOR DEBUG PROPERTIES
549  //-------------------------
550  void GetLocalProperties(EntityAI entity, array<ref Param> properties, bool client = false)
551  {
552  if(!entity)
553  return;
554  ItemBase item = ItemBase.Cast(entity);
555 
556  if(!client)
557  {
558  // -------- DEBUG OUTPUT ------
559  Param1<string> debug_output = new Param1<string>(entity.GetDebugText());
560  properties.Insert(debug_output);
561  if(!item)
562  return;
563  // -------- AGENTS ------------
564  int num_of_agents = FillWithAgents(item, properties);
565  Param1<int> agents_count = new Param1<int>(num_of_agents);
566  properties.InsertAt(agents_count,1);// hard coded index 1 !!
567  }
568  if(!item)
569  return;
570  // ------ INDIVIDUAL VARS------
571  int number_of_items = 0;
572  Param2<string, float> quantity = new Param2<string, float>("quantity", item.GetQuantity() );
573  properties.Insert(quantity);
574  number_of_items++;
575  //-----------------------------
576  Param2<string, float> liquid_type = new Param2<string, float>("liquid_type", item.GetLiquidType() );
577  properties.Insert(liquid_type);
578  number_of_items++;
579  //-----------------------------
580  Param2<string, float> wetness = new Param2<string, float>("wetness", item.GetWet() );
581  properties.Insert(wetness);
582  number_of_items++;
583  //-----------------------------
584  Param2<string, float> temperature = new Param2<string, float>("temperature", item.GetTemperature() );
585  properties.Insert(temperature);
586  number_of_items++;
587  //-----------------------------
588  Param2<string, float> energy = new Param2<string, float>("energy", item.GetEnergy() );
589  properties.Insert(energy);
590  number_of_items++;
591  //-----------------------------
592  Param2<string, float> health;
593  if(!client)
594  {
595  health = new Param2<string, float>("health", item.GetHealth("", "") );
596  }
597  else
598  {
599  health = new Param2<string, float>("NO SYNC",0 );
600  }
601  properties.Insert(health);
602  number_of_items++;
603  //-----------------------------
604  int r,g,b,a;
605  item.GetColor(r,g,b,a);
607  properties.Insert(p2r);
608  number_of_items++;
610  properties.Insert(p2g);
611  number_of_items++;
613  properties.Insert(p2b);
614  number_of_items++;
616  properties.Insert(p2a);
617  number_of_items++;
618  //-----------------------------
619  if(!client)
620  {
621  Param1<int> item_count = new Param1<int>(number_of_items);
622  properties.InsertAt(item_count,2);
623  }
624  }
625 
627  {
628  if (!item)
629  {
630  return 0;
631  }
632  int agents = item.GetAgents();
633  if(agents == 0) return 0;
634  int num_of_agents = 0;
635  ref array<int> agents_aray = new array<int>;
636  PluginTransmissionAgents.BuildAgentArray(agents, agents_aray);
637  int agents_count = agents_aray.Count();
638 
639  for(int i = 0; i < agents_count; i++)
640  {
641  //PluginTransmissionAgents mta = PluginTransmissionAgents.Cast(GetPlugin(PluginTransmissionAgents));
642  string agent_name = PluginTransmissionAgents.GetNameByID(agents_aray.Get(i));
643  Param1<string> param1 = new Param1<string>(agent_name);
644  properties.Insert(param1);
645  num_of_agents++;
646  }
647 
648  return num_of_agents;
649  }
650 }
651 
652 
ItemBase
Definition: inventoryitem.c:730
Param2
Definition: ppeconstants.c:66
GetGame
proto native CGame GetGame()
m_VarsFinalClient
ref map< string, float > m_VarsFinalClient
Definition: pluginitemdiagnostic.c:51
ShowWidgets
void ShowWidgets(bool show)
Definition: pluginitemdiagnostic.c:221
m_ItemLine
Shape m_ItemLine
Definition: pluginitemdiagnostic.c:79
ToggleDebugWindowEvent
void ToggleDebugWindowEvent()
Definition: pluginitemdiagnostic.c:250
UpdateAgentWidget
void UpdateAgentWidget()
Definition: pluginitemdiagnostic.c:511
m_Properties
ref array< ref Param > m_Properties
Definition: pluginitemdiagnostic.c:52
OnDraggingEnd
void OnDraggingEnd()
Definition: pluginitemdiagnostic.c:159
Param
Base Param Class with no parameters. Used as general purpose parameter overloaded with Param1 to Para...
Definition: param.c:11
GetDayZGame
DayZGame GetDayZGame()
Definition: dayzgame.c:3729
m_DraggingOffset
vector m_DraggingOffset
Definition: pluginitemdiagnostic.c:80
OnSelectAction
void OnSelectAction(EntityAI ent, int actionId)
Definition: pluginitemdiagnostic.c:230
m_DebugOutputServer
TextWidget m_DebugOutputServer
Definition: pluginitemdiagnostic.c:64
m_VarsNumbersFinalServer
ref map< string, float > m_VarsNumbersFinalServer
Definition: pluginitemdiagnostic.c:50
PluginConfigDebugProfile
Definition: pluginconfigdebugprofilefixed.c:1
m_DebugOutputClient
TextWidget m_DebugOutputClient
Definition: pluginitemdiagnostic.c:65
m_DebugFloatsProperListWidget
TextListboxWidget m_DebugFloatsProperListWidget
Definition: pluginitemdiagnostic.c:66
m_ObserversMap
ref map< PlayerBase, Object > m_ObserversMap
Definition: pluginitemdiagnostic.c:47
ClearProperties
void ClearProperties()
Definition: pluginitemdiagnostic.c:302
GetMousePos
proto void GetMousePos(out int x, out int y)
m_ItemPreviewWidget
ItemPreviewWidget m_ItemPreviewWidget
Definition: pluginitemdiagnostic.c:70
Tick
void Tick()
Definition: pluginitemdiagnostic.c:281
y
Icon y
m_NoteClient
string m_NoteClient
Definition: pluginitemdiagnostic.c:55
PrintOut
void PrintOut()
Definition: pluginitemdiagnostic.c:541
MENU_SCRIPTCONSOLE
const int MENU_SCRIPTCONSOLE
Definition: constants.c:175
CachedObjectsParams
Definition: utilityclasses.c:9
m_DistanceWidget
TextWidget m_DistanceWidget
Definition: pluginitemdiagnostic.c:69
OnRPC
void OnRPC(Object entity, ParamsReadContext ctx)
Definition: pluginitemdiagnostic.c:336
m_EventHandler
ref PluginItemDiagnosticEventHandler m_EventHandler
Definition: pluginitemdiagnostic.c:56
DisplayAll
void DisplayAll(EntityAI item, array< ref Param > vars_server, array< ref Param > vars_client, string debug_text_server)
Definition: pluginitemdiagnostic.c:474
ActionDebug
Definition: actiondebug.c:14
ReleaseFocus
void ReleaseFocus()
Definition: pluginitemdiagnostic.c:236
OnUpdate
override void OnUpdate(float delta_time)
Definition: pluginitemdiagnostic.c:437
OnInit
override void OnInit()
Definition: pluginitemdiagnostic.c:102
CALL_CATEGORY_GUI
const int CALL_CATEGORY_GUI
Definition: tools.c:9
m_DebugClientVarsWidget
TextListboxWidget m_DebugClientVarsWidget
Definition: pluginitemdiagnostic.c:67
OnDraggingStart
void OnDraggingStart()
Definition: pluginitemdiagnostic.c:149
IsActive
bool IsActive()
Definition: pluginitemdiagnostic.c:210
GeneratePropertiesObject
void GeneratePropertiesObject(EntityAI item)
Definition: pluginitemdiagnostic.c:308
GetPlugin
PluginBase GetPlugin(typename plugin_type)
Definition: pluginmanager.c:316
Serializer
Serialization general interface. Serializer API works with:
Definition: serializer.c:55
m_Agents
ref array< string > m_Agents
Definition: pluginitemdiagnostic.c:48
OnMouseLeave
override bool OnMouseLeave(Widget w, Widget enterW, int x, int y)
Definition: uihintpanel.c:276
SetDragging
void SetDragging(bool enable)
Definition: pluginitemdiagnostic.c:140
PlayerBase
Definition: playerbaseclient.c:1
map
map
Definition: controlsxboxnew.c:3
vector
Definition: enconvert.c:105
GetLocalProperties
void GetLocalProperties(EntityAI entity, array< ref Param > properties, bool client=false)
Definition: pluginitemdiagnostic.c:550
TextWidget
Definition: enwidgets.c:219
FillServerFinalVars
void FillServerFinalVars(int count, ParamsReadContext ctx, array< ref Param > params)
Definition: pluginitemdiagnostic.c:393
ShapeFlags
ShapeFlags
Definition: endebug.c:125
SendRPC
void SendRPC(Object item, PlayerBase player)
Definition: pluginitemdiagnostic.c:315
InitializeWidgets
void InitializeWidgets()
Definition: pluginitemdiagnostic.c:410
OnScriptMenuOpened
void OnScriptMenuOpened(bool opened)
Definition: pluginitemdiagnostic.c:215
m_DebugButtonWidget3
ButtonWidget m_DebugButtonWidget3
Definition: pluginitemdiagnostic.c:74
Object
Definition: objecttyped.c:1
m_FrameWidget
Widget m_FrameWidget
Definition: pluginitemdiagnostic.c:61
myTimer1
ref Timer myTimer1
Definition: pluginitemdiagnostic.c:46
FillAgentArray
void FillAgentArray(ParamsReadContext ctx, int agents_count)
Definition: pluginitemdiagnostic.c:497
m_Entity
class PluginItemDiagnosticEventHandler extends ScriptedWidgetEventHandler m_Entity
m_IsActive
bool m_IsActive
Definition: pluginitemdiagnostic.c:53
m_CloseButton
ButtonWidget m_CloseButton
Definition: pluginitemdiagnostic.c:77
m_DebugButtonWidget2
ButtonWidget m_DebugButtonWidget2
Definition: pluginitemdiagnostic.c:73
GetWatchedItem
Object GetWatchedItem(PlayerBase player)
Definition: pluginitemdiagnostic.c:204
m_ScriptMenuOpened
bool m_ScriptMenuOpened
Definition: pluginitemdiagnostic.c:54
m_Owner
enum ProcessDirectDamageFlags m_Owner
StopWatchRequest
void StopWatchRequest(PlayerBase player)
Definition: pluginitemdiagnostic.c:328
array< string >
ClearWidgets
void ClearWidgets()
Definition: pluginitemdiagnostic.c:271
name
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
x
Icon x
m_ClassNameWidget
TextWidget m_ClassNameWidget
Definition: pluginitemdiagnostic.c:68
OnMouseButtonDown
bool OnMouseButtonDown(Widget w, int x, int y, int button)
Definition: pluginitemdiagnostic.c:117
GetPlayer
protected void GetPlayer()
Definition: crosshairselector.c:127
Debug
Definition: debug.c:13
ItemPreviewWidget
Definition: gameplay.c:275
RegisterDebugItem
void RegisterDebugItem(Object item, PlayerBase player)
Definition: pluginitemdiagnostic.c:183
m_ConfigDebugProfile
PluginConfigDebugProfile m_ConfigDebugProfile
Definition: pluginitemdiagnostic.c:58
PluginItemDiagnostic
void PluginItemDiagnostic()
Definition: pluginitemdiagnostic.c:83
OnMouseButtonUp
bool OnMouseButtonUp(Widget w, int x, int y, int button)
Definition: pluginitemdiagnostic.c:133
ERPCs
ERPCs
Definition: erpcs.c:1
Timer
Definition: dayzplayerimplement.c:62
m_DebugAgentListWidget
TextListboxWidget m_DebugAgentListWidget
Definition: pluginitemdiagnostic.c:63
Widget
Definition: enwidgets.c:189
UpdateNumericalVarsWidget
void UpdateNumericalVarsWidget(array< ref Param > vars_server, array< ref Param > vars_client)
Definition: pluginitemdiagnostic.c:522
m_DebugRootWidget
Widget m_DebugRootWidget
Definition: pluginitemdiagnostic.c:60
m_IsDragging
bool m_IsDragging
Definition: pluginitemdiagnostic.c:57
FillWithAgents
int FillWithAgents(ItemBase item, array< ref Param > properties)
Definition: pluginitemdiagnostic.c:626
m_Floats
ref map< string, float > m_Floats
Definition: pluginitemdiagnostic.c:49
OnMouseEnter
override bool OnMouseEnter(Widget w, int x, int y)
Definition: uihintpanel.c:267
COLOR_BLUE
const int COLOR_BLUE
Definition: constants.c:66
Vector
proto native vector Vector(float x, float y, float z)
Vector constructor from components.
EntityAI
Definition: building.c:5
ScriptedWidgetEventHandler
map: item x vector(index, width, height)
Definition: enwidgets.c:650
m_DebugButtonWidget1
ButtonWidget m_DebugButtonWidget1
Definition: pluginitemdiagnostic.c:72
m_DebugButtonWidget4
ButtonWidget m_DebugButtonWidget4
Definition: pluginitemdiagnostic.c:75
OnClick
bool OnClick(Widget w, int x, int y, int button)
Definition: pluginitemdiagnostic.c:171
Shape
class DiagMenu Shape
don't call destructor directly. Use Destroy() instead
~PluginItemDiagnostic
void ~PluginItemDiagnostic()
Definition: pluginitemdiagnostic.c:92