From 65bca654895c94e83ef25008dc1c44cc822cfbab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Sat, 17 Feb 2018 00:00:06 +0100 Subject: GH-2150 Split out custom commands into a custom widget Now it is used from a global page and from a sub-page in the instance settings. --- application/pages/InstanceSettingsPage.ui | 96 +++++-------------------------- 1 file changed, 13 insertions(+), 83 deletions(-) (limited to 'application/pages/InstanceSettingsPage.ui') diff --git a/application/pages/InstanceSettingsPage.ui b/application/pages/InstanceSettingsPage.ui index 6163297f..60262b9a 100644 --- a/application/pages/InstanceSettingsPage.ui +++ b/application/pages/InstanceSettingsPage.ui @@ -6,8 +6,8 @@ 0 0 - 458 - 508 + 553 + 583 @@ -42,7 +42,7 @@ true - Java ins&tallation + Java insta&llation true @@ -196,7 +196,7 @@ true - Java arguments + Java argumen&ts true @@ -363,81 +363,7 @@ - - - true - - - Cus&tom Commands - - - true - - - false - - - - - - Post-exit command: - - - - - - - - - - Pre-launch command: - - - - - - - - - - Wrapper command: - - - - - - - - - - - - - <html><head/><body><p>Pre-launch command runs before the instance launches and post-exit command runs after it exits.</p><p>Both will be run in MultiMC's working folder with extra environment variables:</p><ul style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">INST_NAME - Name of the instance</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">INST_ID - ID of the instance</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">INST_DIR - absolute path of the instance</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">INST_MC_DIR - absolute path of minecraft</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">INST_JAVA - java binary used for launch</li><li style=" margin-top:0px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">INST_JAVA_ARGS - command-line parameters used for launch</li></ul></body></html> - - - Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop - - - true - - - Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse - - - - - - - Qt::Vertical - - - - 88 - 186 - - - + @@ -445,6 +371,14 @@ + + + CustomCommands + QWidget +
widgets/CustomCommands.h
+ 1 +
+
settingsTabs javaSettingsGroupBox @@ -466,10 +400,6 @@ showConsoleCheck autoCloseConsoleCheck showConsoleErrorCheck - customCommandsGroupBox - preLaunchCmdTextBox - wrapperCmdTextBox - postExitCmdTextBox -- cgit v1.2.3