4 [
Attribute(
SCR_Enum.GetDefault(ETaskTextType.NONE), UIWidgets.ComboBox, enums: ParamEnumArray.FromEnum(ETaskTextType))]
5 protected ETaskTextType m_TextType;
7 [
Attribute(uiwidget: UIWidgets.LocaleEditBox)]
13 if (task && task.GetTextType() == m_TextType)
18 override void WriteVariable(Managed item,
SCR_BaseEditorAttributeVar var, SCR_AttributesManagerEditorComponent manager,
int playerID)
21 task.SetTextIndex(var.GetInt());
23 override int GetEntries(notnull array<ref SCR_BaseEditorAttributeEntry> outEntries)
25 SCR_TextsTaskManagerComponent textsComponent = SCR_TextsTaskManagerComponent.GetInstance();
29 array<ref SCR_UIDescription> infos = {};
30 int count = textsComponent.GetTexts(m_TextType, infos);
32 for (
int i; i < count; i++)
34 text =
string.Format(infos[i].
GetName(), m_sLocationNamePlaceholder);