UINSMenu is made to show how to code 'UI dragging'

This commit is contained in:
Minjae Song
2018-12-09 20:00:52 +09:00
parent 0c20ed3418
commit b44699ae04
5 changed files with 80 additions and 13 deletions

View File

@@ -37,8 +37,8 @@ class UITooltip : UICanvas() {
}
override fun renderUI(batch: SpriteBatch, camera: Camera) {
val mouseX = Terrarum.mouseScreenX.toFloat() + 4
val mouseY = Terrarum.mouseScreenY.toFloat() - 6
val mouseX = 4f
val mouseY = 6f
val tooltipY = mouseY - textures.tileH