simplified a structure of UIs a bit

This commit is contained in:
minjaesong
2017-07-16 23:15:32 +09:00
parent 942971f456
commit 485cbe1206
29 changed files with 321 additions and 371 deletions

View File

@@ -11,7 +11,7 @@ import com.badlogic.gdx.graphics.g2d.SpriteBatch
*
* Created by SKYHi14 on 2017-03-13.
*/
class UIItemTextButton(
open class UIItemTextButton(
parentUI: UICanvas,
val labelText: String,
override var posX: Int,
@@ -44,9 +44,6 @@ class UIItemTextButton(
var highlighted: Boolean = false
override fun update(delta: Float) {
}
private val glyphLayout = GlyphLayout()
override fun render(batch: SpriteBatch) {
@@ -78,34 +75,6 @@ class UIItemTextButton(
)
}
override fun keyDown(keycode: Int): Boolean {
return false
}
override fun keyUp(keycode: Int): Boolean {
return false
}
override fun mouseMoved(screenX: Int, screenY: Int): Boolean {
return false
}
override fun touchDragged(screenX: Int, screenY: Int, pointer: Int): Boolean {
return false
}
override fun touchDown(screenX: Int, screenY: Int, pointer: Int, button: Int): Boolean {
return false
}
override fun touchUp(screenX: Int, screenY: Int, pointer: Int, button: Int): Boolean {
return false
}
override fun scrolled(amount: Int): Boolean {
return false
}
override fun dispose() {
}
}