mirror of
https://github.com/TeamMidnightDust/MidnightControls.git
synced 2025-12-13 15:25:08 +01:00
Changes from LambdaControls: - Support for Steam Deck and Dualsense - Support for L4, L5, R4, R5 buttons - Updated Libraries - New Logo and Name - Lots of Bugfixes - MidnightConfig backend
37 lines
1008 B
Java
37 lines
1008 B
Java
/*
|
|
* Copyright © 2021 LambdAurora <aurora42lambda@gmail.com>
|
|
*
|
|
* This file is part of midnightcontrols.
|
|
*
|
|
* Licensed under the MIT license. For more information,
|
|
* see the LICENSE file.
|
|
*/
|
|
|
|
package eu.midnightdust.midnightcontrols.client.ring;
|
|
|
|
import com.electronwill.nightconfig.core.Config;
|
|
import net.minecraft.client.font.TextRenderer;
|
|
import net.minecraft.client.util.math.MatrixStack;
|
|
import org.jetbrains.annotations.NotNull;
|
|
|
|
public class DummyRingAction extends RingAction {
|
|
public DummyRingAction(@NotNull Config config) {
|
|
super(config);
|
|
}
|
|
|
|
@Override
|
|
public @NotNull String getName() {
|
|
return "dummy";
|
|
}
|
|
|
|
@Override
|
|
public void onAction(@NotNull RingButtonMode mode) {
|
|
|
|
}
|
|
|
|
@Override
|
|
public void drawIcon(@NotNull MatrixStack matrices, @NotNull TextRenderer textRenderer, int x, int y, boolean hovered) {
|
|
drawCenteredText(matrices, textRenderer, this.getName(), x + 25, y + 25 - textRenderer.fontHeight / 2, 0xffffff);
|
|
}
|
|
}
|