Example #1
0
    public override void SetComponent()
    {
        this.m_BackImage          = (base.GetControl("DrawTexture_ADImg01") as DrawTexture);
        this.m_TicketList         = (base.GetControl("Listbox_TicketList") as NewListBox);
        this.m_TicketList.Reserve = false;
        this.m_btPrimiumMall      = (base.GetControl("Button_premium") as Button);
        this.m_btPrimiumMall.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickPrimiumMall));
        this.m_HelpButton = (base.GetControl("Help_Button") as Button);
        this.m_HelpButton.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickHelp));
        base.SetScreenCenter();
        NrMyCharInfo myCharInfo = NrTSingleton <NkCharManager> .Instance.GetMyCharInfo();

        ITEMMALL_POPUPSHOP atbToIDX = NrTSingleton <ItemMallPoPupShopManager> .Instance.GetAtbToIDX(ItemMallPoPupShopManager.ePoPupShop_Type.RecruitOpen);

        if (atbToIDX != null)
        {
            GS_ITEMSHOP_ITEMPOPUP_INFO_REQ gS_ITEMSHOP_ITEMPOPUP_INFO_REQ = new GS_ITEMSHOP_ITEMPOPUP_INFO_REQ();
            gS_ITEMSHOP_ITEMPOPUP_INFO_REQ.i64PersonID = myCharInfo.m_PersonID;
            gS_ITEMSHOP_ITEMPOPUP_INFO_REQ.i64Idx      = (long)atbToIDX.m_Idx;
            gS_ITEMSHOP_ITEMPOPUP_INFO_REQ.i32ATB      = 3;
            SendPacket.GetInstance().SendObject(2536, gS_ITEMSHOP_ITEMPOPUP_INFO_REQ);
        }
        NrTSingleton <FiveRocksEventManager> .Instance.Placement("user_card");

        NrTSingleton <FiveRocksEventManager> .Instance.Placement("solrecruitdlg_open");

        NrTSingleton <NkClientLogic> .Instance.SetCanOpenTicket(true);
    }
Example #2
0
    public override void SetComponent()
    {
        float num;

        if (NrTSingleton <UIDataManager> .Instance.ScaleMode)
        {
            num = GUICamera.height + GUICamera.height * 0.8f;
            base.SetSize(base.GetSize().x, num);
        }
        else
        {
            num = GUICamera.height;
            base.SetSize(base.GetSize().x, num);
        }
        this.bookmarkList               = (base.GetControl("ListBox_ListBox0") as ListBox);
        this.bookmarkList.AutoListBox   = false;
        this.bookmarkList.Reserve       = false;
        this.bookmarkList.viewableArea  = new Vector2(this.bookmarkList.GetSize().x, num);
        this.bookmarkList.UseColumnRect = true;
        this.bookmarkList.ColumnNum     = 5;
        this.bookmarkList.itemSpacing   = 28f;
        this.bookmarkList.SetColumnRect(0, new Rect(2f, 0f, 104f, 104f));
        this.bookmarkList.SetColumnRect(1, new Rect(0f, 85f, 108f, 28f), SpriteText.Anchor_Pos.Middle_Center, 22f);
        this.bookmarkList.SetColumnRect(2, new Rect(0f, 0f, 50f, 50f));
        this.bookmarkList.SetColumnRect(3, new Rect(0f, 0f, 50f, 50f), SpriteText.Anchor_Pos.Middle_Center, 28f);
        this.bookmarkList.SetColumnRect(4, new Rect(2f, 0f, 104f, 104f));
        this.bookmarkList.AddSliderDelegate();
        this.bookmarkList.SetLocation(0, 0);
        this.mapFun.Add(BookmarkDlg.TYPE.HERO, new FunDelegate(this.ClickHeroCollect));
        this.mapFun.Add(BookmarkDlg.TYPE.ADVENTURE, new FunDelegate(this.ClickAdventureCollect));
        this.mapFun.Add(BookmarkDlg.TYPE.BATTLE, new FunDelegate(this.ClickBattleCollect));
        this.mapFun.Add(BookmarkDlg.TYPE.NEWGUILD, new FunDelegate(this.ClickNewGuild));
        this.mapFun.Add(BookmarkDlg.TYPE.INVEN, new FunDelegate(this.ClickInven));
        this.mapFun.Add(BookmarkDlg.TYPE.COMMUNITY, new FunDelegate(this.ClickCommunity));
        this.mapFun.Add(BookmarkDlg.TYPE.HEROBATTLE, new FunDelegate(this.ClickHeroBattle));
        this.mapFun.Add(BookmarkDlg.TYPE.EXPLORATION, new FunDelegate(this.ClickExploration));
        this.SetBookmarkInfo();
        this.upButton = (base.GetControl("SlideGuideBTN01") as Button);
        this.upButton.SetLocation(this.upButton.GetLocation().x, this.upButton.GetLocationY(), this.upButton.GetLocation().z - 1.1f);
        this.downButton = (base.GetControl("SlideGuideBTN02") as Button);
        BoxCollider boxCollider = (BoxCollider)this.upButton.gameObject.GetComponent(typeof(BoxCollider));

        if (boxCollider != null)
        {
            boxCollider.size = new Vector3(0f, 0f, 0f);
        }
        boxCollider = (BoxCollider)this.downButton.gameObject.GetComponent(typeof(BoxCollider));
        if (boxCollider != null)
        {
            boxCollider.size = new Vector3(0f, 0f, 0f);
        }
        this.up = (base.GetControl("SlideGuideBG01") as DrawTexture);
        this.up.SetLocation(this.up.GetLocation().x, this.up.GetLocationY(), this.up.GetLocation().z - 1f);
        this.down = (base.GetControl("SlideGuideBG02") as DrawTexture);
        this.down.SetLocation(this.down.GetLocation().x, num - this.down.GetSize().y, this.down.GetLocation().z - 1f);
        this.downButton.SetLocation(this.downButton.GetLocation().x, this.down.GetLocationY() + 18f, this.downButton.GetLocation().z - 1.1f);
        this.upButton.Visible   = false;
        this.up.Visible         = false;
        this.downButton.Visible = false;
        this.down.Visible       = false;
        this.hideBG             = (base.GetControl("DT_HideBG") as DrawTexture);
        num = (GUICamera.height - this.hideBG.GetSize().y) / 2f;
        this.hideBG.SetLocation(-this.hideBG.GetSize().x + 16f, num);
        this.hideArrow  = (base.GetControl("DT_HideArrow") as DrawTexture);
        this.hideButton = (base.GetControl("Button_Hide") as Button);
        this.hideButton.SetValueChangedDelegate(new EZValueChangedDelegate(this.ClickHide));
        num = (GUICamera.height - this.hideArrow.GetSize().y) / 2f;
        this.hideArrow.SetLocation(-23f, num);
        num = (GUICamera.height - this.hideButton.GetSize().y) / 2f;
        this.hideButton.SetLocation(-this.hideButton.GetSize().x + 2f, num);
        base.SetLocation(GUICamera.width - base.GetSizeX(), 0f);
        NrMyCharInfo myCharInfo = NrTSingleton <NkCharManager> .Instance.GetMyCharInfo();

        if (myCharInfo != null)
        {
            ITEMMALL_POPUPSHOP atbToIDX = NrTSingleton <ItemMallPoPupShopManager> .Instance.GetAtbToIDX(ItemMallPoPupShopManager.ePoPupShop_Type.Login);

            if (atbToIDX != null)
            {
                GS_ITEMSHOP_ITEMPOPUP_INFO_REQ gS_ITEMSHOP_ITEMPOPUP_INFO_REQ = new GS_ITEMSHOP_ITEMPOPUP_INFO_REQ();
                gS_ITEMSHOP_ITEMPOPUP_INFO_REQ.i64PersonID = myCharInfo.m_PersonID;
                gS_ITEMSHOP_ITEMPOPUP_INFO_REQ.i64Idx      = (long)atbToIDX.m_Idx;
                gS_ITEMSHOP_ITEMPOPUP_INFO_REQ.i32ATB      = 1;
                SendPacket.GetInstance().SendObject(2536, gS_ITEMSHOP_ITEMPOPUP_INFO_REQ);
            }
        }
        this.ShowHideOption(true);
    }