Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_InventoryAvailableCondition.c
Go to the documentation of this file.
3{
4 [Attribute("4")]
5 protected int m_iMaxShowCount;
6
7 [Attribute("1")]
8 protected bool m_bPersistent;
9
10 protected static int s_iShowCounter;
11
12 //------------------------------------------------------------------------------------------------
14 {
16 return false;
17
18 return GetReturnResult(data.IsInventoryOpen());
19 }
20
21 //------------------------------------------------------------------------------------------------
22 static void IncrementCounter()
23 {
25 }
26
27 //------------------------------------------------------------------------------------------------
29 {
30 if (!m_bPersistent)
31 {
33 return;
34 }
35
36 UserSettings userSettings = GetGame().GetGameUserSettings();
37 if (!userSettings)
38 return;
39
40 BaseContainer container = userSettings.GetModule("SCR_InventoryHintSettings");
41 if (container)
42 container.Get("m_iInventoryOpenCount", s_iShowCounter)
43 }
44
45 //------------------------------------------------------------------------------------------------
47 {
48 if (!m_bPersistent)
49 return;
50
51 UserSettings userSettings = GetGame().GetGameUserSettings();
52 if (!userSettings)
53 return;
54
55 BaseContainer container = userSettings.GetModule("SCR_InventoryHintSettings");
56 if (!container)
57 return;
58
59 container.Set("m_iInventoryOpenCount", s_iShowCounter);
60 GetGame().UserSettingsChanged();
61 }
62}
ArmaReforgerScripted GetGame()
Definition game.c:1398
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Get all prefabs that have the spawner data
A single available action condition representation.
override bool IsAvailable(notnull SCR_AvailableActionsConditionData data)
SCR_FieldOfViewSettings Attribute