Barotrauma Client Doc
Barotrauma.Steam.MutableWorkshopMenu Class Reference
Inheritance diagram for Barotrauma.Steam.MutableWorkshopMenu:
Barotrauma.Steam.WorkshopMenu Barotrauma.Steam.WorkshopMenu Barotrauma.Steam.WorkshopMenu Barotrauma.Steam.WorkshopMenu Barotrauma.Steam.WorkshopMenu

Public Types

enum class  Tab { InstalledMods , PopularMods , Publish }
 

Public Member Functions

void PopulateInstalledModLists (bool forceRefreshEnabled=false, bool refreshDisabled=true)
 
 MutableWorkshopMenu (GUIFrame parent)
 
void SelectTab (Tab tab)
 
void Apply ()
 
- Public Member Functions inherited from Barotrauma.Steam.WorkshopMenu
 WorkshopMenu (GUIFrame parent)
 

Protected Member Functions

override void UpdateModListItemVisibility ()
 
- Protected Member Functions inherited from Barotrauma.Steam.WorkshopMenu
GUIComponent CreateActionCarrier (GUIComponent parent, Identifier id, Action action)
 
GUITextBox CreateSearchBox (RectTransform searchRectT)
 
bool ModNameMatches (ContentPackage p, string query)
 

Properties

bool ViewingItemDetails [get]
 
Tab CurrentTab [get]
 

Additional Inherited Members

- Static Protected Member Functions inherited from Barotrauma.Steam.WorkshopMenu
static void CreateBBCodeElement (Steamworks.Ugc.Item workshopItem, GUIListBox container)
 
static RectTransform NewItemRectT (GUILayoutGroup parent, float heightScale=1.0f)
 
static void Spacer (GUILayoutGroup parent, float height=0.03f)
 
static GUITextBlock Label (GUILayoutGroup parent, LocalizedString str, GUIFont font, float heightScale=1.0f)
 
static GUITextBox ScrollableTextBox (GUILayoutGroup parent, float heightScale, string text)
 
static GUIDropDown DropdownEnum< T > (GUILayoutGroup parent, Func< T, LocalizedString > textFunc, T currentValue, Action< T > setter)
 
static GUIDropDown Dropdown< T > (GUILayoutGroup parent, Func< T, LocalizedString > textFunc, IReadOnlyList< T > values, T currentValue, Action< T > setter, float heightScale=1.0f)
 
static void SwapDropdownValues< T > (GUIDropDown dropdown, Func< T, LocalizedString > textFunc, IReadOnlyList< T > values, T currentValue, Action< T > setter)
 
static int Round (float v)
 
static string Percentage (float v)
 
static void CreateModErrorInfo (ContentPackage mod, GUIComponent uiElement, GUITextBlock nameText)
 
- Static Protected Attributes inherited from Barotrauma.Steam.WorkshopMenu
static readonly Regex bbTagRegex
 

Detailed Description

Definition at line 12 of file InstalledTab.cs.

Member Enumeration Documentation

◆ Tab

Enumerator
InstalledMods 
PopularMods 
Publish 

Definition at line 12 of file MutableWorkshopMenu.cs.

Constructor & Destructor Documentation

◆ MutableWorkshopMenu()

Barotrauma.Steam.MutableWorkshopMenu.MutableWorkshopMenu ( GUIFrame  parent)

Definition at line 44 of file MutableWorkshopMenu.cs.

Member Function Documentation

◆ Apply()

void Barotrauma.Steam.MutableWorkshopMenu.Apply ( )

Definition at line 161 of file MutableWorkshopMenu.cs.

◆ PopulateInstalledModLists()

void Barotrauma.Steam.MutableWorkshopMenu.PopulateInstalledModLists ( bool  forceRefreshEnabled = false,
bool  refreshDisabled = true 
)

Definition at line 533 of file InstalledTab.cs.

◆ SelectTab()

void Barotrauma.Steam.MutableWorkshopMenu.SelectTab ( Tab  tab)

Definition at line 92 of file MutableWorkshopMenu.cs.

◆ UpdateModListItemVisibility()

override void Barotrauma.Steam.MutableWorkshopMenu.UpdateModListItemVisibility ( )
protectedvirtual

Implements Barotrauma.Steam.WorkshopMenu.

Definition at line 476 of file InstalledTab.cs.

Property Documentation

◆ CurrentTab

Tab Barotrauma.Steam.MutableWorkshopMenu.CurrentTab
get

Definition at line 29 of file MutableWorkshopMenu.cs.

◆ ViewingItemDetails

bool Barotrauma.Steam.MutableWorkshopMenu.ViewingItemDetails
get

Definition at line 16 of file InstalledTab.cs.