An easy to use Unity 3D library for creating illustrated Interactive Fiction games and more.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.8 KiB

using System;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
namespace UnityTest
{
public static class Styles
{
public static GUIStyle info;
public static GUIStyle testList;
public static GUIStyle selectedFoldout;
public static GUIStyle foldout;
public static GUIStyle toolbarLabel;
public static GUIStyle testName;
private static readonly Color k_SelectedColor = new Color(0.3f, 0.5f, 0.85f);
static Styles()
{
info = new GUIStyle(EditorStyles.wordWrappedLabel);
info.wordWrap = false;
info.stretchHeight = true;
info.margin.right = 15;
testList = new GUIStyle("CN Box");
testList.margin.top = 0;
testList.padding.left = 3;
foldout = new GUIStyle(EditorStyles.foldout);
selectedFoldout = new GUIStyle(EditorStyles.foldout);
selectedFoldout.onFocused.textColor = selectedFoldout.focused.textColor =
selectedFoldout.onActive.textColor = selectedFoldout.active.textColor =
selectedFoldout.onNormal.textColor = selectedFoldout.normal.textColor = k_SelectedColor;
toolbarLabel = new GUIStyle(EditorStyles.toolbarButton);
toolbarLabel.normal.background = null;
toolbarLabel.contentOffset = new Vector2(0, -2);
testName = new GUIStyle(EditorStyles.label);
testName.padding.left += 12;
testName.focused.textColor = testName.onFocused.textColor = k_SelectedColor;
}
}
}