mirror of
https://gitlab.com/cc-ru/ocelot/ocelot-desktop.git
synced 2026-01-08 04:02:39 +01:00
Minor fixes, remove redundant debug info
This commit is contained in:
parent
bcb617815d
commit
1cb24883b3
@ -49,7 +49,6 @@ object Audio extends Logging {
|
||||
|
||||
def playSource(source: SoundSource): Unit = synchronized {
|
||||
if (sources.contains(source)) {
|
||||
logger.error(s"play: $source ")
|
||||
AL10.alSourcePlay(sources(source).sourceId)
|
||||
return
|
||||
}
|
||||
|
||||
@ -8,9 +8,6 @@ class SoundSettingsTab extends SettingsTab {
|
||||
override val icon: String = "icons/SettingsSound"
|
||||
override val label: String = "Sound"
|
||||
|
||||
override def applySettings(): Unit = {
|
||||
}
|
||||
|
||||
children :+= new PaddingBox(new Slider(Settings.get.volumeMaster, "Master Volume") {
|
||||
override def minimumSize: Size2D = Size2D(512, 24)
|
||||
|
||||
|
||||
@ -33,7 +33,7 @@ class StatusBar extends Widget {
|
||||
children :+= new PaddingBox(new Label {
|
||||
override def maximumSize: Size2D = minimumSize
|
||||
override def color: Color = ColorScheme("StatusBarFPS")
|
||||
override def text: String = f"FPS: ${UiHandler.fps}%02.1f S: ${Audio.numSources}"
|
||||
override def text: String = f"FPS: ${UiHandler.fps}%02.1f"
|
||||
}, Padding2D(left = 8, right = 8))
|
||||
} else {
|
||||
children = children.take(2)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user