34 _worldIcon.VAlign = 0.5f;
39 _publishButton.HAlign = 1f;
40 _publishButton.VAlign = 1f;
75 if (listeningElement == evt.
Target)
85 return _orderInList.CompareTo(uIWorkshopPublishWorldListItem._orderInList);
87 return base.CompareTo(obj);
104 Utils.
DrawSplicedPanel(spriteBatch,
_innerPanelTexture.
Value, (
int)position.
X, (
int)position.
Y, (
int)width, (
int)height, 10, 10, 10, 10,
Color.
White);
109 base.DrawSelf(spriteBatch);
112 float num = dimensions.X + dimensions.
Width;
120 DrawPanel(spriteBatch, vector, num3, height);
121 string expertText =
"";
127 float x2 = num3 * 0.5f - x * 0.5f;
128 float num4 = height * 0.5f - y * 0.5f;
130 vector.X += num3 + 5f;
136 DrawPanel(spriteBatch, vector, num5, height);
139 float x3 = vector3.
X;
140 float y2 = vector3.
Y;
141 float x4 = num5 * 0.5f - x3 * 0.5f;
142 float num6 = height * 0.5f - y2 * 0.5f;
144 vector.X += num5 + 5f;
static Asset< DynamicSpriteFont > MouseText
static Asset< Texture2D >[] Extra
void GetDifficulty(out string expertText, out Color gameModeColor)
UIElement GetIconElement()
void SetColorsToHovered()
Asset< Texture2D > _innerPanelTexture
UIWorkshopPublishWorldListItem(UIState ownerState, WorldFileData data, int orderInList)
override void DrawSelf(SpriteBatch spriteBatch)
void PublishButtonClick_ImportWorldToLocalFiles(UIMouseEvent evt, UIElement listeningElement)
override void MouseOut(UIMouseEvent evt)
override void MouseOver(UIMouseEvent evt)
Asset< Texture2D > _workshopIconTexture
void DrawPanel(SpriteBatch spriteBatch, Vector2 position, float width, float height)
override int CompareTo(object obj)
void InitializeAppearance()
void SetColorsToNotHovered()
string GetWorldName(bool allowCropping=false)
static GameCulture FromCultureName(CultureName name)
static LocalizedText GetText(string key)
static string GetTextValue(string key)
static UserInterface MenuUI
static IAssetRepository Assets
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)
void Set(float pixels, float precent)