Game.NetLobbyScreen

Barotrauma.NetLobbyScreen

Functions

AddPlayer(client)

AddPlayer

Parameters

  • client Networking.Client

AddSub(sub)

AddSub

Parameters

  • sub SubmarineInfo

AddToGUIUpdateList()

AddToGUIUpdateList

AssignComponentsToServerSettings()

AssignComponentsToServerSettings

CheckIfCampaignSubMatches(serverSubmarine, deliveryData)

CheckIfCampaignSubMatches

Parameters

  • serverSubmarine SubmarineInfo

  • deliveryData SubmarineDeliveryData

Returns

  • bool

CloseStartRoundWarning()

CloseStartRoundWarning

ColorFade(from, to, duration)

ColorFade

Parameters

  • from Microsoft.Xna.Framework.Color

  • to Microsoft.Xna.Framework.Color

  • duration number

CreateDisembarkPointPanel(parent)

CreateDisembarkPointPanel

Parameters

  • parent GUIComponent

CreatePlayerFrame(parent, createPendingText, alwaysAllowEditing)

CreatePlayerFrame

Parameters

  • parent GUIComponent

  • createPendingText bool

  • alwaysAllowEditing bool

Deselect()

Deselect

Draw(deltaTime, graphics, spriteBatch)

Draw

Parameters

  • deltaTime number

  • graphics Microsoft.Xna.Framework.Graphics.GraphicsDevice

  • spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch

Equals(obj)

Equals

Parameters

  • obj Object

Returns

  • bool

GetHashCode()

GetHashCode

Returns

  • number

GetSubList()

GetSubList

Returns

  • IReadOnlyList

GetType()

GetType

Returns

  • Type

HighlightMode(modeIndex)

HighlightMode

Parameters

  • modeIndex number

NetLobbyScreen()

NetLobbyScreen

NetLobbyScreen.BanPlayer(client)

BanPlayer

Parameters

  • client Networking.Client

NetLobbyScreen.CreateChangesPendingFrame(parent)

CreateChangesPendingFrame

Parameters

  • parent GUIComponent

NetLobbyScreen.CreateLabeledDropdown(parent, labelTag, numElements, toolTipTag)

CreateLabeledDropdown

Parameters

  • parent GUIComponent

  • numElements number

Returns

  • GUIDropDown

NetLobbyScreen.CreateLabeledNumberInput(parent, labelTag, min, max, toolTipTag, font)

CreateLabeledNumberInput

Parameters

  • parent GUIComponent

  • min number

  • max number

  • font GUIFont

Returns

  • GUINumberInput

NetLobbyScreen.CreateLabeledSlider(parent, headerTag, valueLabelTag, tooltipTag, slider, label, header, step, range)

CreateLabeledSlider

Parameters

  • parent GUIComponent

  • slider GUIScrollBar&

  • label GUITextBlock&

  • header GUITextBlock&

  • step optional Single

  • range optional Microsoft.Xna.Framework.Vector2

Returns

  • GUIComponent

NetLobbyScreen.CreateLabeledSlider(parent, headerTag, valueLabelTag, tooltipTag, slider, label, step, range)

CreateLabeledSlider

Parameters

  • parent GUIComponent

  • slider GUIScrollBar&

  • label GUITextBlock&

  • step optional Single

  • range optional Microsoft.Xna.Framework.Vector2

Returns

  • GUIComponent

NetLobbyScreen.CreateModerationContextMenu(client)

CreateModerationContextMenu

Parameters

  • client Networking.Client

NetLobbyScreen.CreateSubHeader(textTag, parent, toolTipTag)

CreateSubHeader

Parameters

  • parent GUIComponent

Returns

  • GUITextBlock

NetLobbyScreen.ExtractClientFromClickableArea(area)

ExtractClientFromClickableArea

Parameters

  • area ClickableArea

Returns

  • Networking.Client

NetLobbyScreen.KickPlayer(client)

KickPlayer

Parameters

  • client Networking.Client

NetLobbyScreen.SelectShuttle(info)

SelectShuttle

Parameters

  • info SubmarineInfo

NetLobbyScreen.WaitForStartRound(startButton)

WaitForStartRound

Parameters

  • startButton GUIButton

Returns

  • IEnumerable

NewChatMessage(message)

NewChatMessage

Parameters

  • message Networking.ChatMessage

OnFileDropped(filePath, extension)

OnFileDropped

Parameters

OnRoundEnded()

OnRoundEnded

RandomizeSettings()

RandomizeSettings

RefreshChatrow()

RefreshChatrow

RefreshEnabledElements()

RefreshEnabledElements

RefreshPlaystyleIcons()

RefreshPlaystyleIcons

RefreshPvpTeamSelectionButtons()

RefreshPvpTeamSelectionButtons

RefreshStartButtonVisibility()

RefreshStartButtonVisibility

Release()

Release

RemovePlayer(client)

RemovePlayer

Parameters

  • client Networking.Client

ResetPvpTeamSelection()

ResetPvpTeamSelection

SaveAppearance()

SaveAppearance

Returns

  • bool

Select()

Select

SelectMode(modeIndex)

SelectMode

Parameters

  • modeIndex number

SelectPlayer(selectedClient)

SelectPlayer

Parameters

  • selectedClient Networking.Client

Returns

  • bool

SelectPlayer(component, area)

SelectPlayer

Parameters

  • component GUITextBlock

  • area ClickableArea

SetAllowSpectating(allowSpectating)

SetAllowSpectating

Parameters

  • allowSpectating bool

SetAutoRestart(enabled, timer)

SetAutoRestart

Parameters

  • enabled bool

  • timer number

SetBotCount(botCount)

SetBotCount

Parameters

  • botCount number

SetBotSpawnMode(botSpawnMode)

SetBotSpawnMode

Parameters

  • botSpawnMode Networking.BotSpawnMode

SetCampaignCharacterInfo(newCampaignCharacterInfo)

SetCampaignCharacterInfo

Parameters

  • newCampaignCharacterInfo CharacterInfo

SetLevelDifficulty(difficulty)

SetLevelDifficulty

Parameters

  • difficulty number

SetMissionTypes(missionTypes)

SetMissionTypes

Parameters

  • missionTypes IEnumerable

SetPlayerNameAndJobPreference(client)

SetPlayerNameAndJobPreference

Parameters

  • client Networking.Client

SetPlayerSpeaking(client)

SetPlayerSpeaking

Parameters

  • client Networking.Client

SetPlayerVoiceIconState(client, muted, mutedLocally)

SetPlayerVoiceIconState

Parameters

  • client Networking.Client

  • muted bool

  • mutedLocally bool

SetSpectate(spectate)

SetSpectate

Parameters

  • spectate bool

SetTraitorDangerLevel(dangerLevel)

SetTraitorDangerLevel

Parameters

  • dangerLevel number

SetTraitorProbability(probability)

SetTraitorProbability

Parameters

  • probability number

ShowPlayerContextMenu(component, area)

ShowPlayerContextMenu

Parameters

  • component GUITextBlock

  • area ClickableArea

ShowSpectateButton()

ShowSpectateButton

ShowStartRoundWarning(waitUntilTime, team1SubName, team1IncompatiblePerks, team2SubName, team2IncompatiblePerks)

ShowStartRoundWarning

Parameters

  • waitUntilTime SerializableDateTime

  • team1IncompatiblePerks Collections.Immutable.ImmutableArray

  • team2IncompatiblePerks Collections.Immutable.ImmutableArray

StopWaitingForStartRound()

StopWaitingForStartRound

ToString()

ToString

Returns

ToggleCampaignMode(enabled)

ToggleCampaignMode

Parameters

  • enabled bool

ToggleSpectate(tickBox)

ToggleSpectate

Parameters

  • tickBox GUITickBox

Returns

  • bool

TryDiscardCampaignCharacter(onYes)

TryDiscardCampaignCharacter

Parameters

  • onYes Action

TryDisplayCampaignSubmarine(submarine)

TryDisplayCampaignSubmarine

Parameters

  • submarine SubmarineInfo

TrySelectSub(subName, md5Hash, type, subList, showPreview)

TrySelectSub

Parameters

  • type SelectedSubType

  • subList GUIListBox

  • showPreview bool

Returns

  • bool

Update(deltaTime)

Update

Parameters

  • deltaTime number

UpdateDisembarkPointListFromServerSettings()

UpdateDisembarkPointListFromServerSettings

UpdateSelectedSub(preference)

UpdateSelectedSub

Parameters

  • preference CharacterTeamType

UpdateSubList(subList, submarines)

UpdateSubList

Parameters

  • subList GUIComponent

  • submarines IEnumerable

UpdateSubVisibility()

UpdateSubVisibility

VotableClicked(component, userData)

VotableClicked

Parameters

  • component GUIComponent

  • userData Object

Returns

  • bool

Fields

Cam

Cam, field of type Camera

  • Cam

CampaignCharacterDiscarded

CampaignCharacterDiscarded, field of type bool

  • CampaignCharacterDiscarded

CampaignFrame

CampaignFrame, field of type GUIFrame

  • CampaignFrame

CampaignSetupFrame

CampaignSetupFrame, field of type GUIFrame

  • CampaignSetupFrame

CampaignSetupUI

CampaignSetupUI, field of type MultiPlayerCampaignSetupUI

  • CampaignSetupUI

CharacterAppearanceCustomizationMenu

CharacterAppearanceCustomizationMenu, field of type AppearanceCustomizationMenu

  • CharacterAppearanceCustomizationMenu

CharacterNameBox

CharacterNameBox, field of type GUITextBox

  • CharacterNameBox

ChatInput

ChatInput, field of type GUITextBox

  • ChatInput

FailedCampaignSubs

FailedCampaignSubs, field of type table

  • FailedCampaignSubs

FailedOwnedSubs

FailedOwnedSubs, field of type table

  • FailedOwnedSubs

FailedSelectedEnemySub

FailedSelectedEnemySub, field of type ?FailedSubInfo

  • FailedSelectedEnemySub

FailedSelectedShuttle

FailedSelectedShuttle, field of type ?FailedSubInfo

  • FailedSelectedShuttle

FailedSelectedSub

FailedSelectedSub, field of type ?FailedSubInfo

  • FailedSelectedSub

Favorite

Favorite, field of type GUITickBox

  • Favorite

FileTransferFrame

FileTransferFrame, field of type GUIComponent

  • FileTransferFrame

FileTransferProgressBar

FileTransferProgressBar, field of type GUIProgressBar

  • FileTransferProgressBar

FileTransferProgressText

FileTransferProgressText, field of type GUITextBlock

  • FileTransferProgressText

FileTransferTitle

FileTransferTitle, field of type GUITextBlock

  • FileTransferTitle

Frame

Frame, field of type GUIFrame

  • Frame

GameModes

GameModes, field of type GameModePreset[]

  • GameModes

HighlightedModeIndex

HighlightedModeIndex, field of type number

  • HighlightedModeIndex

IsEditor

IsEditor, field of type bool

  • IsEditor

JobList

JobList, field of type GUIListBox

  • JobList

JobPreferenceContainer

JobPreferenceContainer, field of type GUIFrame

  • JobPreferenceContainer

JobPreferences

JobPreferences, field of type table

  • JobPreferences

JobSelectionFrame

JobSelectionFrame, field of type GUIFrame

  • JobSelectionFrame

LastUpdateID

LastUpdateID, field of type number

  • LastUpdateID

LevelSeed

LevelSeed, field of type string

  • LevelSeed

LevelSeedBox

LevelSeedBox, field of type GUITextBox

  • LevelSeedBox

LogButtons

LogButtons, field of type GUILayoutGroup

  • LogButtons

MissionTypeFrame

MissionTypeFrame, field of type GUIFrame

  • MissionTypeFrame

MissionTypes

MissionTypes, field of type IEnumerable

  • MissionTypes

ModeList

ModeList, field of type GUIListBox

  • ModeList

NetLobbyScreen.CoalitionIconUserData

NetLobbyScreen.CoalitionIconUserData, field of type string

NetLobbyScreen.JobInfoFrame

NetLobbyScreen.JobInfoFrame, field of type GUIButton

NetLobbyScreen.PleaseWaitPopupUserData

NetLobbyScreen.PleaseWaitPopupUserData, field of type string

NetLobbyScreen.SeparatistsIconUserData

NetLobbyScreen.SeparatistsIconUserData, field of type string

NetLobbyScreen.TeamChatSelected

NetLobbyScreen.TeamChatSelected, field of type bool

PermadeathMode

PermadeathMode, field of type bool

  • PermadeathMode

PermanentlyDead

PermanentlyDead, field of type bool

  • PermanentlyDead

PlayerFrame

PlayerFrame, field of type GUIButton

  • PlayerFrame

PlayerList

PlayerList, field of type GUIListBox

  • PlayerList

QuitCampaignButton

QuitCampaignButton, field of type GUIButton

  • QuitCampaignButton

RadiationEnabled

RadiationEnabled, field of type bool

  • RadiationEnabled

ReadyToStartBox

ReadyToStartBox, field of type GUITickBox

  • ReadyToStartBox

SelectedEnemySub

SelectedEnemySub, field of type SubmarineInfo

  • SelectedEnemySub

SelectedMode

SelectedMode, field of type GameModePreset

  • SelectedMode

SelectedModeIdentifier

SelectedModeIdentifier, field of type Identifier

  • SelectedModeIdentifier

SelectedModeIndex

SelectedModeIndex, field of type number

  • SelectedModeIndex

SelectedShuttle

SelectedShuttle, field of type SubmarineInfo

  • SelectedShuttle

SelectedSub

SelectedSub, field of type SubmarineInfo

  • SelectedSub

ServerMessageButton

ServerMessageButton, field of type GUIButton

  • ServerMessageButton

SettingsButton

SettingsButton, field of type GUIButton

  • SettingsButton

ShuttleList

ShuttleList, field of type GUIDropDown

  • ShuttleList

Spectating

Spectating, field of type bool

  • Spectating

StartButton

StartButton, field of type GUIButton

  • StartButton

SubList

SubList, field of type GUIListBox

  • SubList

SubVisibilityButton

SubVisibilityButton, field of type GUIButton

  • SubVisibilityButton

Team1Count

Team1Count, field of type number

  • Team1Count

Team2Count

Team2Count, field of type number

  • Team2Count

TeamPreferenceListBox

TeamPreferenceListBox, field of type GUIListBox

  • TeamPreferenceListBox

UsingShuttle

UsingShuttle, field of type bool

  • UsingShuttle