|
Dayz Explorer
1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
|
Go to the documentation of this file.
6 if( ButtonWidget.Cast(w))
8 GetGame().GetMission().AddActiveInputExcludes({
"menu"});
16 if( ButtonWidget.Cast(w))
18 GetGame().GetMission().RemoveActiveInputExcludes({
"menu"},
true);
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 );
188 myTimer1.Run(1,
this,
"Tick", NULL,
true);
200 SetDebugDeveloper_item(item);
238 GetGame().GetInput().ResetGameFocus();
239 GetGame().GetUIManager().ShowUICursor(
false);
242 if (
GetGame().GetUIManager().IsDialogVisible())
244 GetGame().GetUIManager().CloseDialog();
255 GetGame().RPCSingleParam(player,
ERPCs.RPC_ITEM_DIAG_CLOSE,
null,
true);
295 Debug.LogError(
"PluginItemDiagnostic: dead debug record, removing record");
317 Param1<Object> p1 =
new Param1<Object>(item);
321 if (!
GetGame().IsMultiplayer())
339 if (!
GetGame().IsMultiplayer())
353 SetDebugDeveloper_item(entity);
395 for(
int i = 0; i < count; i++)
439 super.OnUpdate(delta_time);
462 pts[0] =
GetGame().GetPlayer().GetPosition();
480 if (vars_server && vars_client)
500 for(
int i = 0; i < agents_count; i++)
514 for(
int i = 0; i <
m_Agents.Count(); i++)
525 for(
int i = 0; i < vars_server.Count(); i++)
527 Param param_server = vars_server.Get(i);
530 Param param_client = vars_client.Get(i);
533 string name = p2_server.param1;
544 Debug.Log(
"----------------------",
"ItemDebug");
559 Param1<string> debug_output =
new Param1<string>(entity.GetDebugText());
560 properties.Insert(debug_output);
565 Param1<int> agents_count =
new Param1<int>(num_of_agents);
566 properties.InsertAt(agents_count,1);
571 int number_of_items = 0;
573 properties.Insert(quantity);
577 properties.Insert(liquid_type);
581 properties.Insert(wetness);
585 properties.Insert(temperature);
589 properties.Insert(energy);
601 properties.Insert(health);
605 item.GetColor(r,g,b,a);
607 properties.Insert(p2r);
610 properties.Insert(p2g);
613 properties.Insert(p2b);
616 properties.Insert(p2a);
621 Param1<int> item_count =
new Param1<int>(number_of_items);
622 properties.InsertAt(item_count,2);
632 int agents = item.GetAgents();
633 if(agents == 0)
return 0;
634 int num_of_agents = 0;
636 PluginTransmissionAgents.BuildAgentArray(agents, agents_aray);
637 int agents_count = agents_aray.Count();
639 for(
int i = 0; i < agents_count; i++)
642 string agent_name = PluginTransmissionAgents.GetNameByID(agents_aray.Get(i));
643 Param1<string> param1 =
new Param1<string>(agent_name);
644 properties.Insert(param1);
648 return num_of_agents;
proto native CGame GetGame()
ref map< string, float > m_VarsFinalClient
void ShowWidgets(bool show)
void ToggleDebugWindowEvent()
ref array< ref Param > m_Properties
Base Param Class with no parameters. Used as general purpose parameter overloaded with Param1 to Para...
void OnSelectAction(EntityAI ent, int actionId)
TextWidget m_DebugOutputServer
ref map< string, float > m_VarsNumbersFinalServer
TextWidget m_DebugOutputClient
TextListboxWidget m_DebugFloatsProperListWidget
ref map< PlayerBase, Object > m_ObserversMap
proto void GetMousePos(out int x, out int y)
ItemPreviewWidget m_ItemPreviewWidget
TextWidget m_DistanceWidget
void OnRPC(Object entity, ParamsReadContext ctx)
ref PluginItemDiagnosticEventHandler m_EventHandler
void DisplayAll(EntityAI item, array< ref Param > vars_server, array< ref Param > vars_client, string debug_text_server)
override void OnUpdate(float delta_time)
TextListboxWidget m_DebugClientVarsWidget
void GeneratePropertiesObject(EntityAI item)
PluginBase GetPlugin(typename plugin_type)
Serialization general interface. Serializer API works with:
ref array< string > m_Agents
override bool OnMouseLeave(Widget w, Widget enterW, int x, int y)
void SetDragging(bool enable)
void GetLocalProperties(EntityAI entity, array< ref Param > properties, bool client=false)
void FillServerFinalVars(int count, ParamsReadContext ctx, array< ref Param > params)
void SendRPC(Object item, PlayerBase player)
void OnScriptMenuOpened(bool opened)
ButtonWidget m_DebugButtonWidget3
void FillAgentArray(ParamsReadContext ctx, int agents_count)
class PluginItemDiagnosticEventHandler extends ScriptedWidgetEventHandler m_Entity
ButtonWidget m_CloseButton
ButtonWidget m_DebugButtonWidget2
Object GetWatchedItem(PlayerBase player)
enum ProcessDirectDamageFlags m_Owner
void StopWatchRequest(PlayerBase player)
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
TextWidget m_ClassNameWidget
bool OnMouseButtonDown(Widget w, int x, int y, int button)
protected void GetPlayer()
void RegisterDebugItem(Object item, PlayerBase player)
PluginConfigDebugProfile m_ConfigDebugProfile
void PluginItemDiagnostic()
bool OnMouseButtonUp(Widget w, int x, int y, int button)
TextListboxWidget m_DebugAgentListWidget
void UpdateNumericalVarsWidget(array< ref Param > vars_server, array< ref Param > vars_client)
int FillWithAgents(ItemBase item, array< ref Param > properties)
ref map< string, float > m_Floats
override bool OnMouseEnter(Widget w, int x, int y)
proto native vector Vector(float x, float y, float z)
Vector constructor from components.
ButtonWidget m_DebugButtonWidget1
ButtonWidget m_DebugButtonWidget4
bool OnClick(Widget w, int x, int y, int button)
class DiagMenu Shape
don't call destructor directly. Use Destroy() instead
void ~PluginItemDiagnostic()