Skip to content

package new_project

import "kaiju/editor/editor_overlay/new_project"

Types

Config

struct

type Config struct {
    // OnCreate will be called when the "Create" button is clicked, it will
    // return the name that the developer typed in and the path they selected.
    OnCreate func(name, path string)

    // OnOpen will be called when the "Browse" button is clicked, it will return
    // the path that was selected.
    OnOpen func(string)

    // Error will be used to print out an error to the developer in the window.
    Error string

    // RecentProjects is a list of paths to recent projects.
    RecentProjects []string
}

NewProject

struct

type NewProject struct {
    // Has unexported fields.
}

Show

func Show(host *engine.Host, config Config) (*NewProject, error)

NewProject.Close

func (np *NewProject) Close()

OverlayData

struct

type OverlayData struct {
    Error          string
    RecentProjects []struct {
        Path  string
        Label string
}

}