4 [
Attribute(
SCR_Enum.GetDefault(ETaskTextType.NONE), UIWidgets.ComboBox, enums: ParamEnumArray.FromEnum(ETaskTextType))]
5 protected ETaskTextType m_TextType;
7 [
Attribute(
"#AR-Editor_Attribute_CustomTaskName_LocationPlaceholder",
desc:
"Param used in the SCR_DropdownWithParamAttributeUIComponent to indicate for the player what will be replaced with the location name", uiwidget: UIWidgets.LocaleEditBox)]
13 if (task && IsValidTaskType(task.GetTextType()))
18 override void WriteVariable(Managed item,
SCR_BaseEditorAttributeVar var, SCR_AttributesManagerEditorComponent manager,
int playerID)
24 task.SetTextIndex(var.GetInt());
26 override int GetEntries(notnull array<ref SCR_BaseEditorAttributeEntry> outEntries)
31 SCR_TextsTaskManagerComponent textsComponent = SCR_TextsTaskManagerComponent.GetInstance();
35 array<ref SCR_UIDescription> infos = {};
36 int count = textsComponent.GetTexts(m_TextType, infos);
38 for (
int i; i < count; i++)
41 return outEntries.Count();
44 protected bool IsValidTaskType(ETaskTextType taskType)
46 return taskType == m_TextType;