Client LuaCsForBarotrauma
BarotraumaClient/ClientSource/Items/Components/Machines/OutpostTerminal.cs
1
2
namespace
Barotrauma.Items.Components
3
{
4
partial class
OutpostTerminal : ItemComponent
5
{
6
private
SubmarineSelection selectionUI;
7
8
public
override
bool
Select
(
Character
character)
9
{
10
if
(
GameMain
.
GameSession
?.
Campaign
==
null
|| !
Level
.
IsLoadedFriendlyOutpost
)
11
{
12
return
false
;
13
}
14
15
if
(selectionUI ==
null
)
16
{
17
selectionUI =
new
SubmarineSelection
(
true
,
null
, GUI.Canvas);
18
}
19
20
GuiFrame
= selectionUI.GuiFrame;
21
selectionUI.RefreshSubmarineDisplay(
true
, setTransferOptionToTrue:
true
);
22
IsActive
=
true
;
23
return
base.Select(character);
24
}
25
26
public
override
void
Update
(
float
deltaTime,
Camera
cam)
27
{
28
if
(
Character
.
Controlled
?.
SelectedItem
!=
item
)
29
{
30
IsActive
=
false
;
31
return
;
32
}
33
34
base.Update(deltaTime, cam);
35
36
selectionUI?.Update();
37
}
38
39
protected
override
void
RemoveComponentSpecific
()
40
{
41
base.RemoveComponentSpecific();
42
if
(selectionUI !=
null
)
43
{
44
selectionUI.GuiFrame.RectTransform.Parent =
null
;
45
selectionUI =
null
;
46
}
47
}
48
}
49
}
Barotrauma.Camera
Definition:
Camera.cs:10
Barotrauma.Character
Definition:
BarotraumaShared/SharedSource/Characters/Character.cs:32
Barotrauma.Character.SelectedItem
Item????????? SelectedItem
The primary selected item. It can be any device that character interacts with. This excludes items li...
Definition:
BarotraumaShared/SharedSource/Characters/Character.cs:1025
Barotrauma.Character.Controlled
static Character? Controlled
Definition:
BarotraumaClient/ClientSource/Characters/Character.cs:51
Barotrauma.GameMain
Definition:
GameMain.cs:25
Barotrauma.GameMain.GameSession
static GameSession?? GameSession
Definition:
GameMain.cs:88
Barotrauma.GameSession.Campaign
CampaignMode? Campaign
Definition:
BarotraumaShared/SharedSource/GameSession/GameSession.cs:68
Barotrauma.Items.Components.ItemComponent.item
Item item
Definition:
BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs:36
Barotrauma.Items.Components.ItemComponent.GuiFrame
GUIFrame GuiFrame
Definition:
BarotraumaClient/ClientSource/Items/Components/ItemComponent.cs:151
Barotrauma.Items.Components.ItemComponent.IsActive
virtual bool? IsActive
Definition:
BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs:114
Barotrauma.Items.Components.OutpostTerminal.Update
override void Update(float deltaTime, Camera cam)
Definition:
BarotraumaClient/ClientSource/Items/Components/Machines/OutpostTerminal.cs:26
Barotrauma.Items.Components.OutpostTerminal.RemoveComponentSpecific
override void RemoveComponentSpecific()
Definition:
BarotraumaClient/ClientSource/Items/Components/Machines/OutpostTerminal.cs:39
Barotrauma.Items.Components.OutpostTerminal.Select
override bool Select(Character character)
Definition:
BarotraumaClient/ClientSource/Items/Components/Machines/OutpostTerminal.cs:8
Barotrauma.Level
Definition:
BarotraumaShared/SharedSource/Map/Levels/Level.cs:19
Barotrauma.Level.IsLoadedFriendlyOutpost
static bool IsLoadedFriendlyOutpost
Is there a loaded level set, and is it a friendly outpost (FriendlyNPC or Team1). Does not take reput...
Definition:
BarotraumaShared/SharedSource/Map/Levels/Level.cs:456
Barotrauma.SubmarineSelection
Definition:
SubmarineSelection.cs:12
Barotrauma.Items.Components
Definition:
BarotraumaShared/SharedSource/Items/Components/DockingPort.cs:15
Barotrauma
BarotraumaClient
ClientSource
Items
Components
Machines
OutpostTerminal.cs
Generated by
1.9.1