Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
SCR_TaskTextEditorAttribute.c
Go to the documentation of this file.
1
[
BaseContainerProps
(),
BaseContainerCustomTitleField
(
"m_sDisplayName"
)]
2
class
SCR_TaskTextEditorAttribute
:
SCR_BaseEditorAttribute
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)]
8
protected
LocalizedString
m_sLocationNamePlaceholder
;
9
10
override
SCR_BaseEditorAttributeVar
ReadVariable
(Managed item, SCR_AttributesManagerEditorComponent manager)
11
{
12
SCR_EditableTaskComponent
task
=
SCR_EditableTaskComponent
.Cast(item);
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
{
20
SCR_EditableTaskComponent
task
=
SCR_EditableTaskComponent
.Cast(item);
21
task
.SetTextIndex(var.
GetInt
());
22
}
23
override
int
GetEntries
(notnull array<ref SCR_BaseEditorAttributeEntry> outEntries)
24
{
25
SCR_TextsTaskManagerComponent
textsComponent =
SCR_TextsTaskManagerComponent
.GetInstance();
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
};
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
SCR_BaseEditorAttributeEntryText
void SCR_BaseEditorAttributeEntryText(string text)
Definition
SCR_BaseEditorAttribute.c:494
SCR_EditableTaskComponent
void SCR_EditableTaskComponent(IEntityComponentSource src, IEntity ent, IEntity parent)
Definition
SCR_EditableTaskComponent.c:285
BaseContainerCustomTitleField
class SCR_KeyBindingFilter BaseContainerCustomTitleField("m_sBindString")
Definition
SCR_KeyBindingMenuConfig.c:116
GetName
string GetName()
Definition
SCR_NotificationSenderComponent.c:15
task
from task
Definition
SCR_TaskNotificationConfigs.c:12
SCR_TextsTaskManagerComponent
void SCR_TextsTaskManagerComponent(IEntityComponentSource src, IEntity ent, IEntity parent)
Definition
SCR_TextsTaskManagerComponent.c:95
LocalizedString
Definition
LocalizedString.c:22
SCR_BaseEditorAttribute
Base Attribute Script for other attributes to inherent from to get and set varriables in Editor Attri...
Definition
SCR_BaseEditorAttribute.c:4
SCR_BaseEditorAttributeVar
Definition
SCR_BaseEditorAttributeVar.c:2
SCR_BaseEditorAttributeVar::CreateInt
static SCR_BaseEditorAttributeVar CreateInt(int value)
Definition
SCR_BaseEditorAttributeVar.c:107
SCR_BaseEditorAttributeVar::GetInt
int GetInt()
Definition
SCR_BaseEditorAttributeVar.c:20
SCR_Enum
Definition
SCR_Enum.c:2
SCR_TaskTextEditorAttribute
Definition
SCR_TaskTextEditorAttribute.c:3
SCR_TaskTextEditorAttribute::ReadVariable
override SCR_BaseEditorAttributeVar ReadVariable(Managed item, SCR_AttributesManagerEditorComponent manager)
Definition
SCR_TaskTextEditorAttribute.c:10
SCR_TaskTextEditorAttribute::GetEntries
override int GetEntries(notnull array< ref SCR_BaseEditorAttributeEntry > outEntries)
Definition
SCR_TaskTextEditorAttribute.c:23
SCR_TaskTextEditorAttribute::m_TextType
ETaskTextType m_TextType
Definition
SCR_TaskTextEditorAttribute.c:5
SCR_TaskTextEditorAttribute::m_sLocationNamePlaceholder
LocalizedString m_sLocationNamePlaceholder
Definition
SCR_TaskTextEditorAttribute.c:8
SCR_TaskTextEditorAttribute::WriteVariable
override void WriteVariable(Managed item, SCR_BaseEditorAttributeVar var, SCR_AttributesManagerEditorComponent manager, int playerID)
Definition
SCR_TaskTextEditorAttribute.c:18
UIWidgets
Definition
attributes.c:40
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
Editor
Containers
Attributes
SCR_TaskTextEditorAttribute.c
Generated by
1.17.0