Garry's Mod Wiki

UGCPublishWindow

Description

A window that is used to publish dupes and saves

image.png

Parent

Derives methods, etc not listed on this page from DFrame.

Implements

Implements or overrides the following hooks/methods. If you want to override these, you probably want to call the original function too.

Methods

UGCPublishWindow:CheckInput()
Checks if the Tags and Title are valid and if so it enables the publish button.
UGCPublishWindow:DisplayError( string err )
Displays the given error message.
UGCPublishWindow:DoPublish( string wsid, string err )
Publishes the Item or throws an error if the Title or Tags are invalid
UGCPublishWindow:FitContents()
Rezises the panel to nicely fit all children
string UGCPublishWindow:GetChosenTag()
Returns the name of the current selected tag.
UGCPublishWindow:OnPublishFinished( string wsid, string err )
Called when the Item was published or if any error occurred while publishing
UGCPublishWindow:Setup( ugcType, string file, string imageFile, WorkshopFileBase handler )
updated the Workshop items list.
UGCPublishWindow:UpdateWorkshopItems()
updated the Workshop items list.