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_ResupplyVehicleWeaponSupportStationAction.c
Go to the documentation of this file.
1
class
SCR_ResupplyVehicleWeaponSupportStationAction
:
SCR_BaseItemHolderSupportStationAction
2
{
3
[
Attribute
(
"1"
,
desc
:
"If the action is hidden if the entity does not have a parent"
)]
4
protected
bool
m_bHideIfNoParent
;
5
6
protected
const
LocalizedString
X_OUTOF_Y_FORMATTING
=
"#AR-SupportStation_ActionFormat_ItemAmount"
;
7
8
protected
const
LocalizedString
INVALID_FULL
=
"#AR-SupportStation_ActionInvalid_VehicleWeaponFullyReloaded"
;
9
10
//------------------------------------------------------------------------------------------------
11
override
bool
CanBeShownScript
(
IEntity
user)
12
{
13
//~ Not valid or has no parent
14
if
(
m_bHideIfNoParent
&& (!
GetOwner
() || !
GetOwner
().
GetParent
()))
15
return
false
;
16
17
return
super.CanBeShownScript(user);
18
}
19
20
//------------------------------------------------------------------------------------------------
21
protected
override
LocalizedString
GetInvalidPerformReasonString
(
ESupportStationReasonInvalid
reasonInvalid)
22
{
23
if
(reasonInvalid ==
ESupportStationReasonInvalid
.RESUPPLY_INVENTORY_FULL)
24
return
INVALID_FULL
;
25
26
return
super.GetInvalidPerformReasonString(reasonInvalid);
27
}
28
29
//------------------------------------------------------------------------------------------------
30
override
bool
CanBePerformedScript
(
IEntity
user)
31
{
32
return
super.CanBePerformedScript(user);
33
}
34
35
//------------------------------------------------------------------------------------------------
36
protected
override
ESupportStationType
GetSupportStationType
()
37
{
38
return
ESupportStationType
.VEHICLE_WEAPON;
39
}
40
41
//------------------------------------------------------------------------------------------------
42
protected
override
void
DelayedInit
(
IEntity
owner)
43
{
44
if
(!owner)
45
return
;
46
47
super.DelayedInit(owner);
48
49
SCR_ResupplyItemSupportStationData
itemData =
SCR_ResupplyItemSupportStationData
.Cast(
m_ResupplyData
);
50
if
(!itemData)
51
return
;
52
53
m_sItemPrefab
= itemData.
GetItemPrefab
();
54
SetItemName
();
55
}
56
57
//------------------------------------------------------------------------------------------------
58
protected
override
string
GetActionStringParam
()
59
{
60
return
string
.Empty;
61
}
62
63
//------------------------------------------------------------------------------------------------
64
override
bool
GetActionNameScript
(out
string
outName)
65
{
66
UIInfo
uiInfo =
GetUIInfo
();
67
if
(!uiInfo)
68
return
super.GetActionNameScript(outName);
69
70
outName =
WidgetManager
.Translate(uiInfo.GetName(),
m_sItemName
);
71
72
return
super.GetActionNameScript(outName);
73
}
74
}
ESupportStationReasonInvalid
ESupportStationReasonInvalid
Definition
ESupportStationReasonInvalid.c:4
ESupportStationType
ESupportStationType
Definition
ESupportStationType.c:3
GetUIInfo
SCR_UIInfo GetUIInfo()
Definition
SCR_EditableEntityCampaignBuildingModeLabelSetting.c:27
GetParent
Faction GetParent()
Definition
SCR_Faction.c:539
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition
SCR_RespawnBriefingComponent.c:17
IEntity
Definition
IEntity.c:13
LocalizedString
Definition
LocalizedString.c:22
SCR_BaseItemHolderSupportStationAction
Definition
SCR_BaseItemHolderSupportStationAction.c:3
SCR_BaseItemHolderSupportStationAction::m_sItemPrefab
ResourceName m_sItemPrefab
Definition
SCR_BaseItemHolderSupportStationAction.c:10
SCR_BaseItemHolderSupportStationAction::SetItemName
void SetItemName()
Definition
SCR_BaseItemHolderSupportStationAction.c:36
SCR_BaseItemHolderSupportStationAction::m_ResupplyData
ref SCR_ResupplySupportStationData m_ResupplyData
Definition
SCR_BaseItemHolderSupportStationAction.c:5
SCR_BaseItemHolderSupportStationAction::m_sItemName
string m_sItemName
Definition
SCR_BaseItemHolderSupportStationAction.c:12
SCR_ResupplyItemSupportStationData
Definition
SCR_BaseItemHolderSupportStationAction.c:130
SCR_ResupplyItemSupportStationData::GetItemPrefab
ResourceName GetItemPrefab()
Definition
SCR_BaseItemHolderSupportStationAction.c:143
SCR_ResupplyVehicleWeaponSupportStationAction
Definition
SCR_ResupplyVehicleWeaponSupportStationAction.c:2
SCR_ResupplyVehicleWeaponSupportStationAction::GetActionStringParam
override string GetActionStringParam()
Definition
SCR_ResupplyVehicleWeaponSupportStationAction.c:58
SCR_ResupplyVehicleWeaponSupportStationAction::GetSupportStationType
override ESupportStationType GetSupportStationType()
Definition
SCR_ResupplyVehicleWeaponSupportStationAction.c:36
SCR_ResupplyVehicleWeaponSupportStationAction::INVALID_FULL
const LocalizedString INVALID_FULL
Definition
SCR_ResupplyVehicleWeaponSupportStationAction.c:8
SCR_ResupplyVehicleWeaponSupportStationAction::GetActionNameScript
override bool GetActionNameScript(out string outName)
Definition
SCR_ResupplyVehicleWeaponSupportStationAction.c:64
SCR_ResupplyVehicleWeaponSupportStationAction::CanBePerformedScript
override bool CanBePerformedScript(IEntity user)
Definition
SCR_ResupplyVehicleWeaponSupportStationAction.c:30
SCR_ResupplyVehicleWeaponSupportStationAction::GetInvalidPerformReasonString
override LocalizedString GetInvalidPerformReasonString(ESupportStationReasonInvalid reasonInvalid)
Definition
SCR_ResupplyVehicleWeaponSupportStationAction.c:21
SCR_ResupplyVehicleWeaponSupportStationAction::X_OUTOF_Y_FORMATTING
const LocalizedString X_OUTOF_Y_FORMATTING
Definition
SCR_ResupplyVehicleWeaponSupportStationAction.c:6
SCR_ResupplyVehicleWeaponSupportStationAction::DelayedInit
override void DelayedInit(IEntity owner)
Definition
SCR_ResupplyVehicleWeaponSupportStationAction.c:42
SCR_ResupplyVehicleWeaponSupportStationAction::CanBeShownScript
override bool CanBeShownScript(IEntity user)
Definition
SCR_ResupplyVehicleWeaponSupportStationAction.c:11
SCR_ResupplyVehicleWeaponSupportStationAction::m_bHideIfNoParent
bool m_bHideIfNoParent
Definition
SCR_ResupplyVehicleWeaponSupportStationAction.c:4
UIInfo
UIInfo - allows to define UI elements.
Definition
UIInfo.c:14
WidgetManager
Definition
WidgetManager.c:16
GetOwner
IEntity GetOwner()
Owner entity of the fuel tank.
Definition
SCR_FuelNode.c:128
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
UserActions
SupportStations
SCR_ResupplyVehicleWeaponSupportStationAction.c
Generated by
1.17.0