示例#1
0
    private static void ShowWindow()
    {
        positiveImage = Resources.Load <Sprite>("FloatingBar");
        negativeImage = Resources.Load <Sprite>("FloatingBar");
        FloatingBarsCreateWindow window = (FloatingBarsCreateWindow)GetWindow(typeof(FloatingBarsCreateWindow));

        window.minSize      = new Vector2(400, 400);
        window.titleContent = new GUIContent("Create Bar");
        window.Show();
    }
示例#2
0
    private static void ShowEditWindow()
    {
        SaveDatas();

        isOnEditMode = true;

        FloatingBarsCreateWindow window = (FloatingBarsCreateWindow)GetWindow(typeof(FloatingBarsCreateWindow));

        window.minSize      = new Vector2(400, 400);
        window.titleContent = new GUIContent("Edit Bar");
        window.Show();
    }