Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
UIBestiaryTest.cs
Go to the documentation of this file.
2using System.Linq;
11using Terraria.ID;
13using Terraria.UI;
15
17
18public class UIBestiaryTest : UIState
19{
21
23
25
27
29
31
33
35
37
39
41
43
45
47
49
50 private string _searchString;
51
53
55
57
58 private bool _didClickSomething;
59
60 private bool _didClickSearchBar;
61
71
72 public void OnOpenPage()
73 {
75 }
76
77 private void BuildPage()
78 {
80 int num = Utils.ToInt(value: true) * 100;
82 uIElement.Width.Set(0f, 0.875f);
83 uIElement.MaxWidth.Set(800f + (float)num, 0f);
84 uIElement.MinWidth.Set(600f + (float)num, 0f);
85 uIElement.Top.Set(220f, 0f);
86 uIElement.Height.Set(-220f, 1f);
87 uIElement.HAlign = 0.5f;
90 UIPanel uIPanel = new UIPanel();
91 uIPanel.Width.Set(0f, 1f);
92 uIPanel.Height.Set(-90f, 1f);
93 uIPanel.BackgroundColor = new Color(33, 43, 79) * 0.8f;
94 uIElement.Append(uIPanel);
95 uIPanel.PaddingTop -= 4f;
96 uIPanel.PaddingBottom -= 4f;
97 int num2 = 24;
99 {
100 Width = new StyleDimension(0f, 1f),
101 Height = new StyleDimension(num2, 0f),
102 VAlign = 0f
103 };
104 uIElement2.SetPadding(0f);
105 uIPanel.Append(uIElement2);
107 {
108 Height = new StyleDimension(12f, 1f),
109 HAlign = 1f
110 };
113 int num3 = 20;
115 {
116 Width = new StyleDimension(0f, 1f),
117 Height = new StyleDimension(-num2 - 6 - num3, 1f),
118 VAlign = 1f,
119 Top = new StyleDimension(-num3, 0f)
120 };
121 uIElement3.SetPadding(0f);
122 uIPanel.Append(uIElement3);
124 {
125 Width = new StyleDimension(0f, 1f),
126 Height = new StyleDimension(20f, 0f),
127 VAlign = 1f
128 };
129 uIPanel.Append(uIElement4);
130 uIElement4.SetPadding(0f);
133 {
134 Width = new StyleDimension(-12f - uIBestiaryEntryInfoPage.Width.Pixels, 1f),
135 Height = new StyleDimension(-4f, 1f),
136 VAlign = 1f
137 };
138 uIElement3.Append(uIElement5);
139 uIElement5.SetPadding(0f);
144 _entryGrid.OnGridContentsChanged += UpdateBestiaryGridRange;
149 _sortingGrid.OnLeftClick += Click_CloseSortingGrid;
150 _sortingGrid.OnClickingOption += UpdateBestiaryContents;
152 _filteringGrid.OnLeftClick += Click_CloseFilteringGrid;
153 _filteringGrid.OnClickingOption += UpdateBestiaryContents;
155 _searchBar.SetContents(null, forced: true);
157 }
158
159 private void FillProgressBottomBar(UIElement container)
160 {
161 UIText progressPercentText = new UIText("", 0.8f)
162 {
163 HAlign = 0f,
164 VAlign = 1f,
165 TextOriginX = 0f,
166 TextOriginY = 0f
167 };
170 {
171 Width = new StyleDimension(0f, 1f),
172 Height = new StyleDimension(15f, 0f),
173 VAlign = 1f,
174 FilledColor = new Color(51, 137, 255),
175 EmptyColor = new Color(35, 43, 81),
176 FillPercent = 0f
177 };
178 uIColoredSliderSimple.OnUpdate += ShowStats_Completion;
180 container.Append(uIColoredSliderSimple);
181 }
182
183 private void ShowStats_Completion(UIElement element)
184 {
185 if (element.IsMouseHovering)
186 {
188 Main.instance.MouseText(completionPercentText, 0, 0);
189 }
190 }
191
193 {
195 return Language.GetTextValueWith("BestiaryInfo.PercentCollected", new
196 {
197 Percent = percent
198 });
199 }
200
201 private float GetProgressPercent()
202 {
204 }
205
206 private void EmptyInteraction(float input)
207 {
208 }
209
210 private void EmptyInteraction2()
211 {
212 }
213
215 {
217 {
218 return new Color(51, 137, 255);
219 }
220 return new Color(35, 40, 83);
221 }
222
224 {
225 UIImageButton uIImageButton = new UIImageButton(Main.Assets.Request<Texture2D>("Images/UI/Bestiary/Button_Back", (AssetRequestMode)1));
226 uIImageButton.SetHoverImage(Main.Assets.Request<Texture2D>("Images/UI/Bestiary/Button_Border", (AssetRequestMode)1));
227 uIImageButton.SetVisibility(1f, 1f);
228 uIImageButton.SetSnapPoint("BackPage", 0);
231 UIImageButton uIImageButton2 = new UIImageButton(Main.Assets.Request<Texture2D>("Images/UI/Bestiary/Button_Forward", (AssetRequestMode)1))
232 {
233 Left = new StyleDimension(uIImageButton.Width.Pixels + 1f, 0f)
234 };
235 uIImageButton2.SetHoverImage(Main.Assets.Request<Texture2D>("Images/UI/Bestiary/Button_Border", (AssetRequestMode)1));
236 uIImageButton2.SetVisibility(1f, 1f);
237 uIImageButton2.SetSnapPoint("NextPage", 0);
241 {
242 Left = new StyleDimension(uIImageButton.Width.Pixels + 1f + uIImageButton2.Width.Pixels + 3f, 0f),
243 Width = new StyleDimension(135f, 0f),
244 Height = new StyleDimension(0f, 1f),
245 VAlign = 0.5f
246 };
247 uIPanel.BackgroundColor = new Color(35, 40, 83);
248 uIPanel.BorderColor = new Color(35, 40, 83);
249 uIPanel.SetPadding(0f);
251 UIText uIText = new UIText("9000-9999 (9001)", 0.8f)
252 {
253 HAlign = 0.5f,
254 VAlign = 0.5f
255 };
256 uIPanel.Append(uIText);
258 }
259
261 {
262 int num = 17;
263 UIImageButton uIImageButton = new UIImageButton(Main.Assets.Request<Texture2D>("Images/UI/Bestiary/Button_Filtering", (AssetRequestMode)1))
264 {
265 Left = new StyleDimension(0f - infoSpace.Width.Pixels - (float)num, 0f),
266 HAlign = 1f
267 };
268 uIImageButton.SetHoverImage(Main.Assets.Request<Texture2D>("Images/UI/Bestiary/Button_Wide_Border", (AssetRequestMode)1));
269 uIImageButton.SetVisibility(1f, 1f);
270 uIImageButton.SetSnapPoint("FilterButton", 0);
271 uIImageButton.OnLeftClick += OpenOrCloseFilteringGrid;
273 UIText uIText = new UIText("", 0.8f)
274 {
275 Left = new StyleDimension(34f, 0f),
276 Top = new StyleDimension(2f, 0f),
277 VAlign = 0.5f,
278 TextOriginX = 0f,
279 TextOriginY = 0f
280 };
281 uIImageButton.Append(uIText);
283 UIImageButton uIImageButton2 = new UIImageButton(Main.Assets.Request<Texture2D>("Images/UI/Bestiary/Button_Sorting", (AssetRequestMode)1))
284 {
285 Left = new StyleDimension(0f - infoSpace.Width.Pixels - uIImageButton.Width.Pixels - 3f - (float)num, 0f),
286 HAlign = 1f
287 };
288 uIImageButton2.SetHoverImage(Main.Assets.Request<Texture2D>("Images/UI/Bestiary/Button_Wide_Border", (AssetRequestMode)1));
289 uIImageButton2.SetVisibility(1f, 1f);
290 uIImageButton2.SetSnapPoint("SortButton", 0);
291 uIImageButton2.OnLeftClick += OpenOrCloseSortingOptions;
293 UIText uIText2 = new UIText("", 0.8f)
294 {
295 Left = new StyleDimension(34f, 0f),
296 Top = new StyleDimension(2f, 0f),
297 VAlign = 0.5f,
298 TextOriginX = 0f,
299 TextOriginY = 0f
300 };
301 uIImageButton2.Append(uIText2);
303 }
304
306 {
307 UIImageButton uIImageButton = new UIImageButton(Main.Assets.Request<Texture2D>("Images/UI/Bestiary/Button_Search", (AssetRequestMode)1))
308 {
309 Left = new StyleDimension(0f - infoSpace.Width.Pixels, 1f),
310 VAlign = 0.5f
311 };
312 uIImageButton.OnLeftClick += Click_SearchArea;
313 uIImageButton.SetHoverImage(Main.Assets.Request<Texture2D>("Images/UI/Bestiary/Button_Search_Border", (AssetRequestMode)1));
314 uIImageButton.SetVisibility(1f, 1f);
315 uIImageButton.SetSnapPoint("SearchButton", 0);
318 {
319 Left = new StyleDimension(0f - infoSpace.Width.Pixels + uIImageButton.Width.Pixels + 3f, 1f),
320 Width = new StyleDimension(infoSpace.Width.Pixels - uIImageButton.Width.Pixels - 3f, 0f),
321 Height = new StyleDimension(0f, 1f),
322 VAlign = 0.5f
323 });
324 uIPanel.BackgroundColor = new Color(35, 40, 83);
325 uIPanel.BorderColor = new Color(35, 40, 83);
326 uIPanel.SetPadding(0f);
328 UISearchBar uISearchBar = (_searchBar = new UISearchBar(Language.GetText("UI.PlayerNameSlot"), 0.8f)
329 {
330 Width = new StyleDimension(0f, 1f),
331 Height = new StyleDimension(0f, 1f),
332 HAlign = 0f,
333 VAlign = 0.5f,
334 Left = new StyleDimension(0f, 0f),
336 });
337 uIPanel.OnLeftClick += Click_SearchArea;
338 uISearchBar.OnContentsChanged += OnSearchContentsChanged;
339 uIPanel.Append(uISearchBar);
340 uISearchBar.OnStartTakingInput += OnStartTakingInput;
341 uISearchBar.OnEndTakingInput += OnEndTakingInput;
342 uISearchBar.OnNeedingVirtualKeyboard += OpenVirtualKeyboardWhenNeeded;
343 UIImageButton uIImageButton2 = new UIImageButton(Main.Assets.Request<Texture2D>("Images/UI/SearchCancel", (AssetRequestMode)1))
344 {
345 HAlign = 1f,
346 VAlign = 0.5f,
347 Left = new StyleDimension(-2f, 0f)
348 };
349 uIImageButton2.OnMouseOver += searchCancelButton_OnMouseOver;
350 uIImageButton2.OnLeftClick += searchCancelButton_OnClick;
351 uIPanel.Append(uIImageButton2);
352 }
353
355 {
357 {
358 _searchBar.SetContents(null, forced: true);
360 }
361 else
362 {
364 }
365 }
366
371
379
380 private void OnFinishedSettingName(string name)
381 {
382 string contents = name.Trim();
383 _searchBar.SetContents(contents);
384 GoBackHere();
385 }
386
387 private void GoBackHere()
388 {
389 UserInterface.ActiveInstance.SetState(this);
391 }
392
393 private void OnStartTakingInput()
394 {
395 _searchBoxPanel.BorderColor = Main.OurFavoriteColor;
396 }
397
398 private void OnEndTakingInput()
399 {
400 _searchBoxPanel.BorderColor = new Color(35, 40, 83);
401 }
402
403 private void OnSearchContentsChanged(string contents)
404 {
405 _searchString = contents;
406 _filterer.SetSearchFilter(contents);
408 }
409
411 {
412 if (evt.Target.Parent != _searchBoxPanel)
413 {
415 _didClickSearchBar = true;
416 }
417 }
418
419 public override void LeftClick(UIMouseEvent evt)
420 {
421 base.LeftClick(evt);
423 }
424
425 public override void RightClick(UIMouseEvent evt)
426 {
427 base.RightClick(evt);
429 }
430
435
436 public override void Update(GameTime gameTime)
437 {
438 base.Update(gameTime);
440 {
442 }
443 _didClickSomething = false;
444 _didClickSearchBar = false;
445 }
446
452
453 private void SortEntries()
454 {
456 {
457 foreach (IBestiaryInfoElement item in workingSetEntry.Info)
458 {
460 {
461 updateBeforeSorting.UpdateBeforeSorting();
462 }
463 }
464 }
466 }
467
469 {
470 if (_entryGrid != null && _entryGrid.Parent != null)
471 {
475 }
476 }
477
482
483 public override void Recalculate()
484 {
485 base.Recalculate();
487 }
488
490 {
492 maxEntriesWidth = rectangle.Width / 72;
493 maxEntriesHeight = rectangle.Height / 72;
494 int num = 0;
496 }
497
499 {
501 {
504 VAlign = 1f,
505 HAlign = 0.5f,
507 };
508 uITextPanel.OnMouseOver += FadedMouseOver;
509 uITextPanel.OnMouseOut += FadedMouseOut;
510 uITextPanel.OnLeftMouseDown += Click_GoBack;
511 uITextPanel.SetSnapPoint("ExitButton", 0);
513 }
514
516 {
518 if (Main.gameMenu)
519 {
520 Main.menuMode = 0;
521 }
522 else
523 {
525 }
526 }
527
539
551
553 {
554 if (evt.Target == _filteringGrid)
555 {
557 }
558 }
559
565
579
581 {
582 if (evt.Target == _sortingGrid)
583 {
585 }
586 }
587
593
595 {
597 ((UIPanel)evt.Target).BackgroundColor = new Color(73, 94, 171);
598 ((UIPanel)evt.Target).BorderColor = Colors.FancyUIFatButtonMouseOver;
599 }
600
602 {
603 ((UIPanel)evt.Target).BackgroundColor = new Color(63, 82, 151) * 0.8f;
604 ((UIPanel)evt.Target).BorderColor = Color.Black;
605 }
606
615
617 {
621 {
622 BestiaryProgressReport = _progressReport
623 });
624 }
625
630
632 {
633 float num = 0f;
634 int num2 = 0;
636 for (int i = 0; i < originalEntriesList.Count; i++)
637 {
638 int num3 = ((originalEntriesList[i].UIInfoProvider.GetEntryUICollectionInfo().UnlockState > BestiaryEntryUnlockState.NotKnownAtAll_0) ? 1 : 0);
639 num2++;
640 num += (float)num3;
641 }
643 result.EntriesTotal = num2;
644 result.CompletionAmountTotal = num;
645 return result;
646 }
647
648 public override void Draw(SpriteBatch spriteBatch)
649 {
650 base.Draw(spriteBatch);
651 SetupGamepadPoints(spriteBatch);
652 }
653
654 private void SetupGamepadPoints(SpriteBatch spriteBatch)
655 {
656 UILinkPointNavigator.Shortcuts.BackButtonCommand = 1;
657 int num = 3000;
658 int currentID = num;
660 SnapPoint snap = null;
661 SnapPoint snap2 = null;
662 SnapPoint snap3 = null;
663 SnapPoint snap4 = null;
664 SnapPoint snap5 = null;
665 SnapPoint snap6 = null;
666 for (int i = 0; i < snapPoints.Count; i++)
667 {
669 switch (snapPoint.Name)
670 {
671 case "BackPage":
672 snap = snapPoint;
673 break;
674 case "NextPage":
676 break;
677 case "ExitButton":
679 break;
680 case "FilterButton":
682 break;
683 case "SortButton":
685 break;
686 case "SearchButton":
688 break;
689 }
690 }
701 uILinkPoint3.Up = uILinkPoint2.ID;
702 UILinkPoint[,] gridPoints = new UILinkPoint[1, 1];
703 int gridWidth;
704 int gridHeight;
705 if (_filteringGrid.Parent != null)
706 {
710 for (int num2 = gridWidth - 1; num2 >= 0; num2--)
711 {
713 if (uILinkPoint6 != null)
714 {
716 }
718 if (uILinkPoint7 != null && uILinkPoint6 == null)
719 {
721 }
723 if (uILinkPoint8 != null)
724 {
725 if (num2 < gridWidth - 3)
726 {
728 }
729 else
730 {
732 }
733 }
734 }
735 }
736 else if (_sortingGrid.Parent != null)
737 {
741 for (int num3 = gridWidth - 1; num3 >= 0; num3--)
742 {
744 if (uILinkPoint9 != null)
745 {
747 }
749 if (uILinkPoint10 != null)
750 {
753 }
754 }
755 }
756 else if (_entryGrid.Parent != null)
757 {
759 for (int j = 0; j < gridWidth; j++)
760 {
761 if (gridHeight - 1 >= 0)
762 {
764 if (uILinkPoint11 != null)
765 {
767 }
768 if (gridHeight - 2 >= 0)
769 {
771 if (uILinkPoint12 != null && uILinkPoint11 == null)
772 {
774 }
775 }
776 }
778 if (uILinkPoint13 != null)
779 {
780 if (j < gridWidth / 2)
781 {
783 }
784 else if (j == gridWidth - 1)
785 {
787 }
788 else
789 {
791 }
792 }
793 }
795 if (uILinkPoint14 != null)
796 {
799 }
800 else
801 {
806 }
807 }
809 for (int k = num; k < currentID; k++)
810 {
811 list.Add(UILinkPointNavigator.Points[k]);
812 }
814 {
816 }
817 }
818
836
838 {
842 for (int i = 0; i < orderedPointsByCategoryName.Count; i++)
843 {
844 int num = i % gridWidth;
845 int num2 = i / gridWidth;
847 }
848 for (int j = 0; j < gridWidth; j++)
849 {
850 for (int k = 0; k < gridHeight; k++)
851 {
853 if (j < gridWidth - 1)
854 {
856 if (uILinkPoint != null && uILinkPoint2 != null)
857 {
859 }
860 }
861 if (k < gridHeight - 1)
862 {
864 if (uILinkPoint != null && uILinkPoint3 != null)
865 {
867 }
868 }
869 }
870 }
871 }
872
874 {
878 for (int i = 0; i < orderedPointsByCategoryName.Count; i++)
879 {
880 int num = i % gridWidth;
881 int num2 = i / gridWidth;
883 }
884 for (int j = 0; j < gridWidth; j++)
885 {
886 for (int k = 0; k < gridHeight; k++)
887 {
889 if (j < gridWidth - 1)
890 {
892 if (uILinkPoint != null && uILinkPoint2 != null)
893 {
895 }
896 }
897 if (k < gridHeight - 1)
898 {
900 if (uILinkPoint != null && uILinkPoint3 != null)
901 {
903 }
904 }
905 }
906 }
907 }
908
910 {
914 for (int i = 0; i < orderedPointsByCategoryName.Count; i++)
915 {
916 int num = i % gridWidth;
917 int num2 = i / gridWidth;
919 }
920 for (int j = 0; j < gridWidth; j++)
921 {
922 for (int k = 0; k < gridHeight; k++)
923 {
925 if (j < gridWidth - 1)
926 {
928 if (uILinkPoint != null && uILinkPoint2 != null)
929 {
931 }
932 }
933 if (k < gridHeight - 1)
934 {
936 if (uILinkPoint != null && uILinkPoint3 != null)
937 {
939 }
940 }
941 }
942 }
943 }
944
946 {
947 return (from x in pts
948 where x.Name == name
949 orderby x.Id
950 select x).ToList();
951 }
952
954 {
955 leftSide.Right = rightSide.ID;
956 rightSide.Left = leftSide.ID;
957 }
958
960 {
961 upSide.Down = downSide.ID;
962 downSide.Up = upSide.ID;
963 }
964
972
973 public override void ScrollWheel(UIScrollWheelEvent evt)
974 {
975 base.ScrollWheel(evt);
976 _infoSpace.UpdateScrollbar(evt.ScrollWheelValue);
977 }
978
979 public void TryMovingPages(int direction)
980 {
982 }
983}
void AddRange(IEnumerable< T > collection)
Definition List.cs:275
static void PlaySound(int type, Vector2 position, int style=1)
void SetSearchFilter(string searchFilter)
void AddFilters(List< U > filters)
void AddSortSteps(List< TStepType > sortSteps)
void GetEntriesToShow(out int maxEntriesWidth, out int maxEntriesHeight, out int maxEntriesToHave)
void MakeButtonGoByOffset(UIElement element, int howManyPages)
void FillInfoForEntry(BestiaryEntry entry, ExtraBestiaryInfoPageInformation extraInfo)
void GetEntriesToShow(out int maxEntriesWidth, out int maxEntriesHeight, out int maxEntriesToHave)
void GetEntriesToShow(out int maxEntriesWidth, out int maxEntriesHeight, out int maxEntriesToHave)
void SetContents(string contents, bool forced=false)
void FadedMouseOver(UIMouseEvent evt, UIElement listeningElement)
void searchCancelButton_OnClick(UIMouseEvent evt, UIElement listeningElement)
void SetupPointsForSortingGrid(ref int currentID, List< SnapPoint > pts, out int gridWidth, out int gridHeight, out UILinkPoint[,] gridPoints)
EntryFilterer< BestiaryEntry, IBestiaryEntryFilter > _filterer
override void ScrollWheel(UIScrollWheelEvent evt)
void searchCancelButton_OnMouseOver(UIMouseEvent evt, UIElement listeningElement)
void Click_SelectEntryButton(UIMouseEvent evt, UIElement listeningElement)
EntrySorter< BestiaryEntry, IBestiarySortStep > _sorter
void Click_SearchArea(UIMouseEvent evt, UIElement listeningElement)
void AddBackAndForwardButtons(UIElement innerTopContainer)
void GetEntriesToShow(out int maxEntriesWidth, out int maxEntriesHeight, out int maxEntriesToHave)
void AddSortAndFilterButtons(UIElement innerTopContainer, UIBestiaryEntryInfoPage infoSpace)
static List< SnapPoint > GetOrderedPointsByCategoryName(List< SnapPoint > pts, string name)
void SetupPointsForEntryGrid(ref int currentID, List< SnapPoint > pts, out int gridWidth, out int gridHeight, out UILinkPoint[,] gridPoints)
void SetupGamepadPoints(SpriteBatch spriteBatch)
override void RightClick(UIMouseEvent evt)
override void Update(GameTime gameTime)
BestiaryUnlockProgressReport _progressReport
void SelectEntryButton(UIBestiaryEntryButton button)
void Click_CloseSortingGrid(UIMouseEvent evt, UIElement listeningElement)
void AddSearchBar(UIElement innerTopContainer, UIBestiaryEntryInfoPage infoSpace)
override void Draw(SpriteBatch spriteBatch)
UIBestiaryFilteringOptionsGrid _filteringGrid
BestiaryUnlockProgressReport GetUnlockProgress()
void MoveToVisuallyClosestPoint(List< UILinkPoint > lostrefpoints)
UIBestiarySortingOptionsGrid _sortingGrid
void Click_CloseFilteringGrid(UIMouseEvent evt, UIElement listeningElement)
void Click_GoBack(UIMouseEvent evt, UIElement listeningElement)
void PairUpDown(UILinkPoint upSide, UILinkPoint downSide)
void OpenOrCloseSortingOptions(UIMouseEvent evt, UIElement listeningElement)
override void LeftClick(UIMouseEvent evt)
void PairLeftRight(UILinkPoint leftSide, UILinkPoint rightSide)
UILinkPoint MakeLinkPointFromSnapPoint(int id, SnapPoint snap)
void FadedMouseOut(UIMouseEvent evt, UIElement listeningElement)
void MakeExitButton(UIElement outerContainer)
void SetupPointsForFilterGrid(ref int currentID, List< SnapPoint > pts, out int gridWidth, out int gridHeight, out UILinkPoint[,] gridPoints)
void OpenOrCloseFilteringGrid(UIMouseEvent evt, UIElement listeningElement)
static readonly Color FancyUIFatButtonMouseOver
Definition Colors.cs:91
static LocalizedText GetText(string key)
Definition Language.cs:10
static string GetTextValueWith(string key, object obj)
Definition Language.cs:40
static Main instance
Definition Main.cs:283
static Vector2 MouseScreen
Definition Main.cs:2773
static Microsoft.Xna.Framework.Color OurFavoriteColor
Definition Main.cs:902
static IAssetRepository Assets
Definition Main.cs:209
static bool gameMenu
Definition Main.cs:1926
static Dictionary< int, UILinkPoint > Points
static void SetPosition(int ID, Vector2 Position)
StyleDimension Height
Definition UIElement.cs:29
void Append(UIElement element)
Definition UIElement.cs:166
StyleDimension Left
Definition UIElement.cs:25
StyleDimension Width
Definition UIElement.cs:27
CalculatedStyle GetDimensions()
Definition UIElement.cs:382
void RemoveChild(UIElement child)
Definition UIElement.cs:182
virtual List< SnapPoint > GetSnapPoints()
Definition UIElement.cs:267
StyleDimension Top
Definition UIElement.cs:23
static UserInterface ActiveInstance
static int ToInt(this bool value)
Definition Utils.cs:1425
static string PrettifyPercentDisplay(float percent, string originalFormat)
Definition Utils.cs:717
static float Distance(Vector2 value1, Vector2 value2)
Definition Vector2.cs:91
static StyleDimension FromPixels(float pixels)
static StyleDimension FromPixelsAndPercent(float pixels, float percent)