From 81310e18abba8d17289cde6670e62d96f24e9d01 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 22 Jul 2016 10:15:17 +0200 Subject: gui/options, logic: add experimental offset from center This works fine for rotating the translation. --- gui/options-dialog.cpp | 1 + gui/settings.ui | 195 +++++++++++++++++++++++++++++++++++++------------ 2 files changed, 149 insertions(+), 47 deletions(-) (limited to 'gui') diff --git a/gui/options-dialog.cpp b/gui/options-dialog.cpp index fb0b3454..3b54ae9a 100644 --- a/gui/options-dialog.cpp +++ b/gui/options-dialog.cpp @@ -68,6 +68,7 @@ OptionsDialog::OptionsDialog(std::function pause_keybindings) : tie_setting(main.camera_yaw, ui.camera_yaw); tie_setting(main.camera_pitch, ui.camera_pitch); tie_setting(main.camera_roll, ui.camera_roll); + tie_setting(main.use_camera_offset_from_centering, ui.use_center_as_translation_camera_offset); tie_setting(main.center_method, ui.center_method); diff --git a/gui/settings.ui b/gui/settings.ui index 4c166a08..45541d45 100644 --- a/gui/settings.ui +++ b/gui/settings.ui @@ -6,8 +6,8 @@ 0 0 - 384 - 639 + 480 + 625 @@ -24,12 +24,24 @@ false - + + + + 0 + 0 + + 0 + + + 0 + 0 + + Shortcuts @@ -278,46 +290,6 @@ - - - - Centering method - - - - - - Method - - - - - - - - Relative (inertial device) - - - - - Absolute (camera device) - - - - - - - - Try changing this if centering doesn't perform correctly for your input device. - - - true - - - - - - @@ -332,13 +304,29 @@ + + + + Qt::Vertical + + + QSizePolicy::Minimum + + + + 20 + 0 + + + + Camera - + @@ -364,6 +352,26 @@ + + + + Use camera center as translation offset + + + + + + + This option is experimental. Please report your findings on the github issue tracker. + + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop + + + true + + + @@ -373,6 +381,12 @@ } + + 2 + + + 2 + @@ -445,6 +459,19 @@ + + + + + 0 + 0 + + + + 1 + + + @@ -631,15 +658,70 @@ + + + + Centering method + + + + + + + 2 + 0 + + + + Method + + + + + + + + 3 + 0 + + + + + Relative (inertial device) + + + + + Absolute (camera device) + + + + + + + + Try changing this if centering doesn't perform correctly for your input device. + + + true + + + + + + Qt::Vertical + + QSizePolicy::Minimum + 20 - 40 + 0 @@ -1133,10 +1215,13 @@ Qt::Vertical + + QSizePolicy::Minimum + 20 - 40 + 0 @@ -1154,7 +1239,7 @@ Game detection - + @@ -1176,6 +1261,22 @@ + + + + Qt::Vertical + + + QSizePolicy::Minimum + + + + 20 + 0 + + + + -- cgit v1.2.3