TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ OnInitialize()

override void Terraria.ModLoader.UI.ModBrowser.UIModBrowser.OnInitialize ( )
inlinevirtual

Reimplemented from Terraria.UI.UIElement.

Definition at line 536 of file UIModBrowser.cs.

537 {
538 //IL_0098: Unknown result type (might be due to invalid IL or missing references)
539 //IL_009d: Unknown result type (might be due to invalid IL or missing references)
540 //IL_01d4: Unknown result type (might be due to invalid IL or missing references)
541 //IL_01d9: Unknown result type (might be due to invalid IL or missing references)
542 //IL_0261: Unknown result type (might be due to invalid IL or missing references)
543 //IL_0267: Unknown result type (might be due to invalid IL or missing references)
544 //IL_026a: Unknown result type (might be due to invalid IL or missing references)
545 //IL_0270: Unknown result type (might be due to invalid IL or missing references)
546 //IL_0273: Unknown result type (might be due to invalid IL or missing references)
547 //IL_0279: Unknown result type (might be due to invalid IL or missing references)
548 //IL_027c: Unknown result type (might be due to invalid IL or missing references)
549 //IL_0282: Unknown result type (might be due to invalid IL or missing references)
550 //IL_02f0: Unknown result type (might be due to invalid IL or missing references)
551 //IL_02f6: Unknown result type (might be due to invalid IL or missing references)
552 //IL_02f9: Unknown result type (might be due to invalid IL or missing references)
553 //IL_02ff: Unknown result type (might be due to invalid IL or missing references)
554 //IL_0302: Unknown result type (might be due to invalid IL or missing references)
555 //IL_0308: Unknown result type (might be due to invalid IL or missing references)
556 //IL_030b: Unknown result type (might be due to invalid IL or missing references)
557 //IL_0311: Unknown result type (might be due to invalid IL or missing references)
558 //IL_038e: Unknown result type (might be due to invalid IL or missing references)
559 //IL_0398: Unknown result type (might be due to invalid IL or missing references)
560 //IL_039d: Unknown result type (might be due to invalid IL or missing references)
561 //IL_03a2: Unknown result type (might be due to invalid IL or missing references)
562 //IL_03a7: Unknown result type (might be due to invalid IL or missing references)
563 //IL_03b1: Unknown result type (might be due to invalid IL or missing references)
564 //IL_03b8: Unknown result type (might be due to invalid IL or missing references)
565 //IL_03be: Unknown result type (might be due to invalid IL or missing references)
566 //IL_03c1: Unknown result type (might be due to invalid IL or missing references)
567 //IL_03c7: Unknown result type (might be due to invalid IL or missing references)
568 //IL_043f: Unknown result type (might be due to invalid IL or missing references)
569 //IL_0449: Unknown result type (might be due to invalid IL or missing references)
570 //IL_044e: Unknown result type (might be due to invalid IL or missing references)
571 //IL_0453: Unknown result type (might be due to invalid IL or missing references)
572 //IL_0458: Unknown result type (might be due to invalid IL or missing references)
573 //IL_0462: Unknown result type (might be due to invalid IL or missing references)
574 //IL_0469: Unknown result type (might be due to invalid IL or missing references)
575 //IL_046f: Unknown result type (might be due to invalid IL or missing references)
576 //IL_0472: Unknown result type (might be due to invalid IL or missing references)
577 //IL_0478: Unknown result type (might be due to invalid IL or missing references)
578 //IL_04f0: Unknown result type (might be due to invalid IL or missing references)
579 //IL_04fa: Unknown result type (might be due to invalid IL or missing references)
580 //IL_04ff: Unknown result type (might be due to invalid IL or missing references)
581 //IL_0504: Unknown result type (might be due to invalid IL or missing references)
582 //IL_0509: Unknown result type (might be due to invalid IL or missing references)
583 //IL_0513: Unknown result type (might be due to invalid IL or missing references)
584 //IL_051a: Unknown result type (might be due to invalid IL or missing references)
585 //IL_0520: Unknown result type (might be due to invalid IL or missing references)
586 //IL_0523: Unknown result type (might be due to invalid IL or missing references)
587 //IL_0529: Unknown result type (might be due to invalid IL or missing references)
589 {
590 Width =
591 {
592 Percent = 0.8f
593 },
594 MaxWidth = UICommon.MaxPanelWidth,
595 Top =
596 {
597 Pixels = 220f
598 },
599 Height =
600 {
601 Pixels = -220f,
602 Percent = 1f
603 },
604 HAlign = 0.5f
605 };
607 {
608 Width =
609 {
610 Percent = 1f
611 },
612 Height =
613 {
614 Pixels = -110f,
615 Percent = 1f
616 },
617 BackgroundColor = UICommon.MainPanelBackground,
618 PaddingTop = 0f
619 };
621 ModList = new UIAsyncList_ModDownloadItem
622 {
623 Width =
624 {
625 Pixels = -25f,
626 Percent = 1f
627 },
628 Height =
629 {
630 Pixels = -50f,
631 Percent = 1f
632 },
633 Top =
634 {
635 Pixels = 50f
636 },
637 ListPadding = 5f
638 };
640 {
641 Height =
642 {
643 Pixels = -50f,
644 Percent = 1f
645 },
646 Top =
647 {
648 Pixels = 50f
649 },
650 HAlign = 1f
651 }.WithView(100f, 1000f);
654 ModList.SetScrollbar(listScrollbar);
655 HeaderTextPanel = new UITextPanel<LocalizedText>(Language.GetText("tModLoader.MenuModBrowser"), 0.8f, large: true)
656 {
657 HAlign = 0.5f,
658 Top =
659 {
660 Pixels = -35f
661 },
662 BackgroundColor = UICommon.DefaultUIBlue
663 }.WithPadding(15f);
665 _reloadButton = new UITextPanel<LocalizedText>(Language.GetText("tModLoader.MBCancelLoading"))
666 {
667 Width =
668 {
669 Pixels = -10f,
670 Percent = 0.5f
671 },
672 Height =
673 {
674 Pixels = 25f
675 },
676 VAlign = 1f,
677 Top =
678 {
679 Pixels = -65f
680 }
681 }.WithFadedMouseOver();
683 {
684 Width =
685 {
686 Pixels = -10f,
687 Percent = 0.5f
688 },
689 Height =
690 {
691 Pixels = 25f
692 },
693 VAlign = 1f,
694 Top =
695 {
696 Pixels = -20f
697 }
698 }.WithFadedMouseOver();
699 _clearButton = new UITextPanel<string>(Language.GetTextValue("tModLoader.MBClearSpecialFilter", "??"))
700 {
701 Width =
702 {
703 Pixels = -10f,
704 Percent = 0.5f
705 },
706 Height =
707 {
708 Pixels = 25f
709 },
710 HAlign = 1f,
711 VAlign = 1f,
712 Top =
713 {
714 Pixels = -65f
715 },
716 BackgroundColor = Color.Purple * 0.7f
717 }.WithFadedMouseOver(Color.Purple, Color.Purple * 0.7f);
718 _updateAllButton = new UITextPanel<LocalizedText>(Language.GetText("tModLoader.MBUpdateAll"))
719 {
720 Width =
721 {
722 Pixels = -10f,
723 Percent = 0.5f
724 },
725 Height =
726 {
727 Pixels = 25f
728 },
729 HAlign = 1f,
730 VAlign = 1f,
731 Top =
732 {
733 Pixels = -20f
734 },
735 BackgroundColor = Color.Orange * 0.7f
736 }.WithFadedMouseOver(Color.Orange, Color.Orange * 0.7f);
737 _downloadAllButton = new UITextPanel<LocalizedText>(Language.GetText("tModLoader.MBDownloadAll"))
738 {
739 Width =
740 {
741 Pixels = -10f,
742 Percent = 0.5f
743 },
744 Height =
745 {
746 Pixels = 25f
747 },
748 HAlign = 1f,
749 VAlign = 1f,
750 Top =
751 {
752 Pixels = -20f
753 },
754 BackgroundColor = Color.Azure * 0.7f
755 }.WithFadedMouseOver(Color.Azure, Color.Azure * 0.7f);
756 NoModsFoundText = new UIText(Language.GetTextValue("tModLoader.MBNoModsFound"))
757 {
758 HAlign = 0.5f
759 }.WithPadding(15f);
760 FilterTextBox = new UIInputTextField(Language.GetTextValue("tModLoader.ModsTypeToSearch"))
761 {
762 Top =
763 {
764 Pixels = 5f
765 },
766 Left =
767 {
768 Pixels = -160f,
769 Percent = 1f
770 },
771 Width =
772 {
773 Pixels = 100f
774 },
775 Height =
776 {
777 Pixels = 20f
778 }
779 };
781 {
782 Width =
783 {
784 Percent = 1f
785 },
786 Height =
787 {
788 Pixels = 32f
789 },
790 Top =
791 {
792 Pixels = 10f
793 }
794 };
796 {
797 Top =
798 {
799 Percent = 0f
800 },
801 Left =
802 {
803 Pixels = -170f,
804 Percent = 1f
805 },
806 Width =
807 {
808 Pixels = 135f
809 },
810 Height =
811 {
812 Pixels = 40f
813 }
814 };
816 {
817 Left = new StyleDimension
818 {
819 Pixels = 8f
820 }
821 };
823 {
824 Left = new StyleDimension
825 {
826 Pixels = 44f
827 }
828 };
830 {
831 Left = new StyleDimension
832 {
833 Pixels = 545f
834 }
835 };
837 {
838 Left = new StyleDimension
839 {
840 Pixels = 80f
841 }
842 };
843 SearchFilterToggle.SetCurrentState(SearchFilter.Name);
844 UpdateFilterToggle.SetCurrentState(UpdateFilter.All);
845 ModSideFilterToggle.SetCurrentState(ModSideFilter.All);
846 SortModeFilterToggle.SetCurrentState(ModBrowserSortMode.RecentlyUpdated);
847 _browserStatus = new UIBrowserStatus
848 {
849 VAlign = 1f,
850 Top =
851 {
852 Pixels = -72f
853 },
854 Left =
855 {
856 Pixels = 545f
857 }
858 };
875 }
static LocalizedText GetText(string key)
Retrieves a LocalizedText object for a specified localization key. The actual text value can be retri...
Definition Language.cs:25
static string GetTextValue(string key)
Retrieves the text value for a specified localization key. The text returned will be for the currentl...
Definition Language.cs:35
Contains methods to access or retrieve localization values. The Localization Guideteaches more about ...
Definition Language.cs:12
UITextPanel< LocalizedText > _reloadButton
UITextPanel< LocalizedText > _downloadAllButton
UIBrowserFilterToggle< ModSideFilter > ModSideFilterToggle
UITextPanel< LocalizedText > _updateAllButton
readonly List< UICycleImage > CategoryButtons
UIBrowserFilterToggle< UpdateFilter > UpdateFilterToggle
UITextPanel< LocalizedText > _backButton
UITextPanel< LocalizedText > HeaderTextPanel
UIBrowserFilterToggle< SearchFilter > SearchFilterToggle
UIBrowserFilterToggle< ModBrowserSortMode > SortModeFilterToggle
StyleDimension Height
Definition UIElement.cs:29
StyleDimension MaxWidth
Definition UIElement.cs:31
void Append(UIElement element)
Definition UIElement.cs:194
StyleDimension Left
Definition UIElement.cs:25
StyleDimension Width
Definition UIElement.cs:27
StyleDimension Top
Definition UIElement.cs:23

References Terraria.ModLoader.UI.ModBrowser.UIModBrowser._backButton, Terraria.ModLoader.UI.ModBrowser.UIModBrowser._backgroundElement, Terraria.ModLoader.UI.ModBrowser.UIModBrowser._browserStatus, Terraria.ModLoader.UI.ModBrowser.UIModBrowser._clearButton, Terraria.ModLoader.UI.ModBrowser.UIModBrowser._downloadAllButton, Terraria.ModLoader.UI.ModBrowser.UIModBrowser._filterTextBoxBackground, Terraria.ModLoader.UI.ModBrowser.UIModBrowser._reloadButton, Terraria.ModLoader.UI.ModBrowser.UIModBrowser._rootElement, Terraria.ModLoader.UI.ModBrowser.UIModBrowser._updateAllButton, Terraria.ModLoader.UI.ModBrowser.UIModBrowser._upperMenuContainer, Terraria.UI.UIElement.Append(), Terraria.ModLoader.UI.ModBrowser.UIModBrowser.CategoryButtons, Terraria.ModLoader.UI.ModBrowser.UIModBrowser.FilterTextBox, Terraria.Localization.Language.GetText(), Terraria.Localization.Language.GetTextValue(), Terraria.UI.UIElement.HAlign, Terraria.ModLoader.UI.ModBrowser.UIModBrowser.HeaderTextPanel, Terraria.UI.UIElement.Height, Terraria.ModLoader.UI.ModBrowser.UIModBrowser.InitializeInteractions(), Terraria.UI.UIElement.Left, Terraria.ModLoader.UI.UICommon.MainPanelBackground, Terraria.ModLoader.UI.UICommon.MaxPanelWidth, Terraria.UI.UIElement.MaxWidth, Terraria.ModLoader.UI.ModBrowser.UIModBrowser.ModList, Terraria.ModLoader.UI.ModBrowser.UIModBrowser.ModSideFilterToggle, Terraria.ModLoader.UI.ModBrowser.UIModBrowser.NoModsFoundText, Terraria.UI.UIElement.PaddingTop, Terraria.ModLoader.UI.ModBrowser.UIModBrowser.SearchFilterToggle, Terraria.ModLoader.UI.ModBrowser.UIBrowserFilterToggle< T >.SetCurrentState(), Terraria.ModLoader.UI.ModBrowser.UIModBrowser.SortModeFilterToggle, Terraria.UI.UIElement.Top, Terraria.ModLoader.UI.ModBrowser.UIModBrowser.UpdateFilterToggle, Terraria.UI.UIElement.VAlign, and Terraria.UI.UIElement.Width.

+ Here is the call graph for this function: