64 AllowResizingDimensions =
false,
74 uIElement.
Append(element2);
79 _publishButton.HAlign = 1f;
80 _publishButton.VAlign = 1f;
143 Main.menuMode = 1000001;
165 return _orderInList.CompareTo(uIWorkshopPublishResourcePackListItem._orderInList);
167 return base.CompareTo(obj);
184 Utils.
DrawSplicedPanel(spriteBatch,
_innerPanelTexture.
Value, (
int)position.
X, (
int)position.
Y, (
int)width, (
int)height, 10, 10, 10, 10,
Color.
White);
189 base.DrawSelf(spriteBatch);
192 float num = dimensions.X + dimensions.
Width;
199 DrawPanel(spriteBatch, vector, num3, height);
205 float x2 = num3 * 0.5f - x * 0.5f;
206 float num4 = height * 0.5f - y * 0.5f;
208 vector.X += num3 + 5f;
210 DrawPanel(spriteBatch, vector, num5, height);
214 float x3 = vector3.
X;
215 float y2 = vector3.
Y;
216 float x4 = num5 * 0.5f - x3 * 0.5f;
217 float num6 = height * 0.5f - y2 * 0.5f;
219 vector.X += num5 + 5f;
static void PlaySound(int type, Vector2 position, int style=1)
static Asset< DynamicSpriteFont > MouseText
static Asset< Texture2D >[] Extra
bool TryMovingToRejectionMenuIfNeeded()
override void MouseOut(UIMouseEvent evt)
void DrawPanel(SpriteBatch spriteBatch, Vector2 position, float width, float height)
Asset< Texture2D > _innerPanelTexture
const int ICON_BORDER_PADDING
void SetColorsToNotHovered()
void RejectionMenuExitAction()
void InitializeAppearance()
void PublishButtonClick_ImportResourcePackToLocalFiles(UIMouseEvent evt, UIElement listeningElement)
void SetColorsToHovered()
override void MouseOver(UIMouseEvent evt)
Asset< Texture2D > _workshopIconTexture
Asset< Texture2D > _dividerTexture
UIWorkshopPublishResourcePackListItem(UIState ownerState, ResourcePack data, int orderInList, bool canBePublished)
override void DrawSelf(SpriteBatch spriteBatch)
Asset< Texture2D > _iconBorderTexture
override int CompareTo(object obj)
ResourcePackVersion Version
static LocalizedText GetText(string key)
static string GetTextValue(string key)
static UserInterface MenuUI
static IAssetRepository Assets
bool IgnoresMouseInteraction
void Append(UIElement element)
CalculatedStyle GetInnerDimensions()
void SetSnapPoint(string name, int id, Vector2? anchor=null, Vector2? offset=null)
CalculatedStyle GetDimensions()
void SetPadding(float pixels)
readonly UIElement Target
static void DrawSplicedPanel(SpriteBatch sb, Texture2D texture, int x, int y, int w, int h, int leftEnd, int rightEnd, int topEnd, int bottomEnd, Color c)
static Vector2 DrawBorderString(SpriteBatch sb, string text, Vector2 pos, Color color, float scale=1f, float anchorx=0f, float anchory=0f, int maxCharactersDisplayed=-1)
static Color Lerp(Color value1, Color value2, float amount)
string GetFormattedVersion()
void Set(float pixels, float precent)