McWindowHeader

@Composable
fun McWindowHeader(gui: MinecraftComposeGui, title: String = "")

Adds an opinionated window header suitable for MinecraftComposeGuis. This header provides a cross for closing the gui. You may use this in a Column, otherwise it will overlay with other components.

Parameters

gui

the gui which should be closed if the player uses the top-right cross

title

the current title of the gui

Sources

Link copied to clipboard