private EntryEngine.UI.CheckBox ___CBTypes()
    {
        var CBTypes = new EntryEngine.UI.CheckBox();

        CBTypes.Name = "  CBTypes";
        EntryEngine.RECT CBTypes_Clip = new EntryEngine.RECT();
        CBTypes_Clip.X      = 2f;
        CBTypes_Clip.Y      = 2f;
        CBTypes_Clip.Width  = 80f;
        CBTypes_Clip.Height = 24f;
        CBTypes.Clip        = CBTypes_Clip;

        CBTypes.SourceClicked    = PATCH.GetNinePatch(PATCH.NullColor, new COLOR(0, 0, 0, 255), 1);
        CBTypes.UIText           = new EntryEngine.UI.UIText();
        CBTypes.UIText.Text      = "分类分类分类";
        CBTypes.UIText.FontColor = new COLOR()
        {
            B = 51,
            G = 51,
            R = 51,
            A = 255,
        };
        CBTypes.UIText.TextAlignment = (EPivot)17;
        CBTypes.UIText.TextShader    = null;
        CBTypes.UIText.Padding.X     = 0f;
        CBTypes.UIText.Padding.Y     = 0f;
        CBTypes.UIText.FontSize      = 12f;

        CBTypes.Text                 = "分类分类分类";
        CBTypes.IsRadioButton        = true;
        CBTypes.CheckedOverlayNormal = true;

        return(CBTypes);
    }
Exemple #2
0
    private void Initialize()
    {
        this.Name = "SMain";
        EntryEngine.RECT this_Clip = new EntryEngine.RECT();
        this_Clip.X      = 0f;
        this_Clip.Y      = 0f;
        this_Clip.Width  = 1280f;
        this_Clip.Height = 720f;
        this.Clip        = this_Clip;

        TB190712145935.Name = "TB190712145935";
        EntryEngine.RECT TB190712145935_Clip = new EntryEngine.RECT();
        TB190712145935_Clip.X      = 800f;
        TB190712145935_Clip.Y      = 0f;
        TB190712145935_Clip.Width  = 480f;
        TB190712145935_Clip.Height = 720f;
        TB190712145935.Clip        = TB190712145935_Clip;

        TB190712145935.Color = new COLOR()
        {
            B = 128,
            G = 128,
            R = 128,
            A = 255,
        };
        this.Add(TB190712145935);
        L190712150313[0].Name = "L190712150313";
        EntryEngine.RECT L190712150313_0__Clip = new EntryEngine.RECT();
        L190712150313_0__Clip.X      = 18f;
        L190712150313_0__Clip.Y      = 623.375f;
        L190712150313_0__Clip.Width  = 446f;
        L190712150313_0__Clip.Height = 0;
        L190712150313[0].Clip        = L190712150313_0__Clip;

        L190712150313[0].UIText           = new EntryEngine.UI.UIText();
        L190712150313[0].UIText.Text      = "左键拖拽或创建矩形";
        L190712150313[0].UIText.FontColor = new COLOR()
        {
            B = 255,
            G = 255,
            R = 255,
            A = 255,
        };
        L190712150313[0].UIText.TextAlignment = (EPivot)0;
        L190712150313[0].UIText.TextShader    = null;
        L190712150313[0].UIText.Padding.X     = 0f;
        L190712150313[0].UIText.Padding.Y     = 0f;
        L190712150313[0].UIText.FontSize      = 16f;
        L190712150313[0].Text = "左键拖拽或创建矩形";
        TB190712145935.Add(L190712150313[0]);
        L190712150313[1].Name = "L190712150313";
        EntryEngine.RECT L190712150313_1__Clip = new EntryEngine.RECT();
        L190712150313_1__Clip.X      = 17f;
        L190712150313_1__Clip.Y      = 641.625f;
        L190712150313_1__Clip.Width  = 446f;
        L190712150313_1__Clip.Height = 0;
        L190712150313[1].Clip        = L190712150313_1__Clip;

        L190712150313[1].UIText           = new EntryEngine.UI.UIText();
        L190712150313[1].UIText.Text      = "右键拖拽画布或删除矩形";
        L190712150313[1].UIText.FontColor = new COLOR()
        {
            B = 255,
            G = 255,
            R = 255,
            A = 255,
        };
        L190712150313[1].UIText.TextAlignment = (EPivot)0;
        L190712150313[1].UIText.TextShader    = null;
        L190712150313[1].UIText.Padding.X     = 0f;
        L190712150313[1].UIText.Padding.Y     = 0f;
        L190712150313[1].UIText.FontSize      = 16f;
        L190712150313[1].Text = "右键拖拽画布或删除矩形";
        TB190712145935.Add(L190712150313[1]);
        L190712150313[2].Name = "L190712150313";
        EntryEngine.RECT L190712150313_2__Clip = new EntryEngine.RECT();
        L190712150313_2__Clip.X      = 17f;
        L190712150313_2__Clip.Y      = 659.875f;
        L190712150313_2__Clip.Width  = 446f;
        L190712150313_2__Clip.Height = 0;
        L190712150313[2].Clip        = L190712150313_2__Clip;

        L190712150313[2].UIText           = new EntryEngine.UI.UIText();
        L190712150313[2].UIText.Text      = "空格重置视口";
        L190712150313[2].UIText.FontColor = new COLOR()
        {
            B = 255,
            G = 255,
            R = 255,
            A = 255,
        };
        L190712150313[2].UIText.TextAlignment = (EPivot)0;
        L190712150313[2].UIText.TextShader    = null;
        L190712150313[2].UIText.Padding.X     = 0f;
        L190712150313[2].UIText.Padding.Y     = 0f;
        L190712150313[2].UIText.FontSize      = 16f;
        L190712150313[2].Text = "空格重置视口";
        TB190712145935.Add(L190712150313[2]);
        TBResult.Name = "TBResult";
        EntryEngine.RECT TBResult_Clip = new EntryEngine.RECT();
        TBResult_Clip.X      = 18f;
        TBResult_Clip.Y      = 18.375f;
        TBResult_Clip.Width  = 446f;
        TBResult_Clip.Height = 545f;
        TBResult.Clip        = TBResult_Clip;

        TBResult.DefaultText           = new EntryEngine.UI.UIText();
        TBResult.DefaultText.Text      = "";
        TBResult.DefaultText.FontColor = new COLOR()
        {
            B = 211,
            G = 211,
            R = 211,
            A = 255,
        };
        TBResult.DefaultText.TextAlignment = (EPivot)0;
        TBResult.DefaultText.TextShader    = null;
        TBResult.DefaultText.Padding.X     = 0f;
        TBResult.DefaultText.Padding.Y     = 0f;
        TBResult.DefaultText.FontSize      = 16f;
        TBResult.UIText           = new EntryEngine.UI.UIText();
        TBResult.UIText.Text      = "";
        TBResult.UIText.FontColor = new COLOR()
        {
            B = 0,
            G = 0,
            R = 0,
            A = 255,
        };
        TBResult.UIText.TextAlignment = (EPivot)0;
        TBResult.UIText.TextShader    = null;
        TBResult.UIText.Padding.X     = 20f;
        TBResult.UIText.Padding.Y     = 20f;
        TBResult.UIText.FontSize      = 16f;
        TBResult.BreakLine            = true;
        TB190712145935.Add(TBResult);
        BSave.Name = "BSave";
        EntryEngine.RECT BSave_Clip = new EntryEngine.RECT();
        BSave_Clip.X      = 191f;
        BSave_Clip.Y      = 567.375f;
        BSave_Clip.Width  = 100f;
        BSave_Clip.Height = 44f;
        BSave.Clip        = BSave_Clip;

        BSave.Color = new COLOR()
        {
            B = 255,
            G = 255,
            R = 255,
            A = 55,
        };
        BSave.UIText           = new EntryEngine.UI.UIText();
        BSave.UIText.Text      = "复制";
        BSave.UIText.FontColor = new COLOR()
        {
            B = 255,
            G = 255,
            R = 255,
            A = 255,
        };
        BSave.UIText.TextAlignment = (EPivot)17;
        BSave.UIText.TextShader    = null;
        BSave.UIText.Padding.X     = 0f;
        BSave.UIText.Padding.Y     = 0f;
        BSave.UIText.FontSize      = 16f;
        BSave.Text = "复制";
        TB190712145935.Add(BSave);
        L190712150313[3].Name = "L190712150313";
        EntryEngine.RECT L190712150313_3__Clip = new EntryEngine.RECT();
        L190712150313_3__Clip.X      = 17f;
        L190712150313_3__Clip.Y      = 678.125f;
        L190712150313_3__Clip.Width  = 446f;
        L190712150313_3__Clip.Height = 0;
        L190712150313[3].Clip        = L190712150313_3__Clip;

        L190712150313[3].UIText           = new EntryEngine.UI.UIText();
        L190712150313[3].UIText.Text      = "拖拽图片文件到视口加载图片,回车切换绘图锚点";
        L190712150313[3].UIText.FontColor = new COLOR()
        {
            B = 255,
            G = 255,
            R = 255,
            A = 255,
        };
        L190712150313[3].UIText.TextAlignment = (EPivot)0;
        L190712150313[3].UIText.TextShader    = null;
        L190712150313[3].UIText.Padding.X     = 0f;
        L190712150313[3].UIText.Padding.Y     = 0f;
        L190712150313[3].UIText.FontSize      = 16f;
        L190712150313[3].Text = "拖拽图片文件到视口加载图片,回车切换绘图锚点";
        TB190712145935.Add(L190712150313[3]);
        L190712150313[4].Name = "L190712150313";
        EntryEngine.RECT L190712150313_4__Clip = new EntryEngine.RECT();
        L190712150313_4__Clip.X      = 18f;
        L190712150313_4__Clip.Y      = 696.375f;
        L190712150313_4__Clip.Width  = 446f;
        L190712150313_4__Clip.Height = 0;
        L190712150313[4].Clip        = L190712150313_4__Clip;

        L190712150313[4].UIText           = new EntryEngine.UI.UIText();
        L190712150313[4].UIText.Text      = "Ctrl + S复制内容";
        L190712150313[4].UIText.FontColor = new COLOR()
        {
            B = 255,
            G = 255,
            R = 255,
            A = 255,
        };
        L190712150313[4].UIText.TextAlignment = (EPivot)0;
        L190712150313[4].UIText.TextShader    = null;
        L190712150313[4].UIText.Padding.X     = 0f;
        L190712150313[4].UIText.Padding.Y     = 0f;
        L190712150313[4].UIText.FontSize      = 16f;
        L190712150313[4].Text = "Ctrl + S复制内容";
        TB190712145935.Add(L190712150313[4]);
        TBCanvas.Name = "TBCanvas";
        EntryEngine.RECT TBCanvas_Clip = new EntryEngine.RECT();
        TBCanvas_Clip.X      = 0f;
        TBCanvas_Clip.Y      = 0f;
        TBCanvas_Clip.Width  = 800f;
        TBCanvas_Clip.Height = 720f;
        TBCanvas.Clip        = TBCanvas_Clip;

        this.Add(TBCanvas);
        DDAction.Name = "DDAction";
        EntryEngine.RECT DDAction_Clip = new EntryEngine.RECT();
        DDAction_Clip.X      = 640f;
        DDAction_Clip.Y      = 18.375f;
        DDAction_Clip.Width  = 150f;
        DDAction_Clip.Height = 31f;
        DDAction.Clip        = DDAction_Clip;

        DDAction.Color = new COLOR()
        {
            B = 255,
            G = 255,
            R = 255,
            A = 128,
        };
        DDAction.UIText           = new EntryEngine.UI.UIText();
        DDAction.UIText.Text      = "";
        DDAction.UIText.FontColor = new COLOR()
        {
            B = 255,
            G = 255,
            R = 255,
            A = 255,
        };
        DDAction.UIText.TextAlignment = (EPivot)17;
        DDAction.UIText.TextShader    = null;
        DDAction.UIText.Padding.X     = 0f;
        DDAction.UIText.Padding.Y     = 0f;
        DDAction.UIText.FontSize      = 16f;
        TBCanvas.Add(DDAction);

        this.PhaseShowing += Show;
    }
    private void Initialize()
    {
        this.Name = "SMain";
        EntryEngine.RECT this_Clip = new EntryEngine.RECT();
        this_Clip.X      = 0f;
        this_Clip.Y      = 0f;
        this_Clip.Width  = 1280f;
        this_Clip.Height = 720f;
        this.Clip        = this_Clip;

        TB190718101113.Name = "TB190718101113";
        EntryEngine.RECT TB190718101113_Clip = new EntryEngine.RECT();
        TB190718101113_Clip.X      = 720f;
        TB190718101113_Clip.Y      = 0f;
        TB190718101113_Clip.Width  = 560f;
        TB190718101113_Clip.Height = 470f;
        TB190718101113.Clip        = TB190718101113_Clip;

        this.Add(TB190718101113);
        L190726102325.Name = "L190726102325";
        EntryEngine.RECT L190726102325_Clip = new EntryEngine.RECT();
        L190726102325_Clip.X      = 11f;
        L190726102325_Clip.Y      = 397.375f;
        L190726102325_Clip.Width  = 538f;
        L190726102325_Clip.Height = 61f;
        L190726102325.Clip        = L190726102325_Clip;

        L190726102325.UIText           = new EntryEngine.UI.UIText();
        L190726102325.UIText.Text      = "左键刷地形 / 右键或Alt+左键删除地形 / 右键拖拽地图 / Ctrl + S保存地\n图 / Ctrl + Shift + S另存为地图 / 拖拽地图文件到窗口以加载地图 / 1\n键设置地形锁 / 3键隐藏显示额外信息 / Ctrl + A新建地图";
        L190726102325.UIText.FontColor = new COLOR()
        {
            B = 0,
            G = 0,
            R = 0,
            A = 255,
        };
        L190726102325.UIText.TextAlignment = (EPivot)0;
        L190726102325.UIText.TextShader    = null;
        L190726102325.UIText.Padding.X     = 0f;
        L190726102325.UIText.Padding.Y     = 0f;
        L190726102325.UIText.FontSize      = 16f;
        L190726102325.Text      = "左键刷地形 / 右键或Alt+左键删除地形 / 右键拖拽地图 / Ctrl + S保存地图 / Ctrl + Shift + S另存为地图 / 拖拽地图文件到窗口以加载地图 / 1键设置地形锁 / 3键隐藏显示额外信息 / Ctrl + A新建地图";
        L190726102325.BreakLine = true;
        TB190718101113.Add(L190726102325);
        PPre.Name = "PPre";
        EntryEngine.RECT PPre_Clip = new EntryEngine.RECT();
        PPre_Clip.X      = 0f;
        PPre_Clip.Y      = 27f;
        PPre_Clip.Width  = 560f;
        PPre_Clip.Height = 360f;
        PPre.Clip        = PPre_Clip;

        PPre.DragMode    = (EDragMode)1;
        PPre.DragInertia = 0.5f;
        TB190718101113.Add(PPre);
        PTypes.Name = "PTypes";
        EntryEngine.RECT PTypes_Clip = new EntryEngine.RECT();
        PTypes_Clip.X      = 0f;
        PTypes_Clip.Y      = 0f;
        PTypes_Clip.Width  = 560f;
        PTypes_Clip.Height = 27f;
        PTypes.Clip        = PTypes_Clip;

        PTypes.DragMode = (EDragMode)1;
        TB190718101113.Add(PTypes);
        TBThumnail.Name = "TBThumnail";
        EntryEngine.RECT TBThumnail_Clip = new EntryEngine.RECT();
        TBThumnail_Clip.X      = 720f;
        TBThumnail_Clip.Y      = 470f;
        TBThumnail_Clip.Width  = 560f;
        TBThumnail_Clip.Height = 250f;
        TBThumnail.Clip        = TBThumnail_Clip;

        TBThumnail.Color = new COLOR()
        {
            B = 51,
            G = 51,
            R = 51,
            A = 255,
        };
        this.Add(TBThumnail);
        L190726103109.Name = "L190726103109";
        EntryEngine.RECT L190726103109_Clip = new EntryEngine.RECT();
        L190726103109_Clip.X      = 10f;
        L190726103109_Clip.Y      = 6.375f;
        L190726103109_Clip.Width  = 0;
        L190726103109_Clip.Height = 0;
        L190726103109.Clip        = L190726103109_Clip;

        L190726103109.UIText           = new EntryEngine.UI.UIText();
        L190726103109.UIText.Text      = "缩略图";
        L190726103109.UIText.FontColor = new COLOR()
        {
            B = 0,
            G = 255,
            R = 0,
            A = 255,
        };
        L190726103109.UIText.TextAlignment = (EPivot)0;
        L190726103109.UIText.TextShader    = null;
        L190726103109.UIText.Padding.X     = 0f;
        L190726103109.UIText.Padding.Y     = 0f;
        L190726103109.UIText.FontSize      = 16f;
        L190726103109.Text = "缩略图";
        TBThumnail.Add(L190726103109);
        TBMap.Name = "TBMap";
        EntryEngine.RECT TBMap_Clip = new EntryEngine.RECT();
        TBMap_Clip.X      = 0f;
        TBMap_Clip.Y      = 0f;
        TBMap_Clip.Width  = 720f;
        TBMap_Clip.Height = 720f;
        TBMap.Clip        = TBMap_Clip;

        this.Add(TBMap);

        this.PhaseShowing += Show;
    }