Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_IdentityDividerTooltipDetail.c
Go to the documentation of this file.
3{
4 [Attribute(desc: "Only show if IdentityComponent has Bio")]
5 protected bool m_bNeedsBio;
6
7 //------------------------------------------------------------------------------------------------
8 override bool InitDetail(SCR_EditableEntityComponent entity, Widget widget)
9 {
11 if (!identityManager)
12 return false;
13
14 SCR_ExtendedIdentityComponent identityComponent = SCR_ExtendedIdentityComponent.Cast(entity.GetOwner().FindComponent(SCR_ExtendedIdentityComponent));
15 if (!identityComponent)
16 return false;
17
18 //~ Check if allowed to show bio
19 BaseContainer editorSettings = GetGame().GetGameUserSettings().GetModule("SCR_EditorSettings");
20 bool showBioTooltip = true;
21
22 if (editorSettings)
23 editorSettings.Get("m_bShowIdentityBioTooltip", showBioTooltip);
24
25 if (!showBioTooltip)
26 return false;
27
28 return !m_bNeedsBio || (m_bNeedsBio && identityComponent.GetIdentityBio() != null && !identityComponent.GetIdentityBio().GetBioText().IsEmpty());
29 }
30}
ArmaReforgerScripted GetGame()
Definition game.c:1398
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
class SCR_HitZoneGroupNameHolder BaseContainerCustomStringTitleField("USE INHERITED VERSION ONLY!")
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
override bool InitDetail(SCR_EditableEntityComponent entity, Widget widget)
static SCR_IdentityManagerComponent GetInstance()
SCR_FieldOfViewSettings Attribute