mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2025-12-29 19:32:19 +00:00
...
This commit is contained in:
parent
30cc321f0f
commit
c59c90e27b
3 changed files with 9 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue