Esempio n. 1
0
    public override void LoadTestPage()
    {
        UIElement.DisposeAll();
        HCanvas.RegCanvas(GUIRender);
        UISystem.PhysicalScale = 1f;
        font.RequestCharactersInTexture("ABCDEF", 512);//OPQUVWXYZ
        HTextLoader.fonts.Clear();
        HTextLoader.fonts.Add(font);
        //HCanvas can = new HCanvas();
        //can.DesignSize = GUIRender.DesignSize;
        //can.SizeDelta = GUIRender.DesignSize;
        //can.name = GUIRender.name;
        //GUIRender.canvas = can;
        HCanvas.CurrentCanvas = GUIRender.canvas;
        App.Initial(GUIRender.canvas);
        Application.targetFrameRate = 1000;
#if UNITY_IPHONE || UNITY_ANDROID
        //Scale.DpiScale = true;
#endif
#if UNITY_EDITOR
        UIPage.LoadPage <StartPage>();
#else
        //ElementAsset.LoadAssetsAsync("base.unity3d",(o,e)=> { UIPage.LoadPage<ChatPage>(); });
#endif
        DataGrid.CursorX = DockPanelLine.CursorX = Resources.Load <Texture2D>("StretchWX");
        DataGrid.CursorY = DockPanelLine.CursorY = Resources.Load <Texture2D>("StretchWY");
    }
Esempio n. 2
0
    public override void LoadTestPage()
    {
        Application.targetFrameRate = 60;
#if UNITY_IPHONE || UNITY_ANDROID
        //Scale.DpiScale = true;
#endif
        //UIPage.LoadPage<DrawPage>();
        UIPage.LoadPage <LayoutTestPage>();
        //UIPage.LoadPage<TestPage>();
    }
Esempio n. 3
0
    // Start is called before the first frame update
    void Start()
    {
        App.Initial(transform as RectTransform);
        ModelManagerUI.LoadModels(baseUI.bytes, "baseUI");

        ElementAsset.LoadAssetsAsync("picture.unity3d").PlayOver = (o, e) =>
        {
            UIPage.LoadPage <LoadingPage>();
            //ShowPopWindow<PropKeyWin>();
        };
    }
    // Start is called before the first frame update
    void Start()
    {
        App.Initial(transform as RectTransform);
        ModelManagerUI.LoadModels(baseUI.bytes, "baseUI");
#if UNITY_EDITOR
        AssetBundle.UnloadAllAssetBundles(true);
#endif
        ElementAsset.LoadAssetsAsync("base.unity3d").PlayOver = (o, e) =>
        {
            UIPage.LoadPage <TestPage>();
        };
    }
Esempio n. 5
0
    public override void LoadTestPage()
    {
        //RemoteLog.Instance.Connection("192.168.0.144",8899);
        Application.targetFrameRate = 1000;
#if UNITY_IPHONE || UNITY_ANDROID
        //Scale.DpiScale = true;
#endif
#if UNITY_EDITOR
        UIPage.LoadPage <DataGridPage>();
#else
        //ElementAsset.LoadAssetsAsync("base.unity3d",(o,e)=> { UIPage.LoadPage<ChatPage>(); });
#endif
        DataGrid.CursorX = DockPanelLine.CursorX = Resources.Load <Texture2D>("StretchWX");
        DataGrid.CursorY = DockPanelLine.CursorY = Resources.Load <Texture2D>("StretchWY");
    }
Esempio n. 6
0
    protected override void Start()
    {
        base.Start();
        Instance       = this;
        Scale.DpiScale = true;
        App.Initial(transform);
        DontDestroyOnLoad(gameObject);
        HGUIManager.LoadModels(baseUI.bytes, "baseUI");
#if UNITY_EDITOR
        AssetBundle.UnloadAllAssetBundles(true);
#endif
        //ElementAsset.LoadAssetsAsync("base.unity3d").PlayOver = (o, e) =>
        //{
        UIPage.LoadPage <LoadingPage>("checkOss");
        // };
        KcpDataControll.Instance.Connection("193.112.70.170", 8899);
    }
Esempio n. 7
0
    // Start is called before the first frame update
    void Start()
    {
        Instance = this;
        // KcpDataControll.Instance.Connection("127.0.0.1",8886);
        App.Initial(transform as RectTransform);
        ModelManagerUI.LoadModels(baseUI.bytes, "baseUI");
#if UNITY_EDITOR
        AssetBundle.UnloadAllAssetBundles(true);
#endif
        ElementAsset.LoadAssetsAsync("base.unity3d").PlayOver = (o, e) =>
        {
            loadOver = true;
            //if (hotData != null)
            //    UIPage.LoadPage<HotFixEntry>(hotData);
            UIPage.LoadPage <HotFixEntry>(hotfix.bytes);
        };
    }
Esempio n. 8
0
    public override void LoadTestPage()
    {
        //Application.targetFrameRate = 60;
#if UNITY_IPHONE || UNITY_ANDROID
        //Scale.DpiScale = true;
#endif
#if UNITY_EDITOR
        //UIPage.LoadPage<DrawPage>();
        //UIPage.LoadPage<LayoutTestPage>();
        //UIPage.LoadPage<TestPage>();
        //UIPage.LoadPage<TabControlTest>();
        //UIPage.LoadPage<ScrollExTestPage>();
        UIPage.LoadPage <AniTestPage>();
#else
        ElementAsset.LoadAssetsAsync("base.unity3d", (o, e) => { UIPage.LoadPage <AniTestPage>(); });
#endif
    }
Esempio n. 9
0
    // Start is called before the first frame update
    protected override void Start()
    {
        KcpDataControll.Instance.Connection("192.168.0.134", 8899);
        KcpDataControll.Instance.OpenLog();
        base.Start();
        App.Initial(transform);
        HGUIManager.LoadModels(baseUI.bytes, "baseUI");
#if UNITY_EDITOR
        AssetBundle.UnloadAllAssetBundles(true);
#endif
        //ElementAsset.LoadAssetsAsync("base.unity3d").PlayOver = (o, e) =>
        //{
        //    UIPage.LoadPage<ChatPage>();
        //};
        UIPage.LoadPage <StartPage>();
        DataGrid.CursorX = DockPanelLine.CursorX = Resources.Load <Texture2D>("StretchWX");
        DataGrid.CursorY = DockPanelLine.CursorY = Resources.Load <Texture2D>("StretchWY");
    }
Esempio n. 10
0
 // Start is called before the first frame update
 void Start()
 {
     App.Initial(transform as RectTransform);
     ModelManagerUI.LoadModels(baseUI.bytes, "baseUI");
     UIPage.LoadPage <LoadingPage>();
 }