diff --git a/src/main/kotlin/net/axay/kspigot/gui/GUIBuilder.kt b/src/main/kotlin/net/axay/kspigot/gui/GUIBuilder.kt index d28f29cf..3d574a80 100644 --- a/src/main/kotlin/net/axay/kspigot/gui/GUIBuilder.kt +++ b/src/main/kotlin/net/axay/kspigot/gui/GUIBuilder.kt @@ -17,11 +17,32 @@ class GUIBuilder( private val guiCreator: GUICreator ) { + /** + * The title of this GUI. + * This title will be visible for every page of + * this GUI. + */ var title: String = "" + /** + * The transition applied, if another GUI redirects to + * this GUI. + */ var transitionTo: InventoryChangeEffect? = null + + /** + * The transition applied, if this GUI redirects to + * another GUI and the other GUI has no transitionTo + * value defined. + */ var transitionFrom: InventoryChangeEffect? = null + /** + * The default page will be loaded first for every + * GUI instance. + */ + var defaultPage = 1 + private val guiSlots = HashMap>() private var onClickElement: ((GUIClickEvent) -> Unit)? = null