- Copy game options, copy resource packs, copy shaders, copy servers, and copy mods - Also made a new InstanceCopyPrefs struct to store those options rather than passing 7 different booleans into InstanceCopyTask's constructor Signed-off-by: Marcelo Hernandez <marcelohdez.inq@gmail.com>
227 lines
5.7 KiB
XML
227 lines
5.7 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ui version="4.0">
|
|
<class>CopyInstanceDialog</class>
|
|
<widget class="QDialog" name="CopyInstanceDialog">
|
|
<property name="windowModality">
|
|
<enum>Qt::ApplicationModal</enum>
|
|
</property>
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>265</width>
|
|
<height>425</height>
|
|
</rect>
|
|
</property>
|
|
<property name="windowTitle">
|
|
<string>Copy Instance</string>
|
|
</property>
|
|
<property name="windowIcon">
|
|
<iconset>
|
|
<normaloff>:/icons/toolbar/copy</normaloff>:/icons/toolbar/copy</iconset>
|
|
</property>
|
|
<property name="modal">
|
|
<bool>true</bool>
|
|
</property>
|
|
<layout class="QVBoxLayout" name="verticalLayout">
|
|
<item>
|
|
<layout class="QHBoxLayout" name="iconBtnLayout">
|
|
<item>
|
|
<spacer name="iconBtnLeftSpacer">
|
|
<property name="orientation">
|
|
<enum>Qt::Horizontal</enum>
|
|
</property>
|
|
<property name="sizeHint" stdset="0">
|
|
<size>
|
|
<width>60</width>
|
|
<height>20</height>
|
|
</size>
|
|
</property>
|
|
</spacer>
|
|
</item>
|
|
<item>
|
|
<widget class="QToolButton" name="iconButton">
|
|
<property name="icon">
|
|
<iconset>
|
|
<normaloff>:/icons/instances/grass</normaloff>:/icons/instances/grass</iconset>
|
|
</property>
|
|
<property name="iconSize">
|
|
<size>
|
|
<width>80</width>
|
|
<height>80</height>
|
|
</size>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<spacer name="iconBtnRightSpacer">
|
|
<property name="orientation">
|
|
<enum>Qt::Horizontal</enum>
|
|
</property>
|
|
<property name="sizeHint" stdset="0">
|
|
<size>
|
|
<width>40</width>
|
|
<height>20</height>
|
|
</size>
|
|
</property>
|
|
</spacer>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item>
|
|
<widget class="QLineEdit" name="instNameTextBox">
|
|
<property name="placeholderText">
|
|
<string>Name</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="Line" name="line">
|
|
<property name="orientation">
|
|
<enum>Qt::Horizontal</enum>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<layout class="QGridLayout" name="gridLayout">
|
|
<item row="0" column="0">
|
|
<widget class="QLabel" name="labelVersion_3">
|
|
<property name="text">
|
|
<string>&Group</string>
|
|
</property>
|
|
<property name="buddy">
|
|
<cstring>groupBox</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="1" colspan="2">
|
|
<widget class="QComboBox" name="groupBox">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="editable">
|
|
<bool>true</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item>
|
|
<widget class="QCheckBox" name="copySavesCheckbox">
|
|
<property name="text">
|
|
<string>Copy saves</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QCheckBox" name="keepPlaytimeCheckbox">
|
|
<property name="text">
|
|
<string>Keep play time</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QCheckBox" name="copyGameOptionsCheckbox">
|
|
<property name="toolTip">
|
|
<string>Copy the in-game options like FOV, max framerate, etc.</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>Copy game options</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QCheckBox" name="copyResPacksCheckbox">
|
|
<property name="enabled">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="text">
|
|
<string>Copy resource packs</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QCheckBox" name="copyShaderPacksCheckbox">
|
|
<property name="text">
|
|
<string>Copy shader packs</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QCheckBox" name="copyServersCheckbox">
|
|
<property name="text">
|
|
<string>Copy servers</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QCheckBox" name="copyModsCheckbox">
|
|
<property name="toolTip">
|
|
<string>Disabling this will still keep the mod loader (ex: Fabric, Quilt, etc.) but erase the mods folder and their configs.</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>Copy mods</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QDialogButtonBox" name="buttonBox">
|
|
<property name="orientation">
|
|
<enum>Qt::Horizontal</enum>
|
|
</property>
|
|
<property name="standardButtons">
|
|
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<tabstops>
|
|
<tabstop>iconButton</tabstop>
|
|
<tabstop>instNameTextBox</tabstop>
|
|
<tabstop>groupBox</tabstop>
|
|
<tabstop>copySavesCheckbox</tabstop>
|
|
<tabstop>keepPlaytimeCheckbox</tabstop>
|
|
</tabstops>
|
|
<resources>
|
|
<include location="../../graphics.qrc"/>
|
|
</resources>
|
|
<connections>
|
|
<connection>
|
|
<sender>buttonBox</sender>
|
|
<signal>accepted()</signal>
|
|
<receiver>CopyInstanceDialog</receiver>
|
|
<slot>accept()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>254</x>
|
|
<y>316</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>157</x>
|
|
<y>274</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>buttonBox</sender>
|
|
<signal>rejected()</signal>
|
|
<receiver>CopyInstanceDialog</receiver>
|
|
<slot>reject()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>322</x>
|
|
<y>316</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>286</x>
|
|
<y>274</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
</connections>
|
|
</ui>
|