Barotrauma Client Doc
Barotrauma.NetLobbyScreen Class Reference
Inheritance diagram for Barotrauma.NetLobbyScreen:
Barotrauma.Screen Barotrauma.Screen

Classes

struct  FailedSubInfo
 

Public Types

enum class  SubmarineDeliveryData { Owned , Campaign }
 

Public Member Functions

void SetLevelDifficulty (float difficulty)
 
void SetBotCount (int botCount)
 
void SetBotSpawnMode (BotSpawnMode botSpawnMode)
 
void SetTraitorProbability (float probability)
 
void SetTraitorDangerLevel (int dangerLevel)
 
IReadOnlyList< SubmarineInfoGetSubList ()
 
 NetLobbyScreen ()
 
void StopWaitingForStartRound ()
 
IEnumerable< CoroutineStatusWaitForStartRound (GUIButton startButton)
 
override void Deselect ()
 
override void Select ()
 
void SetPublic (bool isPublic)
 
void RefreshEnabledElements ()
 
void ShowSpectateButton ()
 
void SetCampaignCharacterInfo (CharacterInfo newCampaignCharacterInfo)
 
void CreatePlayerFrame (GUIComponent parent, bool createPendingText=true, bool alwaysAllowEditing=false)
 
void TryDiscardCampaignCharacter (Action onYes)
 
bool ToggleSpectate (GUITickBox tickBox)
 
void SetSpectate (bool spectate)
 
void SetAllowSpectating (bool allowSpectating)
 
void SetAutoRestart (bool enabled, float timer=0.0f)
 
void SetMissionType (MissionType missionType)
 
void UpdateSubList (GUIComponent subList, IEnumerable< SubmarineInfo > submarines)
 
bool VotableClicked (GUIComponent component, object userData)
 
void AddPlayer (Client client)
 
void SetPlayerNameAndJobPreference (Client client)
 
void SetPlayerVoiceIconState (Client client, bool muted, bool mutedLocally)
 
void SetPlayerSpeaking (Client client)
 
void RemovePlayer (Client client)
 
void SelectPlayer (GUITextBlock component, GUITextBlock.ClickableArea area)
 
void ShowPlayerContextMenu (GUITextBlock component, GUITextBlock.ClickableArea area)
 
bool SelectPlayer (Client selectedClient)
 
void KickPlayer (Client client)
 
void BanPlayer (Client client)
 
override void AddToGUIUpdateList ()
 By default, creates a new frame for the screen and adds all elements to the gui update list. More...
 
override void Update (double deltaTime)
 
override void Draw (double deltaTime, GraphicsDevice graphics, SpriteBatch spriteBatch)
 
void NewChatMessage (ChatMessage message)
 
bool SaveAppearance ()
 
void SelectMode (int modeIndex)
 
void HighlightMode (int modeIndex)
 
void ToggleCampaignMode (bool enabled)
 
void TryDisplayCampaignSubmarine (SubmarineInfo submarine)
 
bool TrySelectSub (string subName, string md5Hash, GUIListBox subList)
 
bool CheckIfCampaignSubMatches (SubmarineInfo serverSubmarine, SubmarineDeliveryData deliveryData)
 
void UpdateSubVisibility ()
 
void OnRoundEnded ()
 
- Public Member Functions inherited from Barotrauma.Screen
void ColorFade (Color from, Color to, float duration)
 
virtual void OnFileDropped (string filePath, string extension)
 
virtual void Release ()
 

Static Public Member Functions

static void CreateChangesPendingFrame (GUIComponent parent)
 
static Client ExtractClientFromClickableArea (GUITextBlock.ClickableArea area)
 
static void CreateModerationContextMenu (Client client)
 
- Static Public Member Functions inherited from Barotrauma.Screen
static void SelectNull ()
 

Public Attributes

readonly GUIFrame MissionTypeFrame
 
readonly GUIFrame CampaignSetupFrame
 
readonly GUIFrame CampaignFrame
 
readonly GUIButton ContinueCampaignButton
 
readonly GUIButton SettingsButton
 
GUIButton PlayerFrame
 
readonly GUIButton SubVisibilityButton
 
CharacterInfo.AppearanceCustomizationMenu CharacterAppearanceCustomizationMenu
 
GUIFrame JobSelectionFrame
 
GUIFrame JobPreferenceContainer
 
GUIListBox JobList
 
readonly GUIListBox SubList
 
readonly GUIDropDown ShuttleList
 
readonly GUIListBox ModeList
 
readonly GUIListBox PlayerList
 
MultiPlayerCampaignSetupUI CampaignSetupUI
 
FailedSubInfoFailedSelectedSub
 
FailedSubInfoFailedSelectedShuttle
 
List< FailedSubInfoFailedCampaignSubs = new List<FailedSubInfo>()
 
List< FailedSubInfoFailedOwnedSubs = new List<FailedSubInfo>()
 

Static Public Attributes

static GUIButton JobInfoFrame
 

Properties

UInt16 LastUpdateID [get, set]
 
GUITextBox ChatInput [get]
 
GUITextBox SeedBox [get]
 
bool Spectating [get]
 
bool CampaignCharacterDiscarded [get, set]
 
GUIComponent FileTransferFrame [get]
 
GUITextBlock FileTransferTitle [get]
 
GUIProgressBar FileTransferProgressBar [get]
 
GUITextBlock FileTransferProgressText [get]
 
GUITextBox ServerName [get]
 
GUITickBox Favorite [get]
 
GUITextBox ServerMessage [get]
 
GUILayoutGroup LogButtons [get]
 
int SelectedModeIndex [get, set]
 
int HighlightedModeIndex [get, set]
 
GUITextBox CharacterNameBox [get]
 
GUIListBox TeamPreferenceListBox [get]
 
GUIButton StartButton [get]
 
GUITickBox ReadyToStartBox [get]
 
SubmarineInfo SelectedSub [get]
 
SubmarineInfo SelectedShuttle [get]
 
bool UsingShuttle [get, set]
 
GameModePreset SelectedMode [get]
 
MissionType MissionType [get, set]
 
List< JobVariant >? JobPreferences [get]
 
string? LevelSeed [get, set]
 
- Properties inherited from Barotrauma.Screen
static Screen Selected [get]
 
virtual Camera Cam [get]
 
virtual bool IsEditor [get]
 
GUIFrame Frame [get]
 

Detailed Description

Member Enumeration Documentation

◆ SubmarineDeliveryData

Enumerator
Owned 
Campaign 

Definition at line 3802 of file BarotraumaClient/ClientSource/Screens/NetLobbyScreen.cs.

Constructor & Destructor Documentation

◆ NetLobbyScreen()

Barotrauma.NetLobbyScreen.NetLobbyScreen ( )

Member Function Documentation

◆ AddPlayer()

void Barotrauma.NetLobbyScreen.AddPlayer ( Client  client)

◆ AddToGUIUpdateList()

override void Barotrauma.NetLobbyScreen.AddToGUIUpdateList ( )
virtual

By default, creates a new frame for the screen and adds all elements to the gui update list.

Reimplemented from Barotrauma.Screen.

Definition at line 2776 of file BarotraumaClient/ClientSource/Screens/NetLobbyScreen.cs.

◆ BanPlayer()

void Barotrauma.NetLobbyScreen.BanPlayer ( Client  client)

◆ CheckIfCampaignSubMatches()

bool Barotrauma.NetLobbyScreen.CheckIfCampaignSubMatches ( SubmarineInfo  serverSubmarine,
SubmarineDeliveryData  deliveryData 
)

◆ CreateChangesPendingFrame()

static void Barotrauma.NetLobbyScreen.CreateChangesPendingFrame ( GUIComponent  parent)
static

◆ CreateModerationContextMenu()

static void Barotrauma.NetLobbyScreen.CreateModerationContextMenu ( Client  client)
static

◆ CreatePlayerFrame()

void Barotrauma.NetLobbyScreen.CreatePlayerFrame ( GUIComponent  parent,
bool  createPendingText = true,
bool  alwaysAllowEditing = false 
)

◆ Deselect()

override void Barotrauma.NetLobbyScreen.Deselect ( )
virtual

Reimplemented from Barotrauma.Screen.

Definition at line 1336 of file BarotraumaClient/ClientSource/Screens/NetLobbyScreen.cs.

◆ Draw()

override void Barotrauma.NetLobbyScreen.Draw ( double  deltaTime,
GraphicsDevice  graphics,
SpriteBatch  spriteBatch 
)
virtual

Reimplemented from Barotrauma.Screen.

Definition at line 2882 of file BarotraumaClient/ClientSource/Screens/NetLobbyScreen.cs.

◆ ExtractClientFromClickableArea()

static Client Barotrauma.NetLobbyScreen.ExtractClientFromClickableArea ( GUITextBlock.ClickableArea  area)
static

◆ GetSubList()

IReadOnlyList<SubmarineInfo> Barotrauma.NetLobbyScreen.GetSubList ( )

◆ HighlightMode()

void Barotrauma.NetLobbyScreen.HighlightMode ( int  modeIndex)

◆ KickPlayer()

void Barotrauma.NetLobbyScreen.KickPlayer ( Client  client)

◆ NewChatMessage()

void Barotrauma.NetLobbyScreen.NewChatMessage ( ChatMessage  message)

◆ OnRoundEnded()

void Barotrauma.NetLobbyScreen.OnRoundEnded ( )

◆ RefreshEnabledElements()

void Barotrauma.NetLobbyScreen.RefreshEnabledElements ( )

◆ RemovePlayer()

void Barotrauma.NetLobbyScreen.RemovePlayer ( Client  client)

◆ SaveAppearance()

bool Barotrauma.NetLobbyScreen.SaveAppearance ( )

◆ Select()

override void Barotrauma.NetLobbyScreen.Select ( )
virtual

Reimplemented from Barotrauma.Screen.

Definition at line 1346 of file BarotraumaClient/ClientSource/Screens/NetLobbyScreen.cs.

◆ SelectMode()

void Barotrauma.NetLobbyScreen.SelectMode ( int  modeIndex)

◆ SelectPlayer() [1/2]

bool Barotrauma.NetLobbyScreen.SelectPlayer ( Client  selectedClient)

◆ SelectPlayer() [2/2]

void Barotrauma.NetLobbyScreen.SelectPlayer ( GUITextBlock  component,
GUITextBlock.ClickableArea  area 
)

◆ SetAllowSpectating()

void Barotrauma.NetLobbyScreen.SetAllowSpectating ( bool  allowSpectating)

◆ SetAutoRestart()

void Barotrauma.NetLobbyScreen.SetAutoRestart ( bool  enabled,
float  timer = 0.0f 
)

◆ SetBotCount()

void Barotrauma.NetLobbyScreen.SetBotCount ( int  botCount)

◆ SetBotSpawnMode()

void Barotrauma.NetLobbyScreen.SetBotSpawnMode ( BotSpawnMode  botSpawnMode)

◆ SetCampaignCharacterInfo()

void Barotrauma.NetLobbyScreen.SetCampaignCharacterInfo ( CharacterInfo  newCampaignCharacterInfo)

◆ SetLevelDifficulty()

void Barotrauma.NetLobbyScreen.SetLevelDifficulty ( float  difficulty)

◆ SetMissionType()

void Barotrauma.NetLobbyScreen.SetMissionType ( MissionType  missionType)

◆ SetPlayerNameAndJobPreference()

void Barotrauma.NetLobbyScreen.SetPlayerNameAndJobPreference ( Client  client)

◆ SetPlayerSpeaking()

void Barotrauma.NetLobbyScreen.SetPlayerSpeaking ( Client  client)

◆ SetPlayerVoiceIconState()

void Barotrauma.NetLobbyScreen.SetPlayerVoiceIconState ( Client  client,
bool  muted,
bool  mutedLocally 
)

◆ SetPublic()

void Barotrauma.NetLobbyScreen.SetPublic ( bool  isPublic)

◆ SetSpectate()

void Barotrauma.NetLobbyScreen.SetSpectate ( bool  spectate)

◆ SetTraitorDangerLevel()

void Barotrauma.NetLobbyScreen.SetTraitorDangerLevel ( int  dangerLevel)

◆ SetTraitorProbability()

void Barotrauma.NetLobbyScreen.SetTraitorProbability ( float  probability)

◆ ShowPlayerContextMenu()

void Barotrauma.NetLobbyScreen.ShowPlayerContextMenu ( GUITextBlock  component,
GUITextBlock.ClickableArea  area 
)

◆ ShowSpectateButton()

void Barotrauma.NetLobbyScreen.ShowSpectateButton ( )

◆ StopWaitingForStartRound()

void Barotrauma.NetLobbyScreen.StopWaitingForStartRound ( )

◆ ToggleCampaignMode()

void Barotrauma.NetLobbyScreen.ToggleCampaignMode ( bool  enabled)

◆ ToggleSpectate()

bool Barotrauma.NetLobbyScreen.ToggleSpectate ( GUITickBox  tickBox)

◆ TryDiscardCampaignCharacter()

void Barotrauma.NetLobbyScreen.TryDiscardCampaignCharacter ( Action  onYes)

◆ TryDisplayCampaignSubmarine()

void Barotrauma.NetLobbyScreen.TryDisplayCampaignSubmarine ( SubmarineInfo  submarine)

◆ TrySelectSub()

bool Barotrauma.NetLobbyScreen.TrySelectSub ( string  subName,
string  md5Hash,
GUIListBox  subList 
)

◆ Update()

override void Barotrauma.NetLobbyScreen.Update ( double  deltaTime)
virtual

Reimplemented from Barotrauma.Screen.

Definition at line 2787 of file BarotraumaClient/ClientSource/Screens/NetLobbyScreen.cs.

◆ UpdateSubList()

void Barotrauma.NetLobbyScreen.UpdateSubList ( GUIComponent  subList,
IEnumerable< SubmarineInfo submarines 
)

◆ UpdateSubVisibility()

void Barotrauma.NetLobbyScreen.UpdateSubVisibility ( )

◆ VotableClicked()

bool Barotrauma.NetLobbyScreen.VotableClicked ( GUIComponent  component,
object  userData 
)

◆ WaitForStartRound()

IEnumerable<CoroutineStatus> Barotrauma.NetLobbyScreen.WaitForStartRound ( GUIButton  startButton)

Member Data Documentation

◆ CampaignFrame

readonly GUIFrame Barotrauma.NetLobbyScreen.CampaignFrame

◆ CampaignSetupFrame

readonly GUIFrame Barotrauma.NetLobbyScreen.CampaignSetupFrame

◆ CampaignSetupUI

MultiPlayerCampaignSetupUI Barotrauma.NetLobbyScreen.CampaignSetupUI

◆ CharacterAppearanceCustomizationMenu

CharacterInfo.AppearanceCustomizationMenu Barotrauma.NetLobbyScreen.CharacterAppearanceCustomizationMenu

◆ ContinueCampaignButton

readonly GUIButton Barotrauma.NetLobbyScreen.ContinueCampaignButton

◆ FailedCampaignSubs

List<FailedSubInfo> Barotrauma.NetLobbyScreen.FailedCampaignSubs = new List<FailedSubInfo>()

◆ FailedOwnedSubs

List<FailedSubInfo> Barotrauma.NetLobbyScreen.FailedOwnedSubs = new List<FailedSubInfo>()

◆ FailedSelectedShuttle

FailedSubInfo? Barotrauma.NetLobbyScreen.FailedSelectedShuttle

◆ FailedSelectedSub

FailedSubInfo? Barotrauma.NetLobbyScreen.FailedSelectedSub

◆ JobInfoFrame

GUIButton Barotrauma.NetLobbyScreen.JobInfoFrame
static

◆ JobList

GUIListBox Barotrauma.NetLobbyScreen.JobList

◆ JobPreferenceContainer

GUIFrame Barotrauma.NetLobbyScreen.JobPreferenceContainer

◆ JobSelectionFrame

GUIFrame Barotrauma.NetLobbyScreen.JobSelectionFrame

◆ MissionTypeFrame

readonly GUIFrame Barotrauma.NetLobbyScreen.MissionTypeFrame

◆ ModeList

readonly GUIListBox Barotrauma.NetLobbyScreen.ModeList

◆ PlayerFrame

GUIButton Barotrauma.NetLobbyScreen.PlayerFrame

◆ PlayerList

readonly GUIListBox Barotrauma.NetLobbyScreen.PlayerList

◆ SettingsButton

readonly GUIButton Barotrauma.NetLobbyScreen.SettingsButton

◆ ShuttleList

readonly GUIDropDown Barotrauma.NetLobbyScreen.ShuttleList

◆ SubList

readonly GUIListBox Barotrauma.NetLobbyScreen.SubList

◆ SubVisibilityButton

readonly GUIButton Barotrauma.NetLobbyScreen.SubVisibilityButton

Property Documentation

◆ CampaignCharacterDiscarded

bool Barotrauma.NetLobbyScreen.CampaignCharacterDiscarded
getset

◆ CharacterNameBox

GUITextBox Barotrauma.NetLobbyScreen.CharacterNameBox
get

◆ ChatInput

GUITextBox Barotrauma.NetLobbyScreen.ChatInput
get

◆ Favorite

GUITickBox Barotrauma.NetLobbyScreen.Favorite
get

◆ FileTransferFrame

GUIComponent Barotrauma.NetLobbyScreen.FileTransferFrame
get

◆ FileTransferProgressBar

GUIProgressBar Barotrauma.NetLobbyScreen.FileTransferProgressBar
get

◆ FileTransferProgressText

GUITextBlock Barotrauma.NetLobbyScreen.FileTransferProgressText
get

◆ FileTransferTitle

GUITextBlock Barotrauma.NetLobbyScreen.FileTransferTitle
get

◆ HighlightedModeIndex

int Barotrauma.NetLobbyScreen.HighlightedModeIndex
getset

◆ JobPreferences

List<JobVariant>? Barotrauma.NetLobbyScreen.JobPreferences
get

◆ LastUpdateID

UInt16 Barotrauma.NetLobbyScreen.LastUpdateID
getset

◆ LevelSeed

string? Barotrauma.NetLobbyScreen.LevelSeed
getset

◆ LogButtons

GUILayoutGroup Barotrauma.NetLobbyScreen.LogButtons
get

◆ MissionType

MissionType Barotrauma.NetLobbyScreen.MissionType
getset

◆ ReadyToStartBox

GUITickBox Barotrauma.NetLobbyScreen.ReadyToStartBox
get

◆ SeedBox

GUITextBox Barotrauma.NetLobbyScreen.SeedBox
get

◆ SelectedMode

GameModePreset Barotrauma.NetLobbyScreen.SelectedMode
get

◆ SelectedModeIndex

int Barotrauma.NetLobbyScreen.SelectedModeIndex
getset

◆ SelectedShuttle

SubmarineInfo Barotrauma.NetLobbyScreen.SelectedShuttle
get

◆ SelectedSub

SubmarineInfo Barotrauma.NetLobbyScreen.SelectedSub
get

◆ ServerMessage

GUITextBox Barotrauma.NetLobbyScreen.ServerMessage
get

◆ ServerName

GUITextBox Barotrauma.NetLobbyScreen.ServerName
get

◆ Spectating

bool Barotrauma.NetLobbyScreen.Spectating
get

◆ StartButton

GUIButton Barotrauma.NetLobbyScreen.StartButton
get

◆ TeamPreferenceListBox

GUIListBox Barotrauma.NetLobbyScreen.TeamPreferenceListBox
get

◆ UsingShuttle

bool Barotrauma.NetLobbyScreen.UsingShuttle
getset