16 [
Attribute(
"{324E923535DCACF8}UI/Textures/DeployMenu/Briefing/conflict_HintBanner_1_UI.edds",
desc:
"background shown when briefing has no hints")]
32 override bool RplSave(ScriptBitWriter writer)
35 array<string> temporaryInfo = {};
38 temporaryInfo.Copy(info);
40 writer.WriteString(temporaryInfo[0]);
41 writer.WriteInt(entryID);
42 writer.WriteString(temporaryInfo[1]);
45 temporaryInfo.RemoveOrdered(0);
46 temporaryInfo.RemoveOrdered(0);
48 writer.WriteInt(temporaryInfo.Count());
49 foreach (
string briefingStringParam : temporaryInfo)
51 writer.WriteString(briefingStringParam);
68 reader.ReadInt(count);
69 for (
int i = 0; i < count; i++)
72 reader.ReadString(factionKey);
73 reader.ReadInt(entryID);
74 reader.ReadString(newText);
75 reader.ReadInt(paramCount);
76 for (
int j = 0; j < paramCount; j++)
78 reader.ReadString(paramTemp);
121 array<string> infoStrings = {};
122 infoStrings.Insert(factionKey);
123 infoStrings.Insert(newText);
124 infoStrings.InsertAll(
param1);
141 if (!m_JournalConfig)
144 if (!m_JournalConfig)
151 array<ref SCR_JournalEntry> journalEntries = {};
153 if (journalEntries.IsEmpty())
160 if (journalEntry.GetEntryID() != entryID)
163 targetJournalEntry = journalEntry;
167 if (!targetJournalEntry)
173 for (
int i = 0, count =
param1.Count() * 2; i < count; i += 2)
175 if (!
param1.IsIndexValid(i))
185 widgetToRefresh = targetJournalEntry.
GetWidget();
193 array<string> temporaryInfo = {};
196 temporaryInfo.Copy(info);
198 string newText = temporaryInfo[1];
201 temporaryInfo.RemoveOrdered(0);
202 temporaryInfo.RemoveOrdered(0);
204 RewriteEntry(factionKey, entryID, newText, temporaryInfo);
214 array<string> strings = {};
216 if (!strings || strings.IsEmpty())
219 array<string> stringsCopy = {};
220 stringsCopy.Copy(strings);
223 stringsCopy.RemoveOrdered(0);
224 stringsCopy.RemoveOrdered(0);
233 if (!m_JournalConfig)
236 return m_JournalConfig;
243 m_JournalConfig = null;
254 if (m_sJournalConfigPath.GetPath().IsEmpty())
261 if (!holder || !holder.IsValid())
264 BaseContainer container = holder.GetResource().ToBaseContainer();
269 if (!m_JournalConfig)
271 Print(
"Journal config couldn't be created!",
LogLevel.WARNING);
280 static SCR_RespawnBriefingComponent GetInstance()
283 return SCR_RespawnBriefingComponent.Cast(
GetGame().
GetGameMode().FindComponent(SCR_RespawnBriefingComponent));
299 return m_SimpleBriefingBackground;
306 return m_sJournalConfigPath;
ArmaReforgerScripted GetGame()
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
override bool RplLoad(ScriptBitReader reader)
enum EAIGroupCombatMode ComponentEditorProps(category:"GameScripted/AI", description:"Component for utility AI system for groups")
SCR_BaseGameMode GetGameMode()
void SCR_BaseGameModeComponent(IEntityComponentSource src, IEntity ent, IEntity parent)
ref SCR_HintUIInfo m_Info
override bool RplSave(ScriptBitWriter writer)
override SCR_UIInfo GetInfo()
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
bool ShowJournalOnStart()
ResourceName GetJournalConfigPath()
int GetWinConditions(out array< ref SCR_BriefingVictoryCondition > conditions)
ref array< ref SCR_UIInfo > m_aGameModeHints
ResourceName GetSimpleBriefingBackground()
int GetGameModeHints(out array< ref SCR_UIInfo > hints)
bool GetWasBriefingShown()
void RewriteEntry_SA(FactionKey factionKey, int entryID, string newText, array< string > param1)
void SetBriefingShown(bool shown=true)
bool m_bShowJournalOnStart
array< string > GetBriefingStringParamByID(int targetID)
ref array< ref SCR_BriefingVictoryCondition > m_aWinConditions
void OnLanguageChanged(SCR_GameplaySettingsSubMenu menu)
void RewriteEntry(FactionKey factionKey, int entryID, string newText, array< string > param1)
SCR_JournalSetupConfig GetJournalSetup()
void RewriteEntryMain(FactionKey factionKey, int entryID, string newText, array< string > param1)
ref map< int, ref array< string > > m_BriefingInfo
void RpcDo_RewriteEntry(FactionKey factionKey, int entryID, string newText, array< string > param1)
Object holding reference to resource. In destructor release the resource.
ETaskIconType GetConditionType()
ETaskIconType victoryCondition
array< ref SCR_JournalEntry > GetEntries()
void SetEntryText(string text)
void SetEntryTextParam1(string text)
Widget SetEntryLayoutTo(out notnull Widget parent)
proto void Print(void var, LogLevel level=LogLevel.NORMAL)
Prints content of variable to console/log.
LogLevel
Enum with severity of the logging message.
SCR_FieldOfViewSettings Attribute
void RplRpc(RplChannel channel, RplRcver rcver, RplCondition condition=RplCondition.None, string customConditionName="")
RplChannel
Communication channel. Reliable is guaranteed to be delivered. Unreliable not.