Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_DebugIdentityTooltipDetail.c
Go to the documentation of this file.
3{
4 //------------------------------------------------------------------------------------------------
5 override bool CreateDetail(SCR_EditableEntityComponent entity, Widget parent, TextWidget label, bool setFrameslot = true)
6 {
7 if (label)
8 label.SetColor(Color.Pink);
9
10 return super.CreateDetail(entity, parent, label, setFrameslot);
11 }
12
13 //------------------------------------------------------------------------------------------------
14 override bool InitDetail(SCR_EditableEntityComponent entity, Widget widget)
15 {
16 if (!DiagMenu.GetValue(SCR_DebugMenuID.DEBUGUI_EDITOR_GUI_TOOLTIP_DEBUG))
17 return false;
18
19 SCR_ExtendedIdentityComponent extendedIdentityComponent = SCR_ExtendedIdentityComponent.Cast(entity.GetOwner().FindComponent(SCR_ExtendedIdentityComponent));
20 if (!extendedIdentityComponent)
21 return false;
22
23 TextWidget textWidget = TextWidget.Cast(widget);
24 if (!textWidget)
25 textWidget = TextWidget.Cast(widget.FindAnyWidget("Text"));
26
27 if (!textWidget)
28 return false;
29
30 textWidget.SetColor(Color.Pink);
31
32 int bioGroupIndex, bioIndex;
33 extendedIdentityComponent.GetBioIndexes(bioGroupIndex, bioIndex);
34 textWidget.SetTextFormat("Identity seed: %1 | BioGroup: %2 | Bio: %3", extendedIdentityComponent.GetRandomizeSeed(), bioGroupIndex, bioIndex);
35
36 return true;
37 }
38}
SCR_DebugMenuID
This enum contains all IDs for DiagMenu entries added in script.
Definition DebugMenuID.c:4
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
class SCR_KeyBindingFilter BaseContainerCustomTitleField("m_sBindString")
Definition Color.c:13
Diagnostic and developer menu system.
Definition DiagMenu.c:18
void GetBioIndexes(out int bioGroupIndex, out int bioIndex)