This commit is contained in:
RandomityGuy 2024-06-30 00:03:03 +05:30
parent 30cc321f0f
commit c59c90e27b
3 changed files with 9 additions and 1 deletions

View file

@ -41,7 +41,7 @@ class MarbleGame {
static var canvas:Canvas;
static var instance:MarbleGame;
static var currentVersion = "1.1.2";
static var currentVersion = "1.1.3";
var world:MarbleWorld;
var previewWorld:PreviewWorld;

View file

@ -23,10 +23,12 @@ class Canvas extends GuiControl {
this.extent = new Vector(640, 480);
this.horizSizing = Width;
this.vertSizing = Height;
#if hl
Window.getInstance().addResizeEvent(() -> {
var wnd = Window.getInstance();
onResize(wnd.width, wnd.height);
});
#end
}
public function setContent(content:GuiControl) {

View file

@ -72,6 +72,12 @@ class TouchOptionsGui extends GuiImage {
}, 0.5, 118);
msOpt.setCurrentOption(Std.int(Util.clamp(Math.floor(((Settings.controlsSettings.cameraSensitivity - 0.2) / (3 - 0.2)) * 18), 0, 18)));
var dynamicJoystick = optionCollection.addOption(1, "Joystick Position", ["Fixed", "Dynamic"], (idx) -> {
Settings.touchSettings.dynamicJoystick = idx == 1;
return true;
}, 0.5, 118);
dynamicJoystick.setCurrentOption(Settings.touchSettings.dynamicJoystick ? 1 : 0);
var cameraMultiplier = optionCollection.addOption(1, "Button-Camera Factor", ["0.5", "1", "1.5", "2", "2.5", "3", "3.5"], (idx) -> {
Settings.touchSettings.buttonJoystickMultiplier = 0.5 + (idx * 0.5);
return true;