diff options
| -rw-r--r-- | src/yuzu/configuration/configure_tas.cpp | 1 | ||||
| -rw-r--r-- | src/yuzu/configuration/configure_tas.ui | 333 |
2 files changed, 188 insertions, 146 deletions
diff --git a/src/yuzu/configuration/configure_tas.cpp b/src/yuzu/configuration/configure_tas.cpp index b666b175a..8e5a4c72d 100644 --- a/src/yuzu/configuration/configure_tas.cpp +++ b/src/yuzu/configuration/configure_tas.cpp | |||
| @@ -18,6 +18,7 @@ ConfigureTasDialog::ConfigureTasDialog(QWidget* parent) | |||
| 18 | 18 | ||
| 19 | setFocusPolicy(Qt::ClickFocus); | 19 | setFocusPolicy(Qt::ClickFocus); |
| 20 | setWindowTitle(tr("TAS Configuration")); | 20 | setWindowTitle(tr("TAS Configuration")); |
| 21 | setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint); | ||
| 21 | 22 | ||
| 22 | connect(ui->tas_path_button, &QToolButton::pressed, this, | 23 | connect(ui->tas_path_button, &QToolButton::pressed, this, |
| 23 | [this] { SetDirectory(DirectoryTarget::TAS, ui->tas_path_edit); }); | 24 | [this] { SetDirectory(DirectoryTarget::TAS, ui->tas_path_edit); }); |
diff --git a/src/yuzu/configuration/configure_tas.ui b/src/yuzu/configuration/configure_tas.ui index 95575ed9d..3972f9083 100644 --- a/src/yuzu/configuration/configure_tas.ui +++ b/src/yuzu/configuration/configure_tas.ui | |||
| @@ -1,153 +1,194 @@ | |||
| 1 | <?xml version="1.0" encoding="UTF-8"?> | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <ui version="4.0"> | 2 | <ui version="4.0"> |
| 3 | <class>ConfigureTas</class> | 3 | <class>ConfigureTas</class> |
| 4 | <widget class="QDialog" name="ConfigureTas"> | 4 | <widget class="QDialog" name="ConfigureTas"> |
| 5 | <layout class="QVBoxLayout" name="verticalLayout_1"> | 5 | <property name="geometry"> |
| 6 | <item> | 6 | <rect> |
| 7 | <layout class="QHBoxLayout" name="horizontalLayout_1"> | 7 | <x>0</x> |
| 8 | <item> | 8 | <y>0</y> |
| 9 | <widget class="QGroupBox" name="groupBox_1"> | 9 | <width>337</width> |
| 10 | <property name="title"> | 10 | <height>316</height> |
| 11 | <string>TAS</string> | 11 | </rect> |
| 12 | </property> | 12 | </property> |
| 13 | <layout class="QGridLayout" name="gridLayout_1"> | 13 | <layout class="QVBoxLayout" name="verticalLayout_1"> |
| 14 | <item row="0" column="0" colspan="4"> | 14 | <item> |
| 15 | <widget class="QLabel" name="label_1"> | 15 | <layout class="QHBoxLayout" name="horizontalLayout_1"> |
| 16 | <property name="text"> | 16 | <item> |
| 17 | <string>Reads controller input from scripts in the same format as TAS-nx scripts.<br/>For a more detailed explanation please consult the FAQ on the yuzu website.</string> | 17 | <widget class="QGroupBox" name="groupBox_1"> |
| 18 | </property> | 18 | <property name="title"> |
| 19 | </widget> | 19 | <string>TAS</string> |
| 20 | </item> | 20 | </property> |
| 21 | <item row="1" column="0" colspan="4"> | 21 | <layout class="QGridLayout" name="gridLayout_1"> |
| 22 | <widget class="QLabel" name="label_2"> | 22 | <item row="0" column="0" colspan="4"> |
| 23 | <property name="text"> | 23 | <widget class="QLabel" name="label_1"> |
| 24 | <string>To check which hotkeys control the playback/recording, please refer to the Hotkey settings (General -> Hotkeys).</string> | 24 | <property name="text"> |
| 25 | </property> | 25 | <string>Reads controller input from scripts in the same format as TAS-nx scripts.<br/>For a more detailed explanation please consult the FAQ on the yuzu website.</string> |
| 26 | <property name="wordWrap"> | ||
| 27 | <bool>true</bool> | ||
| 28 | </property> | ||
| 29 | </widget> | ||
| 30 | </item> | ||
| 31 | <item row="2" column="0" colspan="4"> | ||
| 32 | <widget class="QLabel" name="label_3"> | ||
| 33 | <property name="text"> | ||
| 34 | <string>WARNING: This is an experimental feature.<br/>It will not play back scripts frame perfectly with the current, imperfect syncing method.</string> | ||
| 35 | </property> | ||
| 36 | <property name="wordWrap"> | ||
| 37 | <bool>true</bool> | ||
| 38 | </property> | ||
| 39 | </widget> | ||
| 40 | </item> | ||
| 41 | </layout> | ||
| 42 | </widget> | ||
| 43 | </item> | ||
| 44 | </layout> | ||
| 45 | </item> | ||
| 46 | <item> | ||
| 47 | <layout class="QHBoxLayout" name="horizontalLayout_2"> | ||
| 48 | <item> | ||
| 49 | <widget class="QGroupBox" name="groupBox_2"> | ||
| 50 | <property name="title"> | ||
| 51 | <string>Settings</string> | ||
| 52 | </property> | ||
| 53 | <layout class="QGridLayout" name="gridLayout_2"> | ||
| 54 | <item row="0" column="0" colspan="4"> | ||
| 55 | <widget class="QCheckBox" name="tas_enable"> | ||
| 56 | <property name="text"> | ||
| 57 | <string>Enable TAS features</string> | ||
| 58 | </property> | ||
| 59 | </widget> | ||
| 60 | </item> | ||
| 61 | <item row="1" column="0" colspan="4"> | ||
| 62 | <widget class="QCheckBox" name="tas_control_swap"> | ||
| 63 | <property name="text"> | ||
| 64 | <string>Automatic controller profile swapping</string> | ||
| 65 | </property> | ||
| 66 | </widget> | ||
| 67 | </item> | ||
| 68 | <item row="2" column="0" colspan="4"> | ||
| 69 | <widget class="QCheckBox" name="tas_loop_script"> | ||
| 70 | <property name="text"> | ||
| 71 | <string>Loop script</string> | ||
| 72 | </property> | ||
| 73 | </widget> | ||
| 74 | </item> | ||
| 75 | <item row="3" column="0" colspan="4"> | ||
| 76 | <widget class="QCheckBox" name="tas_pause_on_load"> | ||
| 77 | <property name="enabled"> | ||
| 78 | <bool>false</bool> | ||
| 79 | </property> | ||
| 80 | <property name="text"> | ||
| 81 | <string>Pause execution during loads</string> | ||
| 82 | </property> | ||
| 83 | </widget> | ||
| 84 | </item> | ||
| 85 | </layout> | ||
| 86 | </widget> | ||
| 87 | </item> | ||
| 88 | </layout> | ||
| 89 | </item> | ||
| 90 | <item> | ||
| 91 | <layout class="QHBoxLayout" name="horizontalLayout_3"> | ||
| 92 | <item> | ||
| 93 | <widget class="QGroupBox" name="groupBox_3"> | ||
| 94 | <property name="title"> | ||
| 95 | <string>Script Directory</string> | ||
| 96 | </property> | ||
| 97 | <layout class="QGridLayout" name="gridLayout_3"> | ||
| 98 | <item row="0" column="0"> | ||
| 99 | <widget class="QLabel" name="label_4"> | ||
| 100 | <property name="text"> | ||
| 101 | <string>Path</string> | ||
| 102 | </property> | ||
| 103 | </widget> | ||
| 104 | </item> | ||
| 105 | <item row="0" column="3"> | ||
| 106 | <widget class="QToolButton" name="tas_path_button"> | ||
| 107 | <property name="text"> | ||
| 108 | <string>...</string> | ||
| 109 | </property> | ||
| 110 | </widget> | ||
| 111 | </item> | ||
| 112 | <item row="0" column="2"> | ||
| 113 | <widget class="QLineEdit" name="tas_path_edit"/> | ||
| 114 | </item> | ||
| 115 | </layout> | ||
| 116 | </widget> | ||
| 117 | </item> | ||
| 118 | </layout> | ||
| 119 | </item> | ||
| 120 | <item> | ||
| 121 | <widget class="QDialogButtonBox" name="buttonBox"> | ||
| 122 | <property name="sizePolicy"> | ||
| 123 | <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> | ||
| 124 | <horstretch>0</horstretch> | ||
| 125 | <verstretch>0</verstretch> | ||
| 126 | </sizepolicy> | ||
| 127 | </property> | 26 | </property> |
| 128 | <property name="orientation"> | 27 | </widget> |
| 129 | <enum>Qt::Horizontal</enum> | 28 | </item> |
| 29 | <item row="1" column="0" colspan="4"> | ||
| 30 | <widget class="QLabel" name="label_2"> | ||
| 31 | <property name="text"> | ||
| 32 | <string>To check which hotkeys control the playback/recording, please refer to the Hotkey settings (General -> Hotkeys).</string> | ||
| 130 | </property> | 33 | </property> |
| 131 | <property name="standardButtons"> | 34 | <property name="wordWrap"> |
| 132 | <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set> | 35 | <bool>true</bool> |
| 133 | </property> | 36 | </property> |
| 134 | </widget> | 37 | </widget> |
| 135 | </item> | 38 | </item> |
| 39 | <item row="2" column="0" colspan="4"> | ||
| 40 | <widget class="QLabel" name="label_3"> | ||
| 41 | <property name="text"> | ||
| 42 | <string>WARNING: This is an experimental feature.<br/>It will not play back scripts frame perfectly with the current, imperfect syncing method.</string> | ||
| 43 | </property> | ||
| 44 | <property name="wordWrap"> | ||
| 45 | <bool>true</bool> | ||
| 46 | </property> | ||
| 47 | </widget> | ||
| 48 | </item> | ||
| 49 | </layout> | ||
| 50 | </widget> | ||
| 51 | </item> | ||
| 52 | </layout> | ||
| 53 | </item> | ||
| 54 | <item> | ||
| 55 | <layout class="QHBoxLayout" name="horizontalLayout_2"> | ||
| 56 | <item> | ||
| 57 | <widget class="QGroupBox" name="groupBox_2"> | ||
| 58 | <property name="title"> | ||
| 59 | <string>Settings</string> | ||
| 60 | </property> | ||
| 61 | <layout class="QGridLayout" name="gridLayout_2"> | ||
| 62 | <item row="0" column="0" colspan="4"> | ||
| 63 | <widget class="QCheckBox" name="tas_enable"> | ||
| 64 | <property name="text"> | ||
| 65 | <string>Enable TAS features</string> | ||
| 66 | </property> | ||
| 67 | </widget> | ||
| 68 | </item> | ||
| 69 | <item row="1" column="0" colspan="4"> | ||
| 70 | <widget class="QCheckBox" name="tas_control_swap"> | ||
| 71 | <property name="text"> | ||
| 72 | <string>Automatic controller profile swapping</string> | ||
| 73 | </property> | ||
| 74 | </widget> | ||
| 75 | </item> | ||
| 76 | <item row="2" column="0" colspan="4"> | ||
| 77 | <widget class="QCheckBox" name="tas_loop_script"> | ||
| 78 | <property name="text"> | ||
| 79 | <string>Loop script</string> | ||
| 80 | </property> | ||
| 81 | </widget> | ||
| 82 | </item> | ||
| 83 | <item row="3" column="0" colspan="4"> | ||
| 84 | <widget class="QCheckBox" name="tas_pause_on_load"> | ||
| 85 | <property name="enabled"> | ||
| 86 | <bool>false</bool> | ||
| 87 | </property> | ||
| 88 | <property name="text"> | ||
| 89 | <string>Pause execution during loads</string> | ||
| 90 | </property> | ||
| 91 | </widget> | ||
| 92 | </item> | ||
| 93 | </layout> | ||
| 94 | </widget> | ||
| 95 | </item> | ||
| 96 | </layout> | ||
| 97 | </item> | ||
| 98 | <item> | ||
| 99 | <layout class="QHBoxLayout" name="horizontalLayout_3"> | ||
| 100 | <item> | ||
| 101 | <widget class="QGroupBox" name="groupBox_3"> | ||
| 102 | <property name="title"> | ||
| 103 | <string>Script Directory</string> | ||
| 104 | </property> | ||
| 105 | <layout class="QGridLayout" name="gridLayout_3"> | ||
| 106 | <item row="0" column="0"> | ||
| 107 | <widget class="QLabel" name="label_4"> | ||
| 108 | <property name="text"> | ||
| 109 | <string>Path</string> | ||
| 110 | </property> | ||
| 111 | </widget> | ||
| 112 | </item> | ||
| 113 | <item row="0" column="3"> | ||
| 114 | <widget class="QToolButton" name="tas_path_button"> | ||
| 115 | <property name="text"> | ||
| 116 | <string>...</string> | ||
| 117 | </property> | ||
| 118 | </widget> | ||
| 119 | </item> | ||
| 120 | <item row="0" column="2"> | ||
| 121 | <widget class="QLineEdit" name="tas_path_edit"/> | ||
| 122 | </item> | ||
| 123 | </layout> | ||
| 124 | </widget> | ||
| 125 | </item> | ||
| 136 | </layout> | 126 | </layout> |
| 137 | </widget> | 127 | </item> |
| 138 | <resources/> | 128 | <item> |
| 139 | <connections> | 129 | <spacer name="verticalSpacer"> |
| 140 | <connection> | 130 | <property name="orientation"> |
| 141 | <sender>buttonBox</sender> | 131 | <enum>Qt::Vertical</enum> |
| 142 | <signal>accepted()</signal> | 132 | </property> |
| 143 | <receiver>ConfigureTas</receiver> | 133 | <property name="sizeHint" stdset="0"> |
| 144 | <slot>accept()</slot> | 134 | <size> |
| 145 | </connection> | 135 | <width>20</width> |
| 146 | <connection> | 136 | <height>40</height> |
| 147 | <sender>buttonBox</sender> | 137 | </size> |
| 148 | <signal>rejected()</signal> | 138 | </property> |
| 149 | <receiver>ConfigureTas</receiver> | 139 | </spacer> |
| 150 | <slot>reject()</slot> | 140 | </item> |
| 151 | </connection> | 141 | <item> |
| 152 | </connections> | 142 | <widget class="QDialogButtonBox" name="buttonBox"> |
| 143 | <property name="sizePolicy"> | ||
| 144 | <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> | ||
| 145 | <horstretch>0</horstretch> | ||
| 146 | <verstretch>0</verstretch> | ||
| 147 | </sizepolicy> | ||
| 148 | </property> | ||
| 149 | <property name="orientation"> | ||
| 150 | <enum>Qt::Horizontal</enum> | ||
| 151 | </property> | ||
| 152 | <property name="standardButtons"> | ||
| 153 | <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set> | ||
| 154 | </property> | ||
| 155 | </widget> | ||
| 156 | </item> | ||
| 157 | </layout> | ||
| 158 | </widget> | ||
| 159 | <resources/> | ||
| 160 | <connections> | ||
| 161 | <connection> | ||
| 162 | <sender>buttonBox</sender> | ||
| 163 | <signal>accepted()</signal> | ||
| 164 | <receiver>ConfigureTas</receiver> | ||
| 165 | <slot>accept()</slot> | ||
| 166 | <hints> | ||
| 167 | <hint type="sourcelabel"> | ||
| 168 | <x>20</x> | ||
| 169 | <y>20</y> | ||
| 170 | </hint> | ||
| 171 | <hint type="destinationlabel"> | ||
| 172 | <x>20</x> | ||
| 173 | <y>20</y> | ||
| 174 | </hint> | ||
| 175 | </hints> | ||
| 176 | </connection> | ||
| 177 | <connection> | ||
| 178 | <sender>buttonBox</sender> | ||
| 179 | <signal>rejected()</signal> | ||
| 180 | <receiver>ConfigureTas</receiver> | ||
| 181 | <slot>reject()</slot> | ||
| 182 | <hints> | ||
| 183 | <hint type="sourcelabel"> | ||
| 184 | <x>20</x> | ||
| 185 | <y>20</y> | ||
| 186 | </hint> | ||
| 187 | <hint type="destinationlabel"> | ||
| 188 | <x>20</x> | ||
| 189 | <y>20</y> | ||
| 190 | </hint> | ||
| 191 | </hints> | ||
| 192 | </connection> | ||
| 193 | </connections> | ||
| 153 | </ui> | 194 | </ui> |