widget manager refact
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package inc
|
||||
|
||||
import (
|
||||
inkwell "git.teletypegames.org/engines/inkwell"
|
||||
)
|
||||
|
||||
func init() {
|
||||
WidgetManager.Register(gated("inventory", &inkwell.InventoryBar{
|
||||
Name: "inventory",
|
||||
Origin: inkwell.Point{
|
||||
X: Pad + 2,
|
||||
Y: invY,
|
||||
},
|
||||
Slots: 8,
|
||||
Cols: 4,
|
||||
SlotSize: invSlot,
|
||||
Gap: invGap,
|
||||
}))
|
||||
}
|
||||
Reference in New Issue
Block a user