void DrawWarriorSettings() { GUILayout.BeginArea(warriorSection); GUILayout.Label("Warrior", skin.GetStyle("WarriorHeader")); EditorGUILayout.BeginHorizontal(); GUILayout.Label("Class", skin.GetStyle("WarriorField")); warriorData.classType = (Types.WarriorClassType)EditorGUILayout.EnumPopup(warriorData.classType, skin.GetStyle("WarriorField")); EditorGUILayout.EndHorizontal(); EditorGUILayout.BeginHorizontal(); GUILayout.Label("Weapon", skin.GetStyle("WarriorField")); warriorData.wpnType = (Types.WarriorWpnType)EditorGUILayout.EnumPopup(warriorData.wpnType, skin.GetStyle("WarriorField")); EditorGUILayout.EndHorizontal(); if (GUILayout.Button("Create!", GUILayout.Height(40))) { GeneralSettings.OpenWinow(GeneralSettings.SettingsType.WARRIOR); } GUILayout.EndArea(); }
void DrawRougeSettings() { GUILayout.BeginArea(rougeSection); GUILayout.Label("Rouge", skin.GetStyle("RougeHeader")); EditorGUILayout.BeginHorizontal(); GUILayout.Label("Strategy", skin.GetStyle("RougeField")); rougeData.strategyType = (Types.RougeStrategyType)EditorGUILayout.EnumPopup(rougeData.strategyType, skin.GetStyle("RougeField")); EditorGUILayout.EndHorizontal(); EditorGUILayout.BeginHorizontal(); GUILayout.Label("Weapon", skin.GetStyle("RougeField")); rougeData.wpnType = (Types.RougeWpnType)EditorGUILayout.EnumPopup(rougeData.wpnType, skin.GetStyle("RougeField")); EditorGUILayout.EndHorizontal(); if (GUILayout.Button("Create!", GUILayout.Height(40))) { GeneralSettings.OpenWinow(GeneralSettings.SettingsType.ROUGE); } GUILayout.EndArea(); }
void DrawMageSettings() { GUILayout.BeginArea(mageSection); GUILayout.Space(iconSize + 8); GUILayout.Label("Mage", skin.GetStyle("MageHeader")); EditorGUILayout.BeginHorizontal(); GUILayout.Label("Damage", skin.GetStyle("MageField")); mageData.dmgType = (Types.MageDmgType)EditorGUILayout.EnumPopup(mageData.dmgType, skin.GetStyle("MageField")); // add different styles at the end EditorGUILayout.EndHorizontal(); EditorGUILayout.BeginHorizontal(); GUILayout.Label("Weapon", skin.GetStyle("MageField")); mageData.wpnType = (Types.MageWpnType)EditorGUILayout.EnumPopup(mageData.wpnType, skin.GetStyle("MageField")); EditorGUILayout.EndHorizontal(); if (GUILayout.Button("Create!", GUILayout.Height(40))) { GeneralSettings.OpenWinow(GeneralSettings.SettingsType.MAGE); } GUILayout.EndArea(); }