Beispiel #1
0
 private void Awake()
 {
     scrollViewPanel = gameObject.GetComponent <UIPanel>();
     draggablePanel  = gameObject.GetComponent <UIScrollView>();
     populator       = gameObject.GetComponent <RecycleListPopulator>();
     startPosY       = scrollViewPanel.transform.localPosition.y;
 }
 private void Start()
 {
     if (ID == -1)
     {
         ID = gameObject.transform.GetSiblingIndex();
     }
     listItem      = gameObject.GetComponent <RecycleListItem>();
     scrollView    = ScrollPanel.GetComponent <UIScrollView>();
     listPopulator = ScrollPanel.GetComponent <RecycleListPopulator>();
     itemHeight    = gameObject.GetComponent <UIWidget>().height;
 }
Beispiel #3
0
        public GOSubPanel(GameObject obj)
            : base(obj)
        {
            Panel                = obj.GetExactComponent <UIPanel>();
            ScrollView           = obj.GetExactComponent <UIScrollView>();
            Rigidbody            = obj.GetExactComponent <Rigidbody>();
            SnapDragScrollView   = obj.GetExactComponent <SnapDragScrollView>();
            RecycleListPopulator = obj.GetExactComponent <RecycleListPopulator>();

            Table = new GOTable <GOBase>(obj.GetChild(0));
        }
Beispiel #4
0
    private void Awake()
    {
        FadingComponent = ScreenFadeGameObject.GetComponent <HonoFading>();
        UIEventListener uiEventListener1 = UIEventListener.Get(UseSubMenu);

        uiEventListener1.Click += onClick;

        UIEventListener uiEventListener2 = UIEventListener.Get(ArrangeSubMenu);

        uiEventListener2.Click += onClick;

        UIEventListener uiEventListener3 = UIEventListener.Get(KeySubMenu);

        uiEventListener3.Click += onClick;

        foreach (Component component in TargetListPanel.GetChild(0).transform)
        {
            GameObject go = component.gameObject;

            UIEventListener uiEventListener4 = UIEventListener.Get(go);
            uiEventListener4.Click += onClick;

            _targetHudList.Add(new CharacterDetailHUD(go, true));
            if (FF9StateSystem.MobilePlatform)
            {
                go.GetComponent <ButtonGroupState>().Help.TextKey = "TargetHelpMobile";
            }
        }

        //this._importantItemHitArea = KeyItemDetailPanel.GetChild(0);
        _keyItemDetailName        = KeyItemDetailPanel.GetChild(1).GetComponent <UILabel>();
        _keyItemDetailDescription = KeyItemDetailPanel.GetChild(2).GetComponent <UILabel>();
        _keyItemDetailDescription.PrintIconAfterProcessedText = true;
        _defaultSkinLabelSpacingY = _keyItemDetailDescription.spacingY;
        _itemScrollList           = ItemListPanel.GetChild(1).GetComponent <RecycleListPopulator>();
        _keyItemScrollList        = KeyItemListPanel.GetChild(1).GetComponent <RecycleListPopulator>();

        RemoveLeftAnchorFromItemNumberLabels();

        UIEventListener uiEventListener5 = UIEventListener.Get(ArrangeDialog.GetChild(0).GetChild(0));

        uiEventListener5.Click += onClick;

        UIEventListener uiEventListener6 = UIEventListener.Get(ArrangeDialog.GetChild(0).GetChild(1));

        uiEventListener6.Click += onClick;

        _targetTransition      = TransitionGroup.GetChild(0).GetComponent <HonoTweenPosition>();
        _keyItemSkinTransition = TransitionGroup.GetChild(1).GetComponent <HonoTweenPosition>();
        _arrangeTransition     = TransitionGroup.GetChild(2).GetComponent <HonoTweenClipping>();
    }