mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-07 12:21:52 +09:00
icon for the musicplayer
This commit is contained in:
BIN
assets/mods/musicplayer/icon.png
LFS
Normal file
BIN
assets/mods/musicplayer/icon.png
LFS
Normal file
Binary file not shown.
@@ -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
|
||||
|
||||
@@ -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