Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_TaskTextEditorAttribute.c
Go to the documentation of this file.
3{
4 [Attribute(SCR_Enum.GetDefault(ETaskTextType.NONE), UIWidgets.ComboBox, enums: ParamEnumArray.FromEnum(ETaskTextType))]
5 protected ETaskTextType m_TextType;
6
7 [Attribute(uiwidget: UIWidgets.LocaleEditBox)]
9
10 override SCR_BaseEditorAttributeVar ReadVariable(Managed item, SCR_AttributesManagerEditorComponent manager)
11 {
13 if (task && task.GetTextType() == m_TextType)
14 return SCR_BaseEditorAttributeVar.CreateInt(task.GetTextIndex());
15 else
16 return null;
17 }
18 override void WriteVariable(Managed item, SCR_BaseEditorAttributeVar var, SCR_AttributesManagerEditorComponent manager, int playerID)
19 {
21 task.SetTextIndex(var.GetInt());
22 }
23 override int GetEntries(notnull array<ref SCR_BaseEditorAttributeEntry> outEntries)
24 {
26 if (!textsComponent)
27 return 0;
28
29 array<ref SCR_UIDescription> infos = {};
30 int count = textsComponent.GetTexts(m_TextType, infos);
31 string text;
32 for (int i; i < count; i++)
33 {
34 text = string.Format(infos[i].GetName(), m_sLocationNamePlaceholder);
35 outEntries.Insert( new SCR_BaseEditorAttributeEntryText(text) );
36 }
37 return count;
38 }
39};
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
void SCR_BaseEditorAttributeEntryText(string text)
void SCR_EditableTaskComponent(IEntityComponentSource src, IEntity ent, IEntity parent)
class SCR_KeyBindingFilter BaseContainerCustomTitleField("m_sBindString")
void SCR_TextsTaskManagerComponent(IEntityComponentSource src, IEntity ent, IEntity parent)
Base Attribute Script for other attributes to inherent from to get and set varriables in Editor Attri...
static SCR_BaseEditorAttributeVar CreateInt(int value)
override SCR_BaseEditorAttributeVar ReadVariable(Managed item, SCR_AttributesManagerEditorComponent manager)
override int GetEntries(notnull array< ref SCR_BaseEditorAttributeEntry > outEntries)
override void WriteVariable(Managed item, SCR_BaseEditorAttributeVar var, SCR_AttributesManagerEditorComponent manager, int playerID)
SCR_FieldOfViewSettings Attribute