Barotrauma Client Doc
Barotrauma.CampaignSetupUI Class Referenceabstract
Inheritance diagram for Barotrauma.CampaignSetupUI:
Barotrauma.MultiPlayerCampaignSetupUI Barotrauma.SinglePlayerCampaignSetupUI

Classes

struct  CampaignSettingElements
 
struct  SettingValue
 

Public Member Functions

 CampaignSetupUI (GUIComponent newGameContainer, GUIComponent loadGameContainer)
 
abstract void CreateLoadMenu (IEnumerable< CampaignMode.SaveInfo > saveFiles=null)
 

Public Attributes

Action< SubmarineInfo, string, string, CampaignSettings > StartNewGame
 
Action< string > LoadGame
 

Protected Types

enum class  CategoryFilter { All = 0 , Vanilla = 1 , Custom = 2 }
 

Protected Member Functions

GUIComponent CreateSaveElement (CampaignMode.SaveInfo saveInfo)
 
void SortSaveList ()
 
bool DeleteSave (GUIButton button, object obj)
 

Static Protected Member Functions

static CampaignSettingElements CreateCampaignSettingList (GUIComponent parent, CampaignSettings prevSettings, bool isSinglePlayer)
 

Protected Attributes

readonly GUIComponent newGameContainer
 
GUIListBox saveList
 
GUITextBox saveNameBox
 
GUIButton loadGameButton
 
CategoryFilter subFilter = CategoryFilter.All
 
List< CampaignMode.SaveInfo > prevSaveFiles
 

Properties

GUIButton StartButton [get, protected set]
 
GUITextBlock InitialMoneyText [get, protected set]
 
GUIButton CampaignCustomizeButton [get, set]
 
GUIMessageBox CampaignCustomizeSettings [get, set]
 

Detailed Description

Definition at line 13 of file CampaignSetupUI.cs.

Member Enumeration Documentation

◆ CategoryFilter

Enumerator
All 
Vanilla 
Custom 

Definition at line 26 of file CampaignSetupUI.cs.

Constructor & Destructor Documentation

◆ CampaignSetupUI()

Barotrauma.CampaignSetupUI.CampaignSetupUI ( GUIComponent  newGameContainer,
GUIComponent  loadGameContainer 
)

Definition at line 44 of file CampaignSetupUI.cs.

Member Function Documentation

◆ CreateCampaignSettingList()

static CampaignSettingElements Barotrauma.CampaignSetupUI.CreateCampaignSettingList ( GUIComponent  parent,
CampaignSettings  prevSettings,
bool  isSinglePlayer 
)
staticprotected

Definition at line 185 of file CampaignSetupUI.cs.

◆ CreateLoadMenu()

abstract void Barotrauma.CampaignSetupUI.CreateLoadMenu ( IEnumerable< CampaignMode.SaveInfo >  saveFiles = null)
pure virtual

◆ CreateSaveElement()

GUIComponent Barotrauma.CampaignSetupUI.CreateSaveElement ( CampaignMode.SaveInfo  saveInfo)
protected

Definition at line 51 of file CampaignSetupUI.cs.

◆ DeleteSave()

bool Barotrauma.CampaignSetupUI.DeleteSave ( GUIButton  button,
object  obj 
)
protected

Definition at line 426 of file CampaignSetupUI.cs.

◆ SortSaveList()

void Barotrauma.CampaignSetupUI.SortSaveList ( )
protected

Definition at line 104 of file CampaignSetupUI.cs.

Member Data Documentation

◆ LoadGame

Action<string> Barotrauma.CampaignSetupUI.LoadGame

Definition at line 24 of file CampaignSetupUI.cs.

◆ loadGameButton

GUIButton Barotrauma.CampaignSetupUI.loadGameButton
protected

Definition at line 21 of file CampaignSetupUI.cs.

◆ newGameContainer

readonly GUIComponent Barotrauma.CampaignSetupUI.newGameContainer
protected

Definition at line 15 of file CampaignSetupUI.cs.

◆ prevSaveFiles

List<CampaignMode.SaveInfo> Barotrauma.CampaignSetupUI.prevSaveFiles
protected

Definition at line 50 of file CampaignSetupUI.cs.

◆ saveList

GUIListBox Barotrauma.CampaignSetupUI.saveList
protected

Definition at line 17 of file CampaignSetupUI.cs.

◆ saveNameBox

GUITextBox Barotrauma.CampaignSetupUI.saveNameBox
protected

Definition at line 19 of file CampaignSetupUI.cs.

◆ StartNewGame

Action<SubmarineInfo, string, string, CampaignSettings> Barotrauma.CampaignSetupUI.StartNewGame

Definition at line 23 of file CampaignSetupUI.cs.

◆ subFilter

CategoryFilter Barotrauma.CampaignSetupUI.subFilter = CategoryFilter.All
protected

Definition at line 27 of file CampaignSetupUI.cs.

Property Documentation

◆ CampaignCustomizeButton

GUIButton Barotrauma.CampaignSetupUI.CampaignCustomizeButton
getset

Definition at line 41 of file CampaignSetupUI.cs.

◆ CampaignCustomizeSettings

GUIMessageBox Barotrauma.CampaignSetupUI.CampaignCustomizeSettings
getset

Definition at line 42 of file CampaignSetupUI.cs.

◆ InitialMoneyText

GUITextBlock Barotrauma.CampaignSetupUI.InitialMoneyText
getprotected set

Definition at line 35 of file CampaignSetupUI.cs.

◆ StartButton

GUIButton Barotrauma.CampaignSetupUI.StartButton
getprotected set

Definition at line 29 of file CampaignSetupUI.cs.