浏览代码

Fixed background style for button tabs in welcome screen

/main
peeweek 5 年前
当前提交
489b9e15
共有 1 个文件被更改,包括 17 次插入13 次删除
  1. 30
      Editor/WelcomeScreen/WelcomeScreen.cs

30
Editor/WelcomeScreen/WelcomeScreen.cs


using (new GUILayout.HorizontalScope())
{
GUILayout.FlexibleSpace();
bool value = false;
value = wizardMode == WizardMode.TipOfTheDay;
value = GUILayout.Toggle(value, " Tips ", Styles.buttonLeft);
if(value)
wizardMode = WizardMode.TipOfTheDay;
using (new GUILayout.HorizontalScope(EditorStyles.miniButton))
{
bool value = false;
value = wizardMode == WizardMode.FirstTimeSetup;
value = GUILayout.Toggle(value, " Setup ", Styles.buttonMid);
if (value)
wizardMode = WizardMode.FirstTimeSetup;
value = wizardMode == WizardMode.TipOfTheDay;
value = GUILayout.Toggle(value, " Tips ", Styles.buttonLeft);
if(value)
wizardMode = WizardMode.TipOfTheDay;
value = wizardMode == WizardMode.About;
value = GUILayout.Toggle(value, " About ", Styles.buttonRight);
if(value)
wizardMode = WizardMode.About;
value = wizardMode == WizardMode.FirstTimeSetup;
value = GUILayout.Toggle(value, " Setup ", Styles.buttonMid);
if (value)
wizardMode = WizardMode.FirstTimeSetup;
value = wizardMode == WizardMode.About;
value = GUILayout.Toggle(value, " About ", Styles.buttonRight);
if(value)
wizardMode = WizardMode.About;
}
GUILayout.FlexibleSpace();
}

正在加载...
取消
保存