private void DrawBtnExpandCollapseSideBar() { if (QUI.Button("", EZStyles.GetStyle(mWindowSettings.sidebarIsExpanded.faded < 0.9f ? EZStyles.General.SideButtonExpandSideBar : EZStyles.General.SideButtonCollapseSideBar), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { mWindowSettings.sidebarIsExpanded.target = !mWindowSettings.sidebarIsExpanded.target; } }
//———————————————————————————————————— void DrawSocialButtons() // 按钮1 按钮2 { if (mWindowSettings.sidebarIsExpanded.faded < 0.3f) { QUI.BeginVertical(mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight * 3); } else { QUI.BeginHorizontal(mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight); } int btnNum = 2; tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.8f ? "" : (isNeedTu? "去图" : "加图"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonTwitter), mWindowSettings.sidebarExpandedWidth / btnNum >= mWindowSettings.SidebarCurrentWidth ? mWindowSettings.SidebarCurrentWidth : mWindowSettings.SidebarCurrentWidth / btnNum, mWindowSettings.sidebarButtonHeight)) { isNeedTu = !isNeedTu; } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.8f ? "" : "退出"; if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.sidebarExpandedWidth / btnNum >= mWindowSettings.SidebarCurrentWidth ? mWindowSettings.SidebarCurrentWidth : mWindowSettings.SidebarCurrentWidth / btnNum, mWindowSettings.sidebarButtonHeight)) { OnClickBtn2(); } QUI.FlexibleSpace(); if (mWindowSettings.sidebarIsExpanded.faded < 0.3f) { QUI.EndVertical(); } else { QUI.EndHorizontal(); } }
protected override void DrawLeft() { bool isNav = (type == EType.Nva || type == EType.Nva1 || type == EType.Nva2); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "NavMesh 导航"; if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.Nva ? EZStyles.General.SideButtonSelected2 : EZStyles.General.SideButton2), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Nva); } if (isNav) { tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Nva1 ? " 实现物体导航".AddBlue() : " 实现物体导航"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Nva1); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Nva2 ? " 导航数据与优化".AddBlue() : " 导航数据与优化"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Nva2); } } MyCreate.AddSpace(20); bool isReGenXin = (type == EType.RenGenXin || type == EType.RenGenXin1 || type == EType.RenGenXin2); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "热更新"; if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.RenGenXin ? EZStyles.General.SideButtonSelected3 : EZStyles.General.SideButton3), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.RenGenXin); } if (isReGenXin) { tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.RenGenXin1 ? " 数据结构用法".AddBlue() : " 数据结构用法"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.RenGenXin1); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.RenGenXin2 ? " uLua 说明".AddBlue() : " uLua 说明"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.RenGenXin2); } } MyCreate.AddSpace(20); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "小地图"; if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.XiaoMap ? EZStyles.General.SideButtonSelected1 : EZStyles.General.SideButton1), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.XiaoMap); } }
protected override void DrawLeft() { tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "官方文档"; if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.Gun ? EZStyles.General.SideButtonSelected1 : EZStyles.General.SideButton1), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Gun); } AddSpace_15(); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "工具"; if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.Tools1 ? EZStyles.General.SideButtonSelected2 : EZStyles.General.SideButton2), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Tools1); } AddSpace_15(); bool isStudy = type == EType.Study1 || type == EType.Study2 || type == EType.Study3 || type == EType.Study4; tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "学习使用"; if (QUI.Button(tempLabel, EZStyles.GetStyle(isStudy ? EZStyles.General.SideButtonSelected3 : EZStyles.General.SideButton3), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Study1); } if (isStudy) { tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Study1 ? " 总结".AddBlue() : " 总结"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Study1); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Study2 ? " 核心类 ES3".AddBlue() : " 核心类 ES3"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Study2); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Study3 ? " ES3Settings".AddBlue() : " ES3Settings"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Study3); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Study4? " TODO".AddBlue() : " TODO"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Study4); } } AddSpace(); }
protected override void DrawLeft() { MyCreate.Text("C# System "); bool isTmp1 = (type == EType.WindowsForms || type == EType.WindowsForms2 || type == EType.OpenFileDialog || type == EType.FolderBrowserDialog); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "Windows.Forms".AddSize(15); if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.WindowsForms ? EZStyles.General.SideButtonSelected1 : EZStyles.General.SideButton1), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.WindowsForms); } if (isTmp1) { tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.WindowsForms2 ? "MessageBox".AddBlue() : "MessageBox"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.WindowsForms2); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.OpenFileDialog ? "OpenFileDialog".AddBlue() : "OpenFileDialog"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.OpenFileDialog); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.FolderBrowserDialog ? "FolderBrowserDialog".AddBlue() : "FolderBrowserDialog"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.FolderBrowserDialog); } } AddSpace(); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "Drawing"; if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.Drawing ? EZStyles.General.SideButtonSelected2 : EZStyles.General.SideButton2), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Drawing); } }
protected override void DrawLeft() { #region 电脑程序 bool isExe = (type == EType.Exe || type == EType.Exe1 || type == EType.Exe2 || type == EType.Exe3 || type == EType.Exe4 || type == EType.Exe5 || type == EType.Exe6 || type == EType.Exe7 || type == EType.Exe8); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "电脑程序"; if (QUI.Button(tempLabel, EZStyles.GetStyle(isExe ? EZStyles.General.SideButtonSelected1 : EZStyles.General.SideButton1), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Exe1); } if (isExe) { tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Exe1 ? " 与 Unity 相关程序".AddBlue() : " 与 Unity 相关程序"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Exe1); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Exe2 ? " 图片 类".AddBlue() : " 图片 类"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Exe2); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Exe3 ? " Gif 类".AddBlue() : " Gif 类"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Exe3); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Exe4 ? " 视频 类".AddBlue() : " 视频 类"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Exe4); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Exe5 ? " 程序 类".AddBlue() : " 程序 类"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Exe5); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Exe6 ? " 使用 Bat".AddBlue() : " 使用 Bat"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Exe6); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Exe7 ? " 重装记录".AddBlue() : " 重装记录"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Exe7); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Exe8 ? " 符号标记".AddBlue() : " 符号标记"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Exe8); } } #endregion AddSpace(); #region 网上使用 bool isWeb = (type == EType.Web || type == EType.Web1 || type == EType.Web2 || type == EType.Github); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "网上使用"; if (QUI.Button(tempLabel, EZStyles.GetStyle(isWeb ? EZStyles.General.SideButtonSelected2 : EZStyles.General.SideButton2), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Github); } if (isWeb) { tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Github ? " Github".AddBlue() : " Github"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Github); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Web1 ? " 网上有趣的转载".AddBlue() : " 网上有趣的转载"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Web1); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Web2 ? " 网站密码".AddBlue() : " 网站密码"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Web2); } } #endregion AddSpace(); #region 游戏分类 bool isGame = (type == EType.Game || type == EType.Game1 || type == EType.Game2 || type == EType.Game3 || type == EType.Game4 || type == EType.Game5 || type == EType.Game6); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "游戏分类"; if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.Game ? EZStyles.General.SideButtonSelected3 : EZStyles.General.SideButton3), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Game); } if (isGame) { tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Game1 ? " 动作游戏".AddBlue() : " 动作游戏"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Game1); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Game2 ? " 冒险游戏".AddBlue() : " 冒险游戏"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Game2); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Game3 ? " 模拟游戏".AddBlue() : " 模拟游戏"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Game3); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Game4 ? " 角色扮演游戏".AddBlue() : " 角色扮演游戏"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Game4); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Game5 ? " 策略游戏".AddBlue() : " 策略游戏"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Game5); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Game6 ? " 其余大类".AddBlue() : " 其余大类"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Game6); } } #endregion AddSpace(); #region 重装 bool isZhong = (type == EType.Zhong || type == EType.Zhong1 || type == EType.Zhong2 || type == EType.Zhong3); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "重装"; if (QUI.Button(tempLabel, EZStyles.GetStyle(isZhong ? EZStyles.General.SideButtonSelected2 : EZStyles.General.SideButton2), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Zhong1); } if (isZhong) { tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Zhong1 ? " 谷歌浏览器".AddBlue() : " 谷歌浏览器"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Zhong1); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Zhong2 ? " VS".AddBlue() : " VS"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Zhong2); } } #endregion AddSpace(); #region 自控力 bool isZi = (type == EType.Zi || type == EType.Zi1 || type == EType.Zi2 || type == EType.Zi3 || type == EType.Zi4 || type == EType.Zi5 || type == EType.Zi6); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "自控力"; if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.Zi ? EZStyles.General.SideButtonSelected2 : EZStyles.General.SideButton2), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Zi); } if (isZi) { tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Zi1 ? " 解析意志力".AddBlue() : " 解析意志力"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Zi1); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Zi2 ? " 管理自己".AddBlue() : " 管理自己"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Zi2); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Zi3 ? " 提升自控力极限".AddBlue() : " 提升自控力极限"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Zi3); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Zi4 ? " 错误的自控".AddBlue() : " 错误的自控"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Zi4); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Zi5 ? " 情绪也会影响自控力".AddBlue() : " 情绪也会影响自控力"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Zi5); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Zi6 ? " 思考未来".AddBlue() : " 思考未来"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Zi6); } } #endregion AddSpace(); #region 视频分割上传 bool isShiPing = (type == EType.ShiPing || type == EType.ShiPing1 || type == EType.ShiPing2); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "杂项"; if (QUI.Button(tempLabel, EZStyles.GetStyle(isShiPing ? EZStyles.General.SideButtonSelected2 : EZStyles.General.SideButton2), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.ShiPing1); } if (isShiPing) { tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.ShiPing1 ? " 视频分割上传".AddBlue() : " 视频分割上传"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.ShiPing1); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.ShiPing2 ? " 清理缓存".AddBlue() : " 清理缓存"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.ShiPing2); } } #endregion }
protected override void DrawLeft() { #region Unity 结构图 bool isUntiy = (type == EType.JieGuo || type == EType.JieGuo1 || type == EType.JieGuo2); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "Unity 结构图"; if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.JieGuo ? EZStyles.General.SideButtonSelected1 : EZStyles.General.SideButton1), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.JieGuo); } if (isUntiy) { tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.JieGuo1 ? " AudioSource".AddBlue() : " AudioSource"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.JieGuo1); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.JieGuo2 ? " Projector".AddBlue() : " Projector"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.JieGuo2); } } #endregion AddSpace_3(); #region 生命周期图 bool isLife = (type == EType.ShenMing || type == EType.ShenMing2); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "生命周期图"; if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.ShenMing ? EZStyles.General.SideButtonSelected2 : EZStyles.General.SideButton2), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.ShenMing); } if (isLife) { tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.ShenMing2 ? " 官方 详细图".AddBlue() : " 官方 详细图"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.ShenMing2); } } #endregion AddSpace_3(); #region 基类 bool isJiLie = (type == EType.JiLie || type == EType.JiLie1 || type == EType.JiLie2 || type == EType.JiLie3); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "基类"; if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.JiLie ? EZStyles.General.SideButtonSelected3 : EZStyles.General.SideButton3), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.JiLie1); } if (isJiLie) { tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.JiLie1 ? " Object".AddBlue() : " Object"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.JiLie1); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.JiLie2 ? " Component".AddBlue() : " Component"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.JiLie2); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.JiLie3 ? " Behaviour".AddBlue() : " Behaviour"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.JiLie3); } } #endregion AddSpace_3(); #region MonoBehaviour bool isMonoBehaviour = (type == EType.MonoBehaviour || type == EType.MonoBehaviour1); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "MonoBehaviour".AddSize(15); if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.MonoBehaviour ? EZStyles.General.SideButtonSelected4 : EZStyles.General.SideButton4), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.MonoBehaviour); } if (isMonoBehaviour) { tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.MonoBehaviour1 ? " 回调事件".AddBlue() : " 回调事件"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.MonoBehaviour1); } } #endregion AddSpace_3(); #region Transform/GameObject bool istg = (type == EType.TG || type == EType.Transform || type == EType.GameObject || type == EType.Find); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "Transform/GameObject".AddSize(12); if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.TG ? EZStyles.General.SideButtonSelected5 : EZStyles.General.SideButton5), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.TG); } if (istg) { tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Transform ? " Transform".AddBlue() : " Transform"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Transform); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.GameObject ? " GameObject".AddBlue() : " GameObject"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.GameObject); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Find ? " 查找 Find".AddBlue() : " 查找 Find"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Find); } } #endregion AddSpace_3(); #region Unity 事件 bool isTX = (type == EType.TX1); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "Unity 事件".AddSize(15); if (QUI.Button(tempLabel, EZStyles.GetStyle(isTX ? EZStyles.General.SideButtonSelected6 : EZStyles.General.SideButton6), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.TX1); } if (isTX) { tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.TX1 ? " UnityEvent".AddBlue() : " UnityEvent"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.TX1); } } #endregion AddSpace_3(); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "游戏暂停".AddSize(15); if (QUI.Button(tempLabel, EZStyles.GetStyle(isTX ? EZStyles.General.SideButtonSelected7 : EZStyles.General.SideButton7), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.TimeScale); } }
protected override void DrawLeft() { tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "Console"; if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.Log ? EZStyles.General.SideButtonSelected5 : EZStyles.General.SideButton5), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Log); } AddSpace_15(); #region Build 发布设置 MyCreate.Text("Build 发布设置"); bool isWindow = (type == EType.PlayerWindow || type == EType.PlayerWindow1 || type == EType.PlayerWindow2); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : " Window"; if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.PlayerWindow ? EZStyles.General.SideButtonSelected1 : EZStyles.General.SideButton1), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.PlayerWindow); } if (isWindow) { tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.PlayerWindow1 ? " 快速搜索".AddBlue() : " 快速搜索"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.PlayerWindow1); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.PlayerWindow2 ? " 详细版".AddBlue() : " 详细版"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.PlayerWindow2); } } AddSpace_3(); bool isAndroid = (type == EType.PlayerAndroid || type == EType.PlayerAndroid1 || type == EType.PlayerAndroid2); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : " Android"; if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.PlayerAndroid ? EZStyles.General.SideButtonSelected8 : EZStyles.General.SideButton8), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.PlayerAndroid); } if (isAndroid) { tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.PlayerAndroid1 ? " 快速搜索".AddBlue() : " 快速搜索"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.PlayerAndroid1); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.PlayerAndroid2 ? " 详细版".AddBlue() : " 详细版"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.PlayerAndroid2); } } #endregion AddSpace_15(); #region Project Settings MyCreate.Text("Edit -> Project Settings"); bool isProject = (type == EType.Editor || type == EType.Input || type == EType.Physics); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "Project"; if (QUI.Button(tempLabel, EZStyles.GetStyle(isProject ? EZStyles.General.SideButtonSelected2 : EZStyles.General.SideButton2), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Editor); } if (isAndroid) { tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Editor ? " Editor".AddBlue() : " Editor"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Editor); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Input ? " Input".AddBlue() : " Input"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Input); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Physics ? " Physics".AddBlue() : " Physics"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Physics); } } #endregion AddSpace_15(); #region Lighting MyCreate.Text("Window->Lighting->Settings"); bool isLighting = (type == EType.Lighting || type == EType.Lighting1 || type == EType.Lighting2 || type == EType.Lighting3 || type == EType.Lighting4 || type == EType.Lighting5); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "光照设置"; if (QUI.Button(tempLabel, EZStyles.GetStyle(isLighting ? EZStyles.General.SideButtonSelected3 : EZStyles.General.SideButton3), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Lighting1); } if (isLighting) { tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Lighting1 ? "Environment 环境".AddBlue() : "Environment 环境"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Lighting1); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Lighting2 ? "Realtime/Mixed 光照".AddBlue() : "Realtime/Mixed 光照"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Lighting2); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Lighting3 ? "Lightmapping Setting".AddBlue() : "Lightmapping Setting"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Lighting3); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Lighting4 ? "Other/Debug Setting".AddBlue() : "Other/Debug Setting"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Lighting4); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Lighting5 ? "Global/Object maps".AddBlue() : "Global/Object maps"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Lighting5); } } #endregion AddSpace_15(); #region Preferences MyCreate.Text("Edit -> Preferences"); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "编辑器偏爱设置".AddSize(15); if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.Preferences ? EZStyles.General.SideButtonSelected4 : EZStyles.General.SideButton4), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Preferences); } #endregion }
protected override void DrawLeft() { #region Application bool tmpApplication = (type == EType.Application || type == EType.Application1); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "Application"; if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.Application ? EZStyles.General.SideButtonSelected1 : EZStyles.General.SideButton1), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Application); } if (tmpApplication) { tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Application1 ? " 详细版".AddBlue() : " 详细版"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Application1); } } #endregion AddSpace(); #region SceneManager bool tmpScene = (type == EType.SceneManager || type == EType.Scene || type == EType.SceneManager2); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "SceneManager"; if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.SceneManager ? EZStyles.General.SideButtonSelected2 : EZStyles.General.SideButton2), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.SceneManager); } if (tmpScene) { tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Scene ? " Scene".AddBlue() : " Scene"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Scene); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.SceneManager2 ? " 其他相关".AddBlue() : " 其他相关"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.SceneManager2); } } #endregion AddSpace(); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "Screen"; if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.Screen ? EZStyles.General.SideButtonSelected3 : EZStyles.General.SideButton3), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Screen); } AddSpace(); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "Input"; if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.Input ? EZStyles.General.SideButtonSelected4 : EZStyles.General.SideButton4), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Input); } AddSpace(); #region Physics bool isPhysics = (type == EType.Physics || type == EType.Physics1); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "Physics"; if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.Physics ? EZStyles.General.SideButtonSelected5 : EZStyles.General.SideButton5), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Physics); } if (isPhysics) { tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Physics1 ? " 射线检测".AddBlue() : " 射线检测"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Physics1); } } #endregion AddSpace(); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "Mathf"; if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.Mathf ? EZStyles.General.SideButtonSelected6 : EZStyles.General.SideButton6), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Mathf); } AddSpace(); bool isNoUse = (type == EType.NoUse || type == EType.Handheld || type == EType.PrefabUtility || type == EType.GL || type == EType.GUIUtility); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "少使用但实用".AddSize(13); if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.NoUse ? EZStyles.General.SideButtonSelected7 : EZStyles.General.SideButton7), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Handheld); } if (isNoUse) { tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Handheld ? " Handheld".AddBlue() : " Handheld"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Handheld); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.PrefabUtility ? " PrefabUtility".AddBlue() : " PrefabUtility"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.PrefabUtility); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.GUIUtility ? " GUIUtility".AddBlue() : " GUIUtility"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.GUIUtility); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.GL ? " GL".AddBlue() : " GL"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.GL); } } }
protected override void DrawLeft() { #region StaticUtil bool isExe = (type == EType.Static || type == EType.Static1 || type == EType.Static2 || type == EType.Static3 || type == EType.Static4 || type == EType.Static5 || type == EType.Static6 || type == EType.Static7); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "StaticUtil"; if (QUI.Button(tempLabel, EZStyles.GetStyle(isExe ? EZStyles.General.SideButtonSelected1 : EZStyles.General.SideButton1), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Static1); } if (isExe) { tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Static1 ? " MyAssetUtil".AddBlue() : " MyAssetUtil"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Static1); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Static2 ? " MyColor".AddBlue() : " MyColor"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Static2); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Static3 ? " MyGUI".AddBlue() : " MyGUI"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Static3); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Static4 ? " MyIO".AddBlue() : " MyIO"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Static4); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Static5 ? " MyRandom".AddBlue() : " MyRandom"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Static5); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Static6 ? " MyType".AddBlue() : " MyType"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Static6); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Static7 ? " MyWebDownLoader".AddBlue() : " MyWebDownLoader"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Static7); } } #endregion AddSpace(); #region 数据结构 bool isWeb = (type == EType.ShuJuJieGuo || type == EType.ShuJuJieGuo1 || type == EType.ShuJuJieGuo2); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "数据结构"; if (QUI.Button(tempLabel, EZStyles.GetStyle(isWeb ? EZStyles.General.SideButtonSelected2 : EZStyles.General.SideButton2), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.ShuJuJieGuo); } if (isWeb) { tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.ShuJuJieGuo1 ? " MyDictionary".AddBlue() : " MyDictionary"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.ShuJuJieGuo1); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.ShuJuJieGuo2 ? " MyHuoCheTou".AddBlue() : " MyHuoCheTou"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.ShuJuJieGuo2); } } #endregion AddSpace(); #region 扩展方法 bool isExensions = (type == EType.Exensions || type == EType.Exensions1 || type == EType.Exensions2 || type == EType.Exensions3 || type == EType.Exensions4 || type == EType.Exensions5 || type == EType.Exensions6 || type == EType.Exensions7 || type == EType.Exensions8); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "扩展方法"; if (QUI.Button(tempLabel, EZStyles.GetStyle(isExensions ? EZStyles.General.SideButtonSelected3 : EZStyles.General.SideButton3), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Exensions1); } if (isExensions) { tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Exensions1 ? " 数组 扩展".AddBlue() : " 数组 扩展"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Exensions1); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Exensions2 ? " 字典 扩展".AddBlue() : " 字典 扩展"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Exensions2); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Exensions5 ? " List 扩展".AddBlue() : " List 扩展"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Exensions5); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Exensions3 ? " Transform 扩展".AddBlue() : " Transform 扩展"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Exensions3); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Exensions4 ? " GameObject 扩展".AddBlue() : " GameObject 扩展"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Exensions4); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Exensions6 ? " string 扩展".AddBlue() : " string 扩展"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Exensions6); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Exensions7 ? " Vector 扩展".AddBlue() : " Vector 扩展"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Exensions7); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Exensions8 ? " Camera 扩展".AddBlue() : " Camera 扩展"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Exensions8); } } #endregion AddSpace(); #region Editor bool isEditor = (type == EType.Editor || type == EType.Editor1 || type == EType.Editor2); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "PSPEditor"; if (QUI.Button(tempLabel, EZStyles.GetStyle(isEditor ? EZStyles.General.SideButtonSelected2 : EZStyles.General.SideButton2), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Editor1); } if (isEditor) { tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Editor1 ? " LoadRes".AddBlue() : " LoadRes"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Editor1); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Editor2 ? " OpenWindow".AddBlue() : " OpenWindow"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Editor2); } } #endregion }
protected override void DrawLeft() { tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "大纲"; if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.ZhongJie ? EZStyles.General.SideButtonSelected1 : EZStyles.General.SideButton1), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.ZhongJie); } AddSpace(); bool isYuMa = (type == EType.YuMa || type == EType.YuMa1 || type == EType.YuMa2 || type == EType.YuMa3 || type == EType.YuMa4 || type == EType.YuMa5 || type == EType.YuMa6); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "源码 问题"; if (QUI.Button(tempLabel, EZStyles.GetStyle(isYuMa ? EZStyles.General.SideButtonSelected2 : EZStyles.General.SideButton2), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.YuMa1); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.YuMa1 ? " 看源码".AddBlue() : " 看源码"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.YuMa1); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.YuMa2 ? " == 与 Equals 区别".AddBlue() : " == 与 Equals 区别"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.YuMa2); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.YuMa3 ? " 怪 前后问题".AddBlue() : " 怪 前后问题"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.YuMa3); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.YuMa4 ? " 操作运算符".AddBlue() : " 操作运算符"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.YuMa4); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.YuMa5 ? " 转 UGUI 坐标".AddBlue() : " 转 UGUI 坐标"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.YuMa5); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.YuMa6 ? " 复制 粘贴".AddBlue() : " 复制 粘贴"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.YuMa6); } AddSpace(); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "普通 问题"; if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.Normal ? EZStyles.General.SideButtonSelected3 : EZStyles.General.SideButton3), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Normal); } AddSpace(); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "Error 问题"; if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.Error ? EZStyles.General.SideButtonSelected3 : EZStyles.General.SideButton3), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Error); } }
protected override void DrawLeft() { tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : " [识英文]".AddSize(16); if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.LiZiPro2 ? EZStyles.General.SideButtonSelected1 : EZStyles.General.SideButton1), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.LiZiPro2); } AddSpace_3(); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : " 粒子总结"; if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.ZhongJie ? EZStyles.General.SideButtonSelected2 : EZStyles.General.SideButton2), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.ZhongJie); } AddSpace_3(); bool tmpOther = (type == EType.LiZi || type == EType.LiZi1 || type == EType.LiZi2 || type == EType.LiZi3 || type == EType.LiZi4 || type == EType.LiZi5 || type == EType.LiZi6); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "粒子系统"; if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.LiZi ? EZStyles.General.SideButtonSelected3 : EZStyles.General.SideButton3), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.LiZi); } if (tmpOther) { tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.LiZi1 ? "Emission(发射模块)".AddBlue() : "Emission(发射模块)"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.LiZi1); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.LiZi2 ? "Shape(形状模块)".AddBlue() : "Shape(形状模块)"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.LiZi2); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.LiZi3 ? "Collision(碰撞)".AddBlue() : "Collision(碰撞)"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.LiZi3); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.LiZi4 ? "其他模块".AddBlue() : "其他模块"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.LiZi4); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.LiZi5 ? "TextureSA(序列图模块)".AddBlue() : "TextureSA(序列图模块)"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.LiZi5); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.LiZi6 ? "Renderer(渲染模块)".AddBlue() : "Renderer(渲染模块)"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.LiZi6); } } MyCreate.AddSpace(20); bool tmpProfiler = (type == EType.Profiler || type == EType.Profiler1 || type == EType.Profiler2); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "Profiler"; if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.Profiler ? EZStyles.General.SideButtonSelected5 : EZStyles.General.SideButton5), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Profiler); } if (tmpProfiler) { tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Profiler1 ? " 其他模块".AddBlue() : " 其他模块"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Profiler1); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Profiler2 ? " Tip".AddBlue() : " Tip"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Profiler2); } } }
protected override void DrawLeft() { #region EasyTouch bool isShiPing = (type == EType.EasyTouch || type == EType.EasyTouch1 || type == EType.EasyTouch2 || type == EType.EasyTouch3 || type == EType.EasyTouch4 || type == EType.EasyTouch5 || type == EType.EasyTouch22 || type == EType.ET); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "EasyTouch"; if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.EasyTouch ? EZStyles.General.SideButtonSelected1 : EZStyles.General.SideButton1), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.EasyTouch); } if (isShiPing) { tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.ET ? " 总结".AddBlue() : " 总结"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.ET); } MyCreate.Text("无界面"); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.EasyTouch1 ? " QuickOnClick".AddBlue() : " QuickOnClick"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.EasyTouch1); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.EasyTouch2 ? " Gesture 字段".AddBlue() : " Gesture 字段"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.EasyTouch2); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.EasyTouch22 ? " Gesture 方法".AddBlue() : " Gesture 方法"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.EasyTouch22); } MyCreate.Text("有界面"); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.EasyTouch3 ? " ETCJoystick".AddBlue() : " ETCJoystick"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.EasyTouch3); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.EasyTouch4 ? " ETCDPad".AddBlue() : " ETCDPad"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.EasyTouch4); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.EasyTouch5 ? " ETCTouchPad".AddBlue() : " ETCTouchPad"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.EasyTouch5); } } #endregion AddSpace(); #region Uniwebview tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "Uniwebview"; if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.Uniwebview ? EZStyles.General.SideButtonSelected2 : EZStyles.General.SideButton2), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Uniwebview); } #endregion AddSpace(); #region Zip 压缩 tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "Zip 压缩"; if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.Zip ? EZStyles.General.SideButtonSelected3 : EZStyles.General.SideButton3), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Zip); } #endregion AddSpace(); #region Destory2D bool isAC = type == EType.Destory2D || type == EType.AC1 || type == EType.AC2; tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "破坏2D"; if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.Destory2D ? EZStyles.General.SideButtonSelected4 : EZStyles.General.SideButton4), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.AC1); } if (isAC) { tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.AC1 ? " 文档翻译".AddBlue() : " 文档翻译"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.AC1); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.AC2 ? " 破坏的原理".AddBlue() : " 破坏的原理"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.AC2); } } #endregion #region EasySave bool isEasySave = type == EType.EasySave || type == EType.EasySave2 || type == EType.EasySave3; tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "EasySave"; if (QUI.Button(tempLabel, EZStyles.GetStyle(isEasySave ? EZStyles.General.SideButtonSelected4 : EZStyles.General.SideButton4), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.EasySave); } if (isEasySave) { tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.EasySave ? "使用".AddBlue() : "使用"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.EasySave); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.EasySave2 ? "核心类 ES3 ".AddBlue() : "核心类 ES3"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.EasySave2); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.EasySave3 ? "ES3Settings 设置 ".AddBlue() : "ES3Settings 设置"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.EasySave3); } } #endregion }
protected override void DrawLeft() { #region Animation bool isAnimation = (type == EType.Animation || type == EType.Animation1 || type == EType.Animation2); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "Animation"; if (QUI.Button(tempLabel, EZStyles.GetStyle(isAnimation ? EZStyles.General.SideButtonSelected2 : EZStyles.General.SideButton2), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Animation1); } if (isAnimation) { tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Animation1 ? " 面板".AddBlue() : " 面板"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Animation1); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Animation2 ? " API".AddBlue() : " API"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Animation2); } } #endregion AddSpace(); #region Animator bool isAnimator = (type == EType.Animator || type == EType.Animator1 || type == EType.Animator2 || type == EType.Animator3); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "Animator"; if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.Animator ? EZStyles.General.SideButtonSelected3 : EZStyles.General.SideButton3), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Animator); } if (isAnimator) { tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Animator1 ? " Animator1".AddBlue() : " Animator1"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Animator1); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Animator2 ? " Animator2".AddBlue() : " Animator2"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Animator2); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Animator3 ? " Animator3".AddBlue() : " Animator3"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Animator3); } } #endregion AddSpace(); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "动画相关"; if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.AnimOther ? EZStyles.General.SideButtonSelected5 : EZStyles.General.SideButton5), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.AnimOther); } AddSpace(); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "Itween"; if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.Itween ? EZStyles.General.SideButtonSelected6 : EZStyles.General.SideButton6), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Itween); } AddSpace(); #region DoTween bool isDoTween = (type == EType.DoTween || type == EType.DoTween1 || type == EType.DoTween2 || type == EType.DoTween3 || type == EType.DoTween4 || type == EType.DoTween5 || type == EType.DoTween6 || type == EType.DoTween7); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "DoTween"; if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.DoTween ? EZStyles.General.SideButtonSelected1 : EZStyles.General.SideButton1), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.DoTween); } if (isDoTween) { tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.DoTween2 ? " 创建 Tweener 总结".AddBlue() : " 创建 Tweener 总结"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.DoTween2); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.DoTween3 ? " 相机、灯 扩展".AddBlue() : " 相机、灯 扩展"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.DoTween3); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.DoTween4 ? " Transform 扩展".AddBlue() : " Transform 扩展"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.DoTween4); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.DoTween5 ? " 渲染相关 扩展".AddBlue() : " 渲染相关 扩展"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.DoTween5); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.DoTween6 ? " 刚体 扩展".AddBlue() : " 刚体 扩展"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.DoTween6); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.DoTween7 ? " 音频 扩展".AddBlue() : " 音频 扩展"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.DoTween7); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.DoTween1 ? " Tools".AddBlue() : " Tools"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.DoTween1); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.DoTweenPath ? " DoTweenPath".AddBlue() : " DoTweenPath"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.DoTweenPath); } } #endregion }
protected override void DrawLeft() { tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "设计原则"; if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.YuanZe ? EZStyles.General.SideButtonSelected8 : EZStyles.General.SideButton8), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.YuanZe); } MyCreate.Text("创建型"); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "工厂模式"; if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.Create1 ? EZStyles.General.SideButtonSelected1 : EZStyles.General.SideButton1), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Create1); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "建造者模式"; if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.Create3 ? EZStyles.General.SideButtonSelected1 : EZStyles.General.SideButton1), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Create3); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "创建其他"; if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.Create4 ? EZStyles.General.SideButtonSelected1 : EZStyles.General.SideButton1), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Create4); } AddSpace_3(); MyCreate.Text("结构型"); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "装饰模式"; if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.JieGuo1 ? EZStyles.General.SideButtonSelected2 : EZStyles.General.SideButton2), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.JieGuo1); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "结构其他"; if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.JieGuo2 ? EZStyles.General.SideButtonSelected2 : EZStyles.General.SideButton2), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.JieGuo2); } AddSpace_3(); MyCreate.Text("行为型"); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "策略模式"; if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.XingWei1 ? EZStyles.General.SideButtonSelected3 : EZStyles.General.SideButton3), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.XingWei1); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "观察者模式"; if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.XingWei2 ? EZStyles.General.SideButtonSelected3 : EZStyles.General.SideButton3), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.XingWei2); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "状态模式"; if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.XingWei3 ? EZStyles.General.SideButtonSelected3 : EZStyles.General.SideButton3), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.XingWei3); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "职责链模式"; if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.XingWei4 ? EZStyles.General.SideButtonSelected3 : EZStyles.General.SideButton3), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.XingWei4); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "行为其他"; if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.XingWei5 ? EZStyles.General.SideButtonSelected3 : EZStyles.General.SideButton3), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.XingWei5); } }
protected override void DrawLeft() { MyCreate.Text("Renderer 渲染体"); #region Renderer 基类 bool tmpOther = (type == EType.Renderer || type == EType.Renderer1 || type == EType.Renderer2 || type == EType.Renderer3 || type == EType.Renderer4); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "Renderer 基类".AddSize(13); if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.Renderer ? EZStyles.General.SideButtonSelected1 : EZStyles.General.SideButton1), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Renderer); } if (tmpOther) { tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Renderer1 ? " 各子类应用场景".AddBlue() : " 各子类应用场景"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Renderer1); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Renderer2 ? " 各子类图".AddBlue() : " 各子类图"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Renderer2); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Renderer3 ? " 面板对比图".AddBlue() : " 面板对比图"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Renderer3); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Renderer4 ? " Bounds".AddBlue() : " Bounds"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Renderer4); } } #endregion AddSpace_3(); MyCreate.Text("______"); #region SkinnedMeshRenderer bool tmpSkinned = (type == EType.SkinMesh || type == EType.SkinMesh1); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "SkinnedMeshRenderer".AddSize(13); if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.SkinMesh ? EZStyles.General.SideButtonSelected2 : EZStyles.General.SideButton2), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.SkinMesh); } if (tmpSkinned) { tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.SkinMesh1 ? "与 MeshRenderer 相同点".AddColorAndSize(MyEnumColor.Blue, 11, false): "与 MeshRenderer 相同点".AddSize(11)); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.SkinMesh1); } } #endregion tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "MeshRenderer".AddSize(13); if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.Mesh ? EZStyles.General.SideButtonSelected8 : EZStyles.General.SideButton8), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Mesh); } AddSpace_3(); MyCreate.Text("______"); bool tmpLine = (type == EType.Line || type == EType.Line1); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "LineRenderer".AddSize(13); if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.Line ? EZStyles.General.SideButtonSelected3 : EZStyles.General.SideButton3), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Line); } if (tmpLine) { tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Line1 ? "与 TrailRenderer 相同点".AddColorAndSize(MyEnumColor.Blue, 11, false) : "与 TrailRenderer 相同点".AddSize(11)); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Line1); } } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "TrailRenderer".AddSize(13); if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.Trail ? EZStyles.General.SideButtonSelected4 : EZStyles.General.SideButton4), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Trail); } AddSpace_3(); bool tmpSprite = (type == EType.Sprite || type == EType.Sprite1); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "SpriteRenderer".AddSize(13); if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.Sprite ? EZStyles.General.SideButtonSelected5 : EZStyles.General.SideButton5), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Sprite); } if (tmpSprite) { tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Sprite1 ? "与 Canvas 相同点".AddColorAndSize(MyEnumColor.Blue, 11, false) : "与 Canvas 相同点".AddSize(11)); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Sprite1); } } AddSpace_3(); bool tmpOther2 = (type == EType.Other || type == EType.Billboard || type == EType.Other1 || type == EType.Other2); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "其他 Renderer".AddSize(13); if (QUI.Button(tempLabel, EZStyles.GetStyle(tmpOther2 ? EZStyles.General.SideButtonSelected6 : EZStyles.General.SideButton6), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Billboard); } if (tmpOther2) { tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Billboard ? "BillboardRenderer".AddColorAndSize(MyEnumColor.Blue, 11, false) : "BillboardRenderer".AddSize(11)); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Billboard); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Other1 ? "粒子 Renderer".AddColorAndSize(MyEnumColor.Blue, 11, false) : "粒子 Renderer".AddSize(11)); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Other1); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Other2 ? "TilemapRenderer".AddColorAndSize(MyEnumColor.Blue, 11, false) : "粒子 Renderer".AddSize(11)); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Other2); } } AddSpace(); MyCreate.Text("Collider 碰撞体"); bool tmpCollider = (type == EType.Collider || type == EType.Collider1 || type == EType.Collider2); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "Collider 基类".AddSize(13); if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.Collider ? EZStyles.General.SideButtonSelected7 : EZStyles.General.SideButton7), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Collider); } if (tmpCollider) { tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Collider1 ? " Collision".AddBlue() : " Collision"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Collider1); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.Collider2 ? " PolygonCollider2D".AddBlue() : " PolygonCollider2D"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Collider2); } } }
protected override void DrawLeft() { tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "Frist"; if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.Frist ? EZStyles.General.SideButtonSelected1 : EZStyles.General.SideButton1), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Frist); } AddSpace(); #region StrangeIoc bool isSIOC = (type == EType.StrangeIoc || type == EType.StrangeIoc1); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "StrangeIoc"; if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.StrangeIoc ? EZStyles.General.SideButtonSelected2 : EZStyles.General.SideButton2), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.StrangeIoc); } if (isSIOC) { tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.StrangeIoc1 ? " 框架图".AddBlue() : " 框架图"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.StrangeIoc1); } } #endregion AddSpace(); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "全单例"; if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.DanLi ? EZStyles.General.SideButtonSelected3 : EZStyles.General.SideButton3), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.DanLi); } AddSpace(); #region 组合系统 bool isString = (type == EType.CeJi || type == EType.CeJi1 || type == EType.CeJi2 || type == EType.CeJi3 || type == EType.CeJi4 || type == EType.CeJi5 || type == EType.CeJi6); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "组合系统"; if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.CeJi ? EZStyles.General.SideButtonSelected4 : EZStyles.General.SideButton4), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.CeJi); } if (isString) { tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.CeJi1 ? " 角色系统".AddBlue() : " 角色系统"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.CeJi1); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.CeJi2 ? " 技能系统".AddBlue() : " 技能系统"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.CeJi2); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.CeJi3 ? " 关卡系统".AddBlue() : " 关卡系统"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.CeJi3); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.CeJi4 ? " 数据控制系统".AddBlue() : " 数据控制系统"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.CeJi4); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.CeJi5 ? " UI 系统".AddBlue() : " UI 系统"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.CeJi5); } tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : (type == EType.CeJi6 ? " 剧情设计".AddBlue() : " 剧情设计"); if (QUI.Button(tempLabel, EZStyles.GetStyle(EZStyles.General.SideButtonBlue), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.CeJi6); } } #endregion AddSpace(); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "GOAP"; if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.GOAP ? EZStyles.General.SideButtonSelected5 : EZStyles.General.SideButton5), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.GOAP); } }
protected override void DrawLeft() { MyCreate.Text("struct 结构体:"); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "Quaternion"; if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.Quaternion ? EZStyles.General.SideButtonSelected1 : EZStyles.General.SideButton1), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Quaternion); } AddSpace_3(); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "Rect"; if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.Rect ? EZStyles.General.SideButtonSelected2 : EZStyles.General.SideButton2), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Rect); } AddSpace_3(); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "Vector3"; if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.Vector3 ? EZStyles.General.SideButtonSelected3: EZStyles.General.SideButton3), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Vector3); } AddSpace_3(); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "Matrix4x4"; if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.Matrix4x4 ? EZStyles.General.SideButtonSelected4 : EZStyles.General.SideButton4), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Matrix4x4); } AddSpace_3(); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "Scene"; if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.Scene ? EZStyles.General.SideButtonSelected4 : EZStyles.General.SideButton4), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Scene); } AddSpace_3(); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "Color"; if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.Color ? EZStyles.General.SideButtonSelected5 : EZStyles.General.SideButton5), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.Color); } AddSpace_3(); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "LayerMask"; if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.LayerMask ? EZStyles.General.SideButtonSelected6 : EZStyles.General.SideButton6), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.LayerMask); } AddSpace_15(); MyCreate.Text("Enum 枚举:"); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "RuntimePlatform".AddSize(15); if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.RuntimePlatform ? EZStyles.General.SideButtonSelected7 : EZStyles.General.SideButton7), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.RuntimePlatform); } AddSpace_3(); tempLabel = mWindowSettings.sidebarIsExpanded.faded < 0.6f ? "" : "BuildTarget".AddSize(15); if (QUI.Button(tempLabel, EZStyles.GetStyle(type == EType.BuildTarget ? EZStyles.General.SideButtonSelected8 : EZStyles.General.SideButton8), mWindowSettings.SidebarCurrentWidth, mWindowSettings.sidebarButtonHeight)) { SetTheSame(EType.BuildTarget); } }