mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-12 22:56:06 +09:00
icon for the musicplayer
This commit is contained in:
@@ -254,7 +254,7 @@ object ControlPanelCommon {
|
||||
fun getMenuHeight(identifier: String) = optionsYposCache[identifier]!!.last()
|
||||
|
||||
fun render(identifier: String, width: Int, batch: SpriteBatch) {
|
||||
val height = optionsYposCache[identifier]!!.last()
|
||||
val height = (optionsYposCache[identifier] ?: throw NullPointerException("No options for identifier $identifier")).last()
|
||||
val drawX = (App.scr.width - width) / 2
|
||||
val drawY = (App.scr.height - height) / 2
|
||||
|
||||
|
||||
Reference in New Issue
Block a user