80 int num3 = 50 + num + 10;
86 uIElement.HAlign = 0.5f;
90 uIPanel.BackgroundColor =
new Color(33, 43, 79) * 0.8f;
157 AllowResizingDimensions =
false
187 if (
info.tags !=
null)
214 float num2 = 0f + num;
216 groupOptionButton.HAlign = 0.5f;
217 groupOptionButton.VAlign = 0f;
222 groupOptionButton.ShowHighlightWhenSelected =
false;
242 uIText.PaddingLeft = 20f;
243 uIText.PaddingRight = 20f;
244 uIText.PaddingTop = 4f;
245 uIText.IsWrapped =
true;
273 Platform.Get<
IPathService>().OpenURL(
"https://steamcommunity.com/sharedfiles/workshoplegalagreement");
322 Color = Color.White * 0.7f
336 uIList.ListPadding = 5f;
365 WorkshopItemPublicSettingId.Private
385 string[]
array5 =
new string[3] {
"Images/UI/Workshop/PublicityPublic",
"Images/UI/Workshop/PublicityFriendsOnly",
"Images/UI/Workshop/PublicityPrivate" };
388 for (
int i = 0; i <
array6.Length; i++)
392 groupOptionButton.HAlign = (float)i / (
float)(array6.Length - 1);
419 groupOptionButton.ShowHighlightWhenSelected =
false;
424 groupOptionButton.HAlign = (float)
num6 / (
float)(num - 1);
451 uISlicedImage.Color = Color.White * 0.7f;
469 uIText.PaddingLeft = 20f;
470 uIText.PaddingRight = 20f;
471 uIText.PaddingTop = 6f;
472 uIText.IsWrapped =
false;
533 uISlicedImage.HAlign = 0.5f;
534 uISlicedImage.VAlign = 0f;
540 uISlicedImage.Color = Color.LightGray * 0.7f;
549 uIText.PaddingLeft = 20f;
550 uIText.PaddingRight = 20f;
551 uIText.PaddingTop = 6f;
552 uIText.IsWrapped =
true;
570 uISlicedImage.Color = Color.LightGray * 0.7f;
579 uIText.PaddingLeft = 4f;
580 uIText.PaddingRight = 4f;
581 uIText.PaddingTop = 4f;
582 uIText.IsWrapped =
true;
632 uITextPanel.VAlign = 1f;
634 uITextPanel.HAlign = 1f;
648 uITextPanel.VAlign = 1f;
650 uITextPanel.HAlign = 0f;
679 select x.OptionValue).ToArray(),
704 char[]
anyOf =
new char[2]
707 Path.AltDirectorySeparatorChar
714 if (
path.Length > 30)
716 path =
path.Substring(0, 30) +
"…";
771 base.Draw(spriteBatch);
777 UILinkPointNavigator.Shortcuts.BackButtonCommand = 7;
790 if (!(name ==
"disclaimer"))
807 if (
array.Length != 0)
static Texture2D FromStream(GraphicsDevice graphicsDevice, Stream stream, int width, int height, [MarshalAs(UnmanagedType.U1)] bool zoom)
override void Dispose([MarshalAs(UnmanagedType.U1)] bool P_0)
bool ICollection< KeyValuePair< TKey, TValue > >. Contains(KeyValuePair< TKey, TValue > keyValuePair)
void Add(TKey key, TValue value)
static FileStream OpenRead(string path)
static readonly char DirectorySeparatorChar
static double Ceiling(double a)
static void PlaySound(int type, Vector2 position, int style=1)
void SetContents(string name)
void SetImage(Asset< Texture2D > texture)
void SetText(string text)
GroupOptionButton< WorkshopItemPublicSettingId >[] _publicityOptions
UIElement AddHorizontalSeparator(UIElement Container, float accumualtedHeight, int widthReduction=0)
void Click_SetPreviewImage(UIMouseEvent evt, UIElement listeningElement)
void ClearOptionDescription(UIMouseEvent evt, UIElement listeningElement)
override void OnInitialize()
UIElement _uiListContainer
void OpenFileDialogueToSelectPreviewImage()
bool _isScrollbarAttached
void steamDisclaimerText_OnMouseOver(UIMouseEvent evt, UIElement listeningElement)
override void Draw(SpriteBatch spriteBatch)
void AddDescriptionPanel(UIElement container, float height, string tagGroup)
void FadedMouseOver(UIMouseEvent evt, UIElement listeningElement)
UIList AddUIList(UIElement container, float antiHeight)
void UpdateImagePreview()
bool TryFindingTags(out FoundWorkshopEntryInfo info)
UIElement _steamDisclaimerButton
UIElement CreateInsturctionsPanel(float accumulatedHeight, float height, string tagGroup)
void SetupGamepadPoints(SpriteBatch spriteBatch)
Asset< Texture2D > _defaultPreviewImageTexture
string PrettifyPath(string path)
void ShowOptionDescription(UIMouseEvent evt, UIElement listeningElement)
void AddBackButton(int backButtonYLift, UIElement outerContainer)
UICharacterNameButton _previewImagePathPlate
UIElement CreateSteamDisclaimer(string tagGroup)
void ManualIfnoSortingMethod(List< UIElement > list)
UIElement CreateTagOptionsPanel(float accumulatedHeight, int heightPerRow, string tagGroup)
UIImage _previewImageUIElement
void FadedMouseOut(UIMouseEvent evt, UIElement listeningElement)
void SetTagsFromFoundEntry()
WorkshopItemPublicSettingId _optionPublicity
void ClickPublicityOption(UIMouseEvent evt, UIElement listeningElement)
void CreateStylizedCategoryPanel(float height, string titleTextKey, out UIElement entirePanel, out UIElement innerPanel)
void AddPublishButton(int backButtonYLift, UIElement outerContainer)
void ClickTagOption(UIMouseEvent evt, UIElement listeningElement)
void steamDisclaimerText_OnClick(UIMouseEvent evt, UIElement listeningElement)
UIElement CreatePreviewImageSelectionPanel(string tagGroup)
List< WorkshopTagOption > GetTagsToShow()
string _publishedObjectNameDescriptorTexKey
AWorkshopPublishInfoState(UIState stateToGoBackTo, TPublishedObjectType dataObject)
List< GroupOptionButton< WorkshopTagOption > > _tagOptions
WorkshopItemPublishSettings GetPublishSettings()
Texture2D _previewImageTransientTexture
void HandleBackButtonUsage()
void FillUIList(UIList uiList)
void GoToPublishConfirmation()
TPublishedObjectType _dataObject
void Click_GoBack(UIMouseEvent evt, UIElement listeningElement)
string GetPublishedObjectDisplayName()
override void Recalculate()
string _instructionsTextKey
void Click_Publish(UIMouseEvent evt, UIElement listeningElement)
UIElement CreatePublicSettingsRow(float accumulatedHeight, float height, string tagGroup)
void steamDisclaimerText_OnMouseOut(UIMouseEvent evt, UIElement listeningElement)
static readonly Color FancyUIFatButtonMouseOver
static readonly Color InventoryDefaultColor
static LocalizedText GetText(string key)
static string GetTextValueWith(string key, object obj)
static UserInterface MenuUI
static IAssetRepository Assets
static GraphicsDeviceManager graphics
static Terraria.Social.Base.WorkshopSocialModule Workshop
static void ShowFailedToLoadAssetError(Exception exception, string filePath)
static Dictionary< int, UILinkPoint > Points
bool IgnoresMouseInteraction
void Append(UIElement element)
void RemoveChild(UIElement child)
virtual List< SnapPoint > GetSnapPoints()
static string OpenFilePanel(string title, string extension)
WorkshopItemPublicSettingId
static Color Lerp(Color value1, Color value2, float amount)
UILinkPoint TryMakeLinkPoint(ref int id, SnapPoint snap)
void RemovePointsOutOfView(List< SnapPoint > pts, UIElement containerPanel, SpriteBatch spriteBatch)
UILinkPoint[,] CreateUILinkPointGrid(ref int currentID, List< SnapPoint > pointsForGrid, int pointsPerLine, UILinkPoint topLinkPoint, UILinkPoint leftLinkPoint, UILinkPoint rightLinkPoint, UILinkPoint bottomLinkPoint)
void PairLeftRight(UILinkPoint leftSide, UILinkPoint rightSide)
void LinkHorizontalStripUpSideToSingle(UILinkPoint[] strip, UILinkPoint theSingle)
UILinkPoint[] CreateUILinkStripHorizontal(ref int currentID, List< SnapPoint > currentStrip)
void PairUpDown(UILinkPoint upSide, UILinkPoint downSide)
UILinkPoint GetLinkPoint(int id, UIElement element)
void LinkHorizontalStripBottomSideToSingle(UILinkPoint[] strip, UILinkPoint theSingle)
void MoveToVisuallyClosestPoint(List< UILinkPoint > lostrefpoints)
static StyleDimension FromPixels(float pixels)
void Set(float pixels, float precent)
static StyleDimension FromPercent(float percent)
static StyleDimension FromPixelsAndPercent(float pixels, float percent)