generalised catbar

This commit is contained in:
minjaesong
2024-01-10 16:38:51 +09:00
parent 724a92bc18
commit ed70b16384
16 changed files with 213 additions and 116 deletions

View File

@@ -192,6 +192,9 @@ abstract class UICanvas(
fun addUIitem(uiItem: UIItem) {
if (!uiItems.contains(uiItem)) uiItems.add(uiItem)
}
fun addUIitem(template: UITemplate) {
template.getUIitems().forEach { addUIitem(it) }
}
fun mouseInScreen(x: Int, y: Int) = x in 0 until App.scr.windowW && y in 0 until App.scr.windowH