mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-19 23:14:05 +09:00
generalised catbar
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user