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

ColorFade(from, to, duration)

ColorFade

Parameters

  • from Microsoft.Xna.Framework.Color

  • to Microsoft.Xna.Framework.Color

  • duration number

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, 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.WaitForStartRound(startButton)

WaitForStartRound

Parameters

  • startButton GUIButton

Returns

  • IEnumerable

NewChatMessage(message)

NewChatMessage

Parameters

  • message Networking.ChatMessage

OnFileDropped(filePath, extension)

OnFileDropped

Parameters

OnRoundEnded()

OnRoundEnded

RandomizeSettings()

RandomizeSettings

RefreshEnabledElements()

RefreshEnabledElements

RefreshPlaystyleIcons()

RefreshPlaystyleIcons

RefreshStartButtonVisibility()

RefreshStartButtonVisibility

Release()

Release

RemovePlayer(client)

RemovePlayer

Parameters

  • client Networking.Client

SaveAppearance()

SaveAppearance

Returns

  • bool

Select()

Select

SelectMode(modeIndex)

SelectMode

Parameters

  • modeIndex number

SelectPlayer(component, area)

SelectPlayer

Parameters

  • component GUITextBlock

  • area ClickableArea

SelectPlayer(selectedClient)

SelectPlayer

Parameters

  • selectedClient Networking.Client

Returns

  • bool

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

SetMissionType(missionType)

SetMissionType

Parameters

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

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, subList)

TrySelectSub

Parameters

  • subList GUIListBox

Returns

  • bool

Update(deltaTime)

Update

Parameters

  • deltaTime number

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

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

MissionType

MissionType, field of type MissionType

  • MissionType

MissionTypeFrame

MissionTypeFrame, field of type GUIFrame

  • MissionTypeFrame

MissionTypeName

MissionTypeName, field of type string

  • MissionTypeName

ModeList

ModeList, field of type GUIListBox

  • ModeList

NetLobbyScreen.JobInfoFrame

NetLobbyScreen.JobInfoFrame, field of type GUIButton

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

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

TeamPreferenceListBox

TeamPreferenceListBox, field of type GUIListBox

  • TeamPreferenceListBox

UsingShuttle

UsingShuttle, field of type bool

  • UsingShuttle