tModLoader v2024.10
A mod to make and play Terraria mods
WorkshopPublishInfoStateForMods Class Reference

Inherits AWorkshopPublishInfoState< TmodFile >.

Public Member Functions

 WorkshopPublishInfoStateForMods (UIState stateToGoBackTo, TmodFile modFile, NameValueCollection buildData)
 
override void OnInitialize ()
 
- Public Member Functions inherited from AWorkshopPublishInfoState< TmodFile >
 AWorkshopPublishInfoState (UIState stateToGoBackTo, TPublishedObjectType dataObject)
 
void ClearOptionDescription (UIMouseEvent evt, UIElement listeningElement)
 
override void Draw (SpriteBatch spriteBatch)
 
void HandleBackButtonUsage ()
 
override void OnInitialize ()
 Called before the first time this element is activated (see OnActivate). Use this method to create and append other UIElement to this to build a UI.
 
override void Recalculate ()
 
void ShowOptionDescription (UIMouseEvent evt, UIElement listeningElement)
 

Static Public Attributes

const string TmlRules = "https://forums.terraria.org/index.php?threads/player-created-game-enhancements-rules-guidelines.286/"
 

Protected Member Functions

override string GetPublishedObjectDisplayName ()
 
override List< WorkshopTagOptionGetTagsToShow ()
 
override void GoToPublishConfirmation ()
 
override bool TryFindingTags (out FoundWorkshopEntryInfo info)
 
override void UpdateImagePreview ()
 
- Protected Member Functions inherited from AWorkshopPublishInfoState< TmodFile >
abstract string GetPublishedObjectDisplayName ()
 
WorkshopItemPublishSettings GetPublishSettings ()
 
abstract List< WorkshopTagOptionGetTagsToShow ()
 
abstract void GoToPublishConfirmation ()
 
abstract bool TryFindingTags (out FoundWorkshopEntryInfo info)
 
virtual void UpdateImagePreview ()
 

Protected Attributes

UIText imageWarningText
 
- Protected Attributes inherited from AWorkshopPublishInfoState< TmodFile >
TPublishedObjectType _dataObject
 
UIText _disclaimerText
 
string _instructionsTextKey
 
string _previewImagePath
 
UICharacterNameButton _previewImagePathPlate
 
Texture2D _previewImageTransientTexture
 
UIImage _previewImageUIElement
 
UIState _previousUIState
 
string _publishedObjectNameDescriptorTexKey
 
List< GroupOptionButton< WorkshopTagOption > > _tagOptions
 
UIElement _tMLDisclaimerButton
 
UIText _tMLDisclaimerText
 

Additional Inherited Members

- Properties inherited from AWorkshopPublishInfoState< TmodFile >
UIState PreviousUIState [get, set]
 

Member Function Documentation

◆ GetPublishedObjectDisplayName()

override string WorkshopPublishInfoStateForMods.GetPublishedObjectDisplayName ( )
protectedvirtual

◆ GetTagsToShow()

override List< WorkshopTagOption > WorkshopPublishInfoStateForMods.GetTagsToShow ( )
protectedvirtual

◆ GoToPublishConfirmation()

override void WorkshopPublishInfoStateForMods.GoToPublishConfirmation ( )
protectedvirtual

◆ TryFindingTags()

override bool WorkshopPublishInfoStateForMods.TryFindingTags ( out FoundWorkshopEntryInfo  info)
protectedvirtual

◆ UpdateImagePreview()

override void WorkshopPublishInfoStateForMods.UpdateImagePreview ( )
protectedvirtual