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_EditorBudgetHintCondition.c
Go to the documentation of this file.
1
[
BaseContainerProps
(), SCR_BaseContainerHintCondition()]
2
class
SCR_EditorBudgetHintCondition
:
SCR_BaseEditorHintCondition
3
{
4
//------------------------------------------------------------------------------------------------
5
protected
void
OnBudgetMaxReached
(
EEditableEntityBudget
budgetType,
bool
maxReached)
6
{
7
Activate
();
8
}
9
10
//------------------------------------------------------------------------------------------------
11
override
protected
void
OnInitConditionEditor
(
SCR_EditorManagerEntity
editorManager)
12
{
13
SCR_BudgetEditorComponent
budgetManager =
SCR_BudgetEditorComponent
.Cast(
SCR_BudgetEditorComponent
.GetInstance(
SCR_BudgetEditorComponent
,
false
,
true
));
14
if
(budgetManager)
15
budgetManager.
Event_OnBudgetMaxReached
.Insert(
OnBudgetMaxReached
);
16
}
17
18
//------------------------------------------------------------------------------------------------
19
override
protected
void
OnExitConditionEditor
(
SCR_EditorManagerEntity
editorManager)
20
{
21
SCR_BudgetEditorComponent
budgetManager =
SCR_BudgetEditorComponent
.Cast(
SCR_BudgetEditorComponent
.GetInstance(
SCR_BudgetEditorComponent
,
false
,
true
));
22
if
(budgetManager)
23
budgetManager.
Event_OnBudgetMaxReached
.Remove(
OnBudgetMaxReached
);
24
}
25
}
EEditableEntityBudget
EEditableEntityBudget
Definition
EEditableEntityBudget.c:2
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
SCR_EditorManagerEntity
void SCR_EditorManagerEntity(IEntitySource src, IEntity parent)
Definition
SCR_EditorManagerEntity.c:2211
SCR_BaseEditorHintCondition
Definition
SCR_BaseEditorHintCondition.c:3
SCR_BaseHintCondition::Activate
void Activate()
Definition
SCR_BaseHintCondition.c:11
SCR_BudgetEditorComponent
Definition
SCR_BudgetEditorComponent.c:22
SCR_BudgetEditorComponent::Event_OnBudgetMaxReached
ref ScriptInvoker_EntityBudgetMaxReachedEvent Event_OnBudgetMaxReached
Definition
SCR_BudgetEditorComponent.c:38
SCR_EditorBudgetHintCondition
Definition
SCR_EditorBudgetHintCondition.c:3
SCR_EditorBudgetHintCondition::OnInitConditionEditor
void OnInitConditionEditor(SCR_EditorManagerEntity editorManager)
Definition
SCR_EditorBudgetHintCondition.c:11
SCR_EditorBudgetHintCondition::OnExitConditionEditor
void OnExitConditionEditor(SCR_EditorManagerEntity editorManager)
Definition
SCR_EditorBudgetHintCondition.c:19
SCR_EditorBudgetHintCondition::OnBudgetMaxReached
void OnBudgetMaxReached(EEditableEntityBudget budgetType, bool maxReached)
Definition
SCR_EditorBudgetHintCondition.c:5
scripts
Game
Components
Hints
HintConditions
SCR_EditorBudgetHintCondition.c
Generated by
1.17.0