mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-18 11:54:59 -04:00
config: render arm
This commit is contained in:
parent
b130f23531
commit
69a38ae6ed
@ -15,6 +15,7 @@ package de.bixilon.minosoft.config.profile.profiles.rendering.overlay
|
||||
|
||||
import de.bixilon.minosoft.config.profile.delegate.primitive.BooleanDelegate
|
||||
import de.bixilon.minosoft.config.profile.profiles.rendering.RenderingProfile
|
||||
import de.bixilon.minosoft.config.profile.profiles.rendering.overlay.arm.ArmC
|
||||
import de.bixilon.minosoft.config.profile.profiles.rendering.overlay.fire.FireC
|
||||
import de.bixilon.minosoft.config.profile.profiles.rendering.overlay.weather.WeatherC
|
||||
|
||||
@ -36,4 +37,5 @@ class OverlayC(profile: RenderingProfile) {
|
||||
|
||||
val fire = FireC(profile)
|
||||
val weather = WeatherC(profile)
|
||||
val arm = ArmC(profile)
|
||||
}
|
||||
|
@ -0,0 +1,21 @@
|
||||
/*
|
||||
* Minosoft
|
||||
* Copyright (C) 2020-2022 Moritz Zwerger
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
* This software is not affiliated with Mojang AB, the original developer of Minecraft.
|
||||
*/
|
||||
|
||||
package de.bixilon.minosoft.config.profile.profiles.rendering.overlay.arm
|
||||
|
||||
import de.bixilon.minosoft.config.profile.delegate.primitive.BooleanDelegate
|
||||
import de.bixilon.minosoft.config.profile.profiles.rendering.RenderingProfile
|
||||
|
||||
class ArmC(profile: RenderingProfile) {
|
||||
val render by BooleanDelegate(profile, true)
|
||||
}
|
@ -30,7 +30,7 @@ class ArmOverlay(private val renderWindow: RenderWindow) : Overlay {
|
||||
private val config = renderWindow.connection.profiles.rendering.overlay
|
||||
private val shader = renderWindow.renderSystem.createShader(minosoft("arm")) { ArmOverlayShader(it) }
|
||||
override val render: Boolean
|
||||
get() = renderWindow.camera.view.view.renderArm
|
||||
get() = renderWindow.camera.view.view.renderArm && config.arm.render
|
||||
private var arm = renderWindow.connection.player.mainArm // TODO: camera player entity
|
||||
private var skin: DynamicTexture? = null
|
||||
private var model: PlayerModel? = null
|
||||
|
Loading…
x
Reference in New Issue
Block a user