Skip to content

Commit

Permalink
🔥 Include Slots in GuiScreen
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt-MX committed Nov 6, 2024
1 parent f0e6d31 commit 4f9f0d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import com.mattmx.ktgui.components.RefreshBlock
import com.mattmx.ktgui.components.button.ButtonClickedEvent
import com.mattmx.ktgui.components.button.GuiButton
import com.mattmx.ktgui.components.button.IGuiButton
import com.mattmx.ktgui.components.screen.slot.Slots
import com.mattmx.ktgui.components.signal.GuiSignalOwner
import com.mattmx.ktgui.components.signal.Signal
import com.mattmx.ktgui.event.ContinuousEventCallback
Expand Down Expand Up @@ -52,6 +53,7 @@ open class GuiScreen(
player.openInventory.title = value.legacy()
}
}
val slots = Slots(this)
val onRefresh = EventCallback<Unit>()

// Can be used to identify dsl guis
Expand Down
2 changes: 0 additions & 2 deletions api/src/main/kotlin/com/mattmx/ktgui/f.kt
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ import org.bukkit.entity.Player
fun createMenu(player: Player): GuiScreen {
return gui(3) {
title { !"Balls" }

val slots = Slots(this)

button(Material.RED_STAINED_GLASS) {
named { !"Test" }
Expand Down

0 comments on commit 4f9f0d9

Please sign in to comment.