Skip to content

net.kernelpanicsoft.archie.gui

Types

AUIScopeManager

Global registry of active CoroutineScopes created by open GUI screens.

ComposeContainerScreen

abstract class ComposeContainerScreen<T : AbstractContainerMenu>(
    menu: T, 
    playerInventory: Inventory, 
    title: Component, 
    val asynchronous: Boolean = true
) : AbstractContainerScreen<T> , CoroutineScope

A Compose-driven AbstractContainerScreen base class with layer support, async recomposition, and full pointer/keyboard input dispatch.

ComposeScreen

abstract class ComposeScreen(title: Component, val asynchronous: Boolean = true) : Screen, CoroutineScope

A Compose-driven Minecraft Screen base class with layer support, async recomposition, and full pointer/keyboard input dispatch.

SlotData

data class SlotData(val groups: MutableMap<String, SlotGroup> = mutableMapOf())

SlotGroup

data class SlotGroup(
    var x: Int = 0, 
    var y: Int = 0, 
    var width: Int = 0, 
    var height: Int = 0, 
    var slots: MutableSet<IntCoordinates> = mutableSetOf()
)

Properties

LocalContainer

val LocalContainer: ProvidableCompositionLocal<ComposeContainerScreen<*>>

Provides the current ComposeContainerScreen to composables in its tree.

LocalScreen

val LocalScreen: ProvidableCompositionLocal<ComposeScreen>

Provides the current ComposeScreen to any composable in its tree.

LocalSlotData

val LocalSlotData: ProvidableCompositionLocal<SlotData>

LocalSlotGroup

val LocalSlotGroup: ProvidableCompositionLocal<SlotGroup>

Functions

Slot

@Composable



fun Slot(modifier: Modifier = Modifier)

Slots

@Composable



fun Slots(
    id: String, 
    width: Int, 
    height: Int, 
    content: @Composable



 () -> Unit
): SlotGroup