Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_DebugTooltipDetail.c
Go to the documentation of this file.
3 {
4  protected TextWidget m_Text;
5 
6  //------------------------------------------------------------------------------------------------
9  string GetGUID(Managed object)
10  {
11  string result = object.ToString();
12  int indexLeft = result.IndexOf("<") + 1;
13  int indexRight = result.IndexOf(">");
14  return result.Substring(indexLeft, indexRight - indexLeft);
15  }
16 
17  //------------------------------------------------------------------------------------------------
18  override void UpdateDetail(SCR_EditableEntityComponent entity)
19  {
20  string guid = GetGUID(entity);
21  string prefab = FilePath.StripPath(entity.GetPrefab());
22  m_Text.SetTextFormat("%1<br />%2<br />%3", guid, prefab, SCR_Enum.FlagsToString(EEditableEntityFlag, entity.GetEntityFlags()));
23  }
24 
25  //------------------------------------------------------------------------------------------------
26  override bool InitDetail(SCR_EditableEntityComponent entity, Widget widget)
27  {
28  m_Text = TextWidget.Cast(widget);
29  m_Text.SetColor(Color.FromInt(Color.PINK));
30  return m_Text && DiagMenu.GetValue(SCR_DebugMenuID.DEBUGUI_EDITOR_GUI_TOOLTIP_DEBUG);
31  }
32 }
EEditableEntityFlag
EEditableEntityFlag
Unique flags of the entity.
Definition: EEditableEntityFlag.c:5
SCR_Enum
Definition: SCR_Enum.c:1
BaseContainerCustomTitleField
class SCR_KeyBindingFilter BaseContainerCustomTitleField("m_sBindString")
Definition: SCR_KeyBindingMenuConfig.c:113
SCR_DebugTooltipDetail
Definition: SCR_DebugTooltipDetail.c:2
SCR_EntityTooltipDetail
Definition: SCR_EntityTooltipDetail.c:2
SCR_EditableEntityComponent
Definition: SCR_EditableEntityComponent.c:13
SCR_DebugMenuID
SCR_DebugMenuID
This enum contains all IDs for DiagMenu entries added in script.
Definition: DebugMenuID.c:3
BaseContainerProps
SCR_AIGoalReaction_Follow BaseContainerProps
Handles insects that are supposed to be spawned around selected prefabs defined in prefab names array...
Definition: SCR_AIGoalReaction.c:468