76 uIElement.SetSnapPoint(
"ToggleToOn", num);
129 Height = StyleDimension.Fill
134 groupOptionButton.ShowHighlightWhenSelected =
false;
144 groupOptionButton.OnMouseOver +=
delegate
151 groupOptionButton.OnLeftClick +=
delegate
158 groupOptionButton.OnLeftClick +=
delegate
186 groupOptionButton.ShowHighlightWhenSelected =
false;
196 groupOptionButton.OnMouseOver +=
delegate
200 groupOptionButton.OnLeftClick +=
delegate
225 resourcePack.SortingOrder = num + 1;
234 int num2 =
Utils.Clamp(num + offset, 0, list.Count - 1);
238 list[num].SortingOrder = list[
num2].SortingOrder;
258 uIResourcePackInfoButton.OnMouseOver +=
delegate
262 uIResourcePackInfoButton.OnLeftClick +=
Click_Info;
286 item.SortingOrder = num++;
299 uIElement.HAlign = 0.5f;
305 BackgroundColor =
new Color(33, 43, 79) * 0.8f,
360 Left = new StyleDimension(25f, 0f),
361 Width = new StyleDimension(-25f, 0.5f),
363 Top = new StyleDimension(10f, 0f)
368 Left = new StyleDimension(-25f, 0f),
369 Width = new StyleDimension(-25f, 0.5f),
371 Top = new StyleDimension(10f, 0f)
378 BackgroundColor =
new Color(73, 94, 171)
430 Amount = _availablePacksList.Count
434 Amount = _enabledPacksList.Count
543 base.Draw(spriteBatch);
549 UILinkPointNavigator.Shortcuts.BackButtonCommand = 7;
569 if (!(name ==
"GoBack"))
571 if (name ==
"OpenFolder")
static void PlaySound(int type, Vector2 position, int style=1)
void UseResourcePacks(ResourcePackList resourcePacks)
virtual void Add(UIElement item)
override List< SnapPoint > GetSnapPoints()
void SetScrollbar(UIScrollbar scrollbar)
void SetText(string text)
static readonly Color FancyUIFatButtonMouseOver
IEnumerable< ResourcePack > DisabledPacks
IEnumerable< ResourcePack > EnabledPacks
static void GetResourcePacksFolderPathAndConfirmItExists(out JArray resourcePackJson, out string resourcePackFolder)
static LocalizedText GetText(string key)
static string GetTextValue(string key)
static UserInterface MenuUI
static IAssetRepository Assets
static bool SaveSettings()
bool IgnoresMouseInteraction
void Append(UIElement element)
virtual List< SnapPoint > GetSnapPoints()
static void OpenFolder(string folderPath)
static Color PaleVioletRed
void LinkVerticalStrips(UILinkPoint[] stripOnLeft, UILinkPoint[] stripOnRight, int leftStripStartOffset)
void CullPointsOutOfElementArea(SpriteBatch spriteBatch, List< SnapPoint > pointsAtMiddle, UIElement container)
void PairLeftRight(UILinkPoint leftSide, UILinkPoint rightSide)
void LinkVerticalStripBottomSideToSingle(UILinkPoint[] strip, UILinkPoint theSingle)
UILinkPoint MakeLinkPointFromSnapPoint(int id, SnapPoint snap)
UILinkPoint[] GetVerticalStripFromCategoryName(ref int currentID, List< SnapPoint > pts, string categoryName)
void MoveToVisuallyClosestPoint(List< UILinkPoint > lostrefpoints)
static StyleDimension Fill
static StyleDimension FromPercent(float percent)
static StyleDimension FromPixelsAndPercent(float pixels, float percent)