mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-12 11:34:05 +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
|
propername=Terrarum Music Player
|
||||||
description=Simple Music Player Widget
|
description=Simple music player widget
|
||||||
author=CuriousTo\uA75Bvald
|
author=CuriousTo\uA75Bvald
|
||||||
package=net.torvald.terrarum.musicplayer
|
package=net.torvald.terrarum.musicplayer
|
||||||
entrypoint=net.torvald.terrarum.musicplayer.EntryPoint
|
entrypoint=net.torvald.terrarum.musicplayer.EntryPoint
|
||||||
|
|||||||
@@ -254,7 +254,7 @@ object ControlPanelCommon {
|
|||||||
fun getMenuHeight(identifier: String) = optionsYposCache[identifier]!!.last()
|
fun getMenuHeight(identifier: String) = optionsYposCache[identifier]!!.last()
|
||||||
|
|
||||||
fun render(identifier: String, width: Int, batch: SpriteBatch) {
|
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 drawX = (App.scr.width - width) / 2
|
||||||
val drawY = (App.scr.height - height) / 2
|
val drawY = (App.scr.height - height) / 2
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user