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

Inherits AWorkshopPublishInfoState< ResourcePack >.

Public Member Functions

 WorkshopPublishInfoStateForResourcePack (UIState stateToGoBackTo, ResourcePack resourcePack)
 
- Public Member Functions inherited from AWorkshopPublishInfoState< ResourcePack >
 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)
 

Protected Member Functions

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

Additional Inherited Members

- Protected Attributes inherited from AWorkshopPublishInfoState< ResourcePack >
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
 
- Properties inherited from AWorkshopPublishInfoState< ResourcePack >
UIState PreviousUIState [get, set]
 

Member Function Documentation

◆ GetPublishedObjectDisplayName()

override string WorkshopPublishInfoStateForResourcePack.GetPublishedObjectDisplayName ( )
protectedvirtual

◆ GetTagsToShow()

override List< WorkshopTagOption > WorkshopPublishInfoStateForResourcePack.GetTagsToShow ( )
protectedvirtual

◆ GoToPublishConfirmation()

override void WorkshopPublishInfoStateForResourcePack.GoToPublishConfirmation ( )
protectedvirtual

◆ TryFindingTags()

override bool WorkshopPublishInfoStateForResourcePack.TryFindingTags ( out FoundWorkshopEntryInfo  info)
protectedvirtual