26 lines
503 B
Java
26 lines
503 B
Java
package gui.menu;
|
|
|
|
import gui.Options;
|
|
import gui.Symbols;
|
|
import imgui.ImGui;
|
|
import imgui.type.ImInt;
|
|
|
|
public class OptionsMenu extends BaseView {
|
|
|
|
private ImInt currentValue = new ImInt();
|
|
|
|
public OptionsMenu(StateMachine stateMachine) {
|
|
super(stateMachine);
|
|
}
|
|
|
|
@Override
|
|
public void render() {
|
|
ImGui.text("Options");
|
|
if(ImGui.combo("Jeu de symboles", currentValue, Symbols.getSymbolsNames())){
|
|
Options.Symboles = Symbols.values()[currentValue.get()];
|
|
}
|
|
renderReturnButton();
|
|
}
|
|
|
|
}
|