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

Classes

class  FriendInfo
 
struct  Tab
 

Public Types

enum class  TabEnum { All , Favorites , Recent }
 
enum class  AvatarSize { Small , Medium , Large }
 

Public Member Functions

 ServerListScreen ()
 
void UpdateOrAddServerInfo (ServerInfo serverInfo)
 
void AddToRecentServers (ServerInfo info)
 
bool IsFavorite (ServerInfo info)
 
void AddToFavoriteServers (ServerInfo info)
 
void RemoveFromFavoriteServers (ServerInfo info)
 
void HideServerPreview ()
 
override void Select ()
 
override void Deselect ()
 
override void Update (double deltaTime)
 
void FilterServers ()
 
void JoinServer (Endpoint endpoint, string serverName)
 
override void Draw (double deltaTime, GraphicsDevice graphics, SpriteBatch spriteBatch)
 
override void AddToGUIUpdateList ()
 By default, creates a new frame for the screen and adds all elements to the gui update list. More...
 
void StoreServerFilters ()
 
void LoadServerFilters ()
 
- 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 CreateFilterServerPrompt (ServerInfo info)
 
static void CreateReportPrompt (ServerInfo info)
 
- Static Public Member Functions inherited from Barotrauma.Screen
static void SelectNull ()
 

Properties

GUITextBox ClientNameBox [get]
 
- Properties inherited from Barotrauma.Screen
static Screen Selected [get]
 
virtual Camera Cam [get]
 
virtual bool IsEditor [get]
 
GUIFrame Frame [get]
 

Detailed Description

Definition at line 14 of file ServerListScreen.cs.

Member Enumeration Documentation

◆ AvatarSize

Enumerator
Small 
Medium 
Large 

Definition at line 1257 of file ServerListScreen.cs.

◆ TabEnum

Enumerator
All 
Favorites 
Recent 

Definition at line 111 of file ServerListScreen.cs.

Constructor & Destructor Documentation

◆ ServerListScreen()

Barotrauma.ServerListScreen.ServerListScreen ( )

Definition at line 260 of file ServerListScreen.cs.

Member Function Documentation

◆ AddToFavoriteServers()

void Barotrauma.ServerListScreen.AddToFavoriteServers ( ServerInfo  info)

Definition at line 802 of file ServerListScreen.cs.

◆ AddToGUIUpdateList()

override void Barotrauma.ServerListScreen.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 2000 of file ServerListScreen.cs.

◆ AddToRecentServers()

void Barotrauma.ServerListScreen.AddToRecentServers ( ServerInfo  info)

Definition at line 792 of file ServerListScreen.cs.

◆ CreateFilterServerPrompt()

static void Barotrauma.ServerListScreen.CreateFilterServerPrompt ( ServerInfo  info)
static

Definition at line 1612 of file ServerListScreen.cs.

◆ CreateReportPrompt()

static void Barotrauma.ServerListScreen.CreateReportPrompt ( ServerInfo  info)
static

Definition at line 1638 of file ServerListScreen.cs.

◆ Deselect()

override void Barotrauma.ServerListScreen.Deselect ( )
virtual

Reimplemented from Barotrauma.Screen.

Definition at line 957 of file ServerListScreen.cs.

◆ Draw()

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

Reimplemented from Barotrauma.Screen.

Definition at line 1990 of file ServerListScreen.cs.

◆ FilterServers()

void Barotrauma.ServerListScreen.FilterServers ( )

Definition at line 984 of file ServerListScreen.cs.

◆ HideServerPreview()

void Barotrauma.ServerListScreen.HideServerPreview ( )

Definition at line 856 of file ServerListScreen.cs.

◆ IsFavorite()

bool Barotrauma.ServerListScreen.IsFavorite ( ServerInfo  info)

◆ JoinServer()

void Barotrauma.ServerListScreen.JoinServer ( Endpoint  endpoint,
string  serverName 
)

Definition at line 1957 of file ServerListScreen.cs.

◆ LoadServerFilters()

void Barotrauma.ServerListScreen.LoadServerFilters ( )

Definition at line 2020 of file ServerListScreen.cs.

◆ RemoveFromFavoriteServers()

void Barotrauma.ServerListScreen.RemoveFromFavoriteServers ( ServerInfo  info)

Definition at line 808 of file ServerListScreen.cs.

◆ Select()

override void Barotrauma.ServerListScreen.Select ( )
virtual

Reimplemented from Barotrauma.Screen.

Definition at line 924 of file ServerListScreen.cs.

◆ StoreServerFilters()

void Barotrauma.ServerListScreen.StoreServerFilters ( )

Definition at line 2007 of file ServerListScreen.cs.

◆ Update()

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

Reimplemented from Barotrauma.Screen.

Definition at line 963 of file ServerListScreen.cs.

◆ UpdateOrAddServerInfo()

void Barotrauma.ServerListScreen.UpdateOrAddServerInfo ( ServerInfo  serverInfo)

Definition at line 777 of file ServerListScreen.cs.

Property Documentation

◆ ClientNameBox

GUITextBox Barotrauma.ServerListScreen.ClientNameBox
get

Definition at line 193 of file ServerListScreen.cs.