icon for the musicplayer

This commit is contained in:
minjaesong
2024-01-05 03:20:02 +09:00
parent 2be6cb8b4a
commit 644691efc2
3 changed files with 5 additions and 2 deletions

BIN
assets/mods/musicplayer/icon.png LFS Normal file

Binary file not shown.

View File

@@ -1,5 +1,5 @@
propername=Terrarum Music Player
description=Simple Music Player Widget
description=Simple music player widget
author=CuriousTo\uA75Bvald
package=net.torvald.terrarum.musicplayer
entrypoint=net.torvald.terrarum.musicplayer.EntryPoint

View File

@@ -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