feat: animated background
All checks were successful
Linux arm64 / Build (push) Successful in 10m56s

This commit is contained in:
2025-01-30 22:28:26 +01:00
parent a74bf42e59
commit f47e4cc309
4 changed files with 37 additions and 7 deletions

View File

@@ -8,6 +8,7 @@ import imgui.type.ImInt;
public class OptionsMenu extends BaseView {
private ImInt currentValue = new ImInt();
private float backgroundSpeed[] = new float[]{Options.BackgroundSpeed};
public OptionsMenu(StateMachine stateMachine) {
super(stateMachine);
@@ -19,6 +20,9 @@ public class OptionsMenu extends BaseView {
if(ImGui.combo("Jeu de symboles", currentValue, Symbols.getSymbolsNames())){
Options.Symboles = Symbols.values()[currentValue.get()];
}
if(ImGui.sliderFloat("Vitesse d'animation de l'arrière plan", backgroundSpeed, 0.0f, 10.0f)){
Options.BackgroundSpeed = backgroundSpeed[0];
}
renderReturnButton();
}