Esempio n. 1
0
    public HotUpdateViewer()
    {
        var panelHotUpdate = EntryPoint.Instance.PanelHotUpdate;

        pCurrenVersion = panelHotUpdate.FindChild("Lab_Tips1").GetComponent <Text>();

        pServerVersion = panelHotUpdate.FindChild("Lab_Tips2").GetComponent <Text>();

        pTextDescription = panelHotUpdate.FindChild("Lab_Tips3").GetComponent <Text>();
        if (pIsJustShowNew)
        {
            pTextDescription.gameObject.SetActive(false);
        }

        pSliderPart = panelHotUpdate.FindChild("Sld_Part").GetComponent <Slider>();
        if (pIsJustShowNew)
        {
            pSliderPart.gameObject.SetActive(false);
        }

        pSliderAll = panelHotUpdate.FindChild("Sld_All").GetComponent <Slider>();
        if (pIsJustShowNew)
        {
            pSliderAll.gameObject.SetActive(false);
        }

        Frame_Message = EntryPoint.Instance.PanelMessageBox.FindChild("Frame_Message");
        Frame_Message.SetActive(false);

        pTextTips = panelHotUpdate.FindChild("Frame_Info/Lab_Tips4").GetComponent <Text>();
        pTextSize = panelHotUpdate.FindChild("Frame_Info/Lab_Size").GetComponent <Text>();
        pTextSize.gameObject.SetActive(false);
        Frame_Progress = panelHotUpdate.FindChild("Frame_Info/Frame_Progress");
        Frame_Progress.SetActive(false);
        pTextProgress  = Frame_Progress.FindChild("Lab_Package/Lab_Progress").GetComponent <Text>();
        pTextPackage   = Frame_Progress.FindChild("Lab_Package").GetComponent <Text>();
        pSlderProgress = Frame_Progress.FindChild("Mask_Sld/Sld_New").GetComponent <Slider>();

        Frame_Promotion = panelHotUpdate.FindChild("Frame_Info/Frame_Promotion");
        pFrameVideoD    = Frame_Promotion.FindChild("RdoGroup_TopTabs/Rdo_Video/Img_D");
        pFrameVideoU    = Frame_Promotion.FindChild("RdoGroup_TopTabs/Rdo_Video/Img_U");
        pFramePictureD  = Frame_Promotion.FindChild("RdoGroup_TopTabs/Rdo_Picture/Img_D");
        pFramePictureU  = Frame_Promotion.FindChild("RdoGroup_TopTabs/Rdo_Picture/Img_U");
        pToggleVideo    = Frame_Promotion.FindChild("RdoGroup_TopTabs/Rdo_Video").GetComponent <Toggle>();
        pListProgress   = Frame_Promotion.FindChild("List_Progress").GetComponent <GNewList>();
        pRawImageVideo  = Frame_Promotion.FindChild("Img_Video").GetComponent <RawImage>();
        pImagePicture   = Frame_Promotion.FindChild("Img_Picture").GetComponent <Image>();
        Frame_Promotion.SetActive(false);
        pFrameVideoD.SetActive(false);
        pFramePictureD.SetActive(false);

        Frame_Promotion.FindChild("RdoGroup_TopTabs/Rdo_Video").GetComponent <Toggle>().onValueChanged.AddListener((isCheck) => { OnToggleTopTabs(true, isCheck); });
        Frame_Promotion.FindChild("RdoGroup_TopTabs/Rdo_Picture").GetComponent <Toggle>().onValueChanged.AddListener((isCheck) => { OnToggleTopTabs(false, isCheck); });
        Frame_Promotion.FindChild("Btn_SwitchLeft").GetComponent <Button>().onClick.AddListener(() => { OnClickSwitch(true); });
        Frame_Promotion.FindChild("Btn_SwitchRight").GetComponent <Button>().onClick.AddListener(() => { OnClickSwitch(false); });

        pTextCircle = EntryPoint.Instance.PanelCirle.FindChild("Lab_Circle").GetComponent <Text>();
    }
Esempio n. 2
0
    static int RefreshItem(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 2);
        GNewList obj  = (GNewList)LuaScriptMgr.GetUnityObjectSelf(L, 1, "GNewList");
        int      arg0 = (int)LuaScriptMgr.GetNumber(L, 2);

        obj.RefreshItem(arg0);
        return(0);
    }
Esempio n. 3
0
    protected override void OnSafeInit()
    {
        base.OnSafeInit();

        if (SubViewTemplate != null)
        {
            SubViewTemplate.SetParent(_Content, false);

            _SubList = SubViewTemplate.GetComponentInChildren <GNewList>(true);
            _SubList.InitItemCallBack        = OnShowSubItem;
            _SubList.ClickItemCallBack       = OnClickSubItem;
            _SubList.ClickItemButtonCallBack = OnClickSubItemButton;
            //_SubList.DontKeepFullSize = true;
        }

        OpenTab(0, false);
    }