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

Public Member Functions

 MainMenuScreen (GameMain game)
 
override void Select ()
 
override void Deselect ()
 
bool ReturnToMainMenu (GUIButton button, object obj)
 
void ResetModUpdateButton ()
 
void QuickStart (bool fixedSeed=false, Identifier sub=default, float difficulty=50, LevelGenerationParams levelGenerationParams=null)
 
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)
 
void DrawBackground (GraphicsDevice graphics, SpriteBatch spriteBatch)
 
override void Draw (double deltaTime, GraphicsDevice graphics, SpriteBatch spriteBatch)
 
- 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 UpdateInstanceTutorialButtons ()
 
- Static Public Member Functions inherited from Barotrauma.Screen
static void SelectNull ()
 

Static Public Attributes

static readonly Queue< ulong > WorkshopItemsToUpdate = new Queue<ulong>()
 

Additional Inherited Members

- 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 24 of file MainMenuScreen.cs.

Constructor & Destructor Documentation

◆ MainMenuScreen()

Barotrauma.MainMenuScreen.MainMenuScreen ( GameMain  game)

Definition at line 82 of file MainMenuScreen.cs.

Member Function Documentation

◆ AddToGUIUpdateList()

override void Barotrauma.MainMenuScreen.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 1033 of file MainMenuScreen.cs.

◆ Deselect()

override void Barotrauma.MainMenuScreen.Deselect ( )
virtual

Reimplemented from Barotrauma.Screen.

Definition at line 641 of file MainMenuScreen.cs.

◆ Draw()

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

Reimplemented from Barotrauma.Screen.

Definition at line 1155 of file MainMenuScreen.cs.

◆ DrawBackground()

void Barotrauma.MainMenuScreen.DrawBackground ( GraphicsDevice  graphics,
SpriteBatch  spriteBatch 
)

Definition at line 1113 of file MainMenuScreen.cs.

◆ QuickStart()

void Barotrauma.MainMenuScreen.QuickStart ( bool  fixedSeed = false,
Identifier  sub = default,
float  difficulty = 50,
LevelGenerationParams  levelGenerationParams = null 
)

Definition at line 820 of file MainMenuScreen.cs.

◆ ResetModUpdateButton()

void Barotrauma.MainMenuScreen.ResetModUpdateButton ( )

Definition at line 814 of file MainMenuScreen.cs.

◆ ReturnToMainMenu()

bool Barotrauma.MainMenuScreen.ReturnToMainMenu ( GUIButton  button,
object  obj 
)

Definition at line 784 of file MainMenuScreen.cs.

◆ Select()

override void Barotrauma.MainMenuScreen.Select ( )
virtual

Reimplemented from Barotrauma.Screen.

Definition at line 609 of file MainMenuScreen.cs.

◆ Update()

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

Reimplemented from Barotrauma.Screen.

Definition at line 1082 of file MainMenuScreen.cs.

◆ UpdateInstanceTutorialButtons()

static void Barotrauma.MainMenuScreen.UpdateInstanceTutorialButtons ( )
static

Definition at line 599 of file MainMenuScreen.cs.

Member Data Documentation

◆ WorkshopItemsToUpdate

readonly Queue<ulong> Barotrauma.MainMenuScreen.WorkshopItemsToUpdate = new Queue<ulong>()
static

Definition at line 73 of file MainMenuScreen.cs.