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_FuelItemHintsUIInfo.c
Go to the documentation of this file.
1
[
BaseContainerProps
()]
2
class
SCR_FuelItemHintsUIInfo
: SCR_InventoryItemHintUIInfo
3
{
4
//------------------------------------------------------------------------------------------------
5
override
bool
CanBeShown(
InventoryItemComponent
item,
SCR_InventorySlotUI
focusedSlot)
6
{
7
if
(!item || !super.CanBeShown(item, focusedSlot))
8
return
false
;
9
10
return
FuelManagerComponent.Cast(item.GetOwner().
FindComponent
(FuelManagerComponent));
11
}
12
13
//------------------------------------------------------------------------------------------------
14
override
string
GetItemHintName(
InventoryItemComponent
item)
15
{
16
if
(!item)
17
return
super.GetItemHintName(item);
18
19
FuelManagerComponent fuelManager = FuelManagerComponent.Cast(item.GetOwner().
FindComponent
(FuelManagerComponent));
20
if
(!fuelManager)
21
return
super.GetItemHintName(item);
22
23
return
WidgetManager
.Translate(
GetName
(),
SCR_FormatHelper
.FloatToStringNoZeroDecimalEndings(fuelManager.GetTotalFuel(), 1),
SCR_FormatHelper
.FloatToStringNoZeroDecimalEndings(fuelManager.GetTotalMaxFuel(), 1));
24
}
25
}
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
GetName
string GetName()
Definition
SCR_NotificationSenderComponent.c:15
IEntity::FindComponent
proto external Managed FindComponent(typename typeName)
InventoryItemComponent
Definition
InventoryItemComponent.c:13
SCR_FormatHelper
Definition
SCR_FormatHelper.c:2
SCR_FuelItemHintsUIInfo
Definition
SCR_FuelItemHintsUIInfo.c:3
SCR_InventorySlotUI
Definition
SCR_InventorySlotUI.c:26
WidgetManager
Definition
WidgetManager.c:16
scripts
Game
Editor
Containers
UIInfo
SCR_FuelItemHintsUIInfo.c
Generated by
1.17.0