Example #1
0
        public override void Start()
        {
            _Instance = this;

            m_Grid = mDMono.transform.GetComponentEx <UIGrid>();

            if (m_Grid.arrangement == UIGrid.Arrangement.Horizontal)
            {
                m_Column = (int)FilterSetting.Size.x;
                m_Row    = (int)FilterSetting.Size.y;
            }
            else
            {
                m_Row    = (int)FilterSetting.Size.x;
                m_Column = (int)FilterSetting.Size.y;
            }
            InitFilterSettings();
            InitSelectionHandling();
            SortingComparison = SortingComparisonHandler.Comparison;
        }
Example #2
0
        public override void Awake()
        {
            base.Awake();

            var t = mDMono.transform;

            m_OwnerList        = t.parent.parent.GetMonoILRComponentByClassPath <UIInventoryBagLogic>("Hotfix_LT.UI.UIInventoryBagLogic");
            m_Icon             = t.GetComponent <DynamicUISprite>("IMG");
            m_LevelBorder      = t.GetComponent <UISprite>("IMG/LvlBorder");
            m_FrameBG          = t.GetComponent <UISprite>("IMG/LvlBorder/FrameBG");
            m_EquipSuitIcon    = t.GetComponent <DynamicUISprite>("EquipSuitIcon");
            m_EquipLevelBG     = t.GetComponent <UISprite>("EquipLevel/Sprite");
            m_EquipLevel       = t.GetComponent <UILabel>("EquipLevel");
            m_EuqipLevelShadow = t.GetComponent <UILabel>("EquipLevel/LabelShadow");
            m_Count            = t.GetComponent <UILabel>("Label");
            m_Flag             = t.FindEx("Flag").gameObject;
            m_boxGradeNumLab   = t.GetComponent <UILabel>("BoxGradeNum");
            RedPoint           = t.FindEx("RedPoint").gameObject;
            Border             = t.FindEx("Sprite").gameObject;
        }
Example #3
0
 public override void OnDestroy()
 {
     _Instance = null;
 }