Package-level declarations

Types

Link copied to clipboard
class Editor : Application

The main entry point for the Editor application. This is a JVM-only application (i.e. cannot be run in a browser).

Link copied to clipboard
object EditorCommands : Commands
Link copied to clipboard
Link copied to clipboard
object KydTheme : ThemeBuilder

Designed to be combined with the default Tantalum theme.

Link copied to clipboard
class MainView(val stage: Stage)
Link copied to clipboard
open class State

A collection of properties, based on the current Game, and the selected Resource. The properties are used (by MainView and ResourcesDock etc.) to carry out actions, and also to hide/show/disable some actions. e.g. you cannot open a resource in an external application when selectedFile is null (i.e. when the resource is not a FileResource).

Properties

Link copied to clipboard
val editorIcons: Icons.ResizableIcons
Link copied to clipboard
val editorResources: Resources
Link copied to clipboard
Link copied to clipboard
val smallEditorIcons: Icons.SizedIcons
Link copied to clipboard
val tinyEditorIcons: Icons.SizedIcons

Functions

Link copied to clipboard
Link copied to clipboard
fun attribute(label: String, control: () -> Node): VBox
fun attribute(label: String, control: Node): VBox
Link copied to clipboard
fun File.browse()
Link copied to clipboard
fun clamp(value: Int, min: Int, max: Int): Int
Link copied to clipboard
fun Tab.close()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Creates an editor (such as a TextField, IntSpinner etc. for an AttributeValue). Used by Role.

Link copied to clipboard
fun createCustomPropertiesBox(customisable: Customisable, relativeToResource: Resource): Node
Link copied to clipboard
fun createCustomPropertiesForm(customisable: Customisable, relativeToResource: Resource): FormGrid
Link copied to clipboard
Link copied to clipboard
fun edges(top: Node, right: Node, bottom: Node, left: Node): HBox
Link copied to clipboard
fun fileButton(file: File, externalApplication: String): SplitMenuButton
Link copied to clipboard
Link copied to clipboard

Returns the directory where any child FileResources will be stored.

Link copied to clipboard
fun Node.grow()
Link copied to clipboard
fun mainMenu(actions: Actions): MenuBar
Link copied to clipboard
fun mainToolBar(actions: Actions, state: State): ToolBar
Link copied to clipboard
fun nameField(): TextField

Creates a TextField, suitable for Resource.name

Link copied to clipboard
fun nameFilenameField(folder: File): TextField

Creates a TextField, suitable for FileResource.filename

Link copied to clipboard
fun File.open()
Link copied to clipboard
fun openFile(file: File, externalApplication: String)

Opens the file in an external program.

Link copied to clipboard
Link copied to clipboard
fun popupResourcesChildren(res: ParentResource, fromNode: Node, side: Side = Side.BOTTOM)
Link copied to clipboard
Link copied to clipboard
fun saveTexture(texture: Texture, file: File)
Link copied to clipboard
fun twoFields(separator: String, a: Node, b: Node): ThreeRow
Link copied to clipboard
fun ColorButton.withHexText(): HBox
Link copied to clipboard
fun Node.withInformation(text: String, block: VBox.() -> Unit? = null): VBox
Link copied to clipboard
fun xByY(x: Node, y: Node): ThreeRow
Link copied to clipboard
fun xCommaY(x: Node, y: Node): ThreeRow