mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-01-18 05:11:15 +00:00
Add options for si loader extension to isle-config. (#667)
* Begin work on adding SI extension to cfg tool * Finish work on adding `si loader` extension * Add tooltip * Replace symbols with unicode, other misc fixes * Update "version" to 2.0, other small CLI changes
This commit is contained in:
parent
6a8aaaabe2
commit
2ccf09d429
@ -65,6 +65,7 @@ CMainDialog::CMainDialog(QWidget* pParent) : QDialog(pParent)
|
|||||||
connect(m_ui->sound3DCheckBox, &QCheckBox::toggled, this, &CMainDialog::OnCheckbox3DSound);
|
connect(m_ui->sound3DCheckBox, &QCheckBox::toggled, this, &CMainDialog::OnCheckbox3DSound);
|
||||||
connect(m_ui->rumbleCheckBox, &QCheckBox::toggled, this, &CMainDialog::OnCheckboxRumble);
|
connect(m_ui->rumbleCheckBox, &QCheckBox::toggled, this, &CMainDialog::OnCheckboxRumble);
|
||||||
connect(m_ui->textureCheckBox, &QCheckBox::toggled, this, &CMainDialog::OnCheckboxTexture);
|
connect(m_ui->textureCheckBox, &QCheckBox::toggled, this, &CMainDialog::OnCheckboxTexture);
|
||||||
|
connect(m_ui->customAssetsCheckBox, &QCheckBox::toggled, this, &CMainDialog::OnCheckboxCustomAssets);
|
||||||
connect(m_ui->touchComboBox, &QComboBox::currentIndexChanged, this, &CMainDialog::TouchControlsChanged);
|
connect(m_ui->touchComboBox, &QComboBox::currentIndexChanged, this, &CMainDialog::TouchControlsChanged);
|
||||||
connect(m_ui->transitionTypeComboBox, &QComboBox::currentIndexChanged, this, &CMainDialog::TransitionTypeChanged);
|
connect(m_ui->transitionTypeComboBox, &QComboBox::currentIndexChanged, this, &CMainDialog::TransitionTypeChanged);
|
||||||
connect(m_ui->exFullResComboBox, &QComboBox::currentIndexChanged, this, &CMainDialog::ExclusiveResolutionChanged);
|
connect(m_ui->exFullResComboBox, &QComboBox::currentIndexChanged, this, &CMainDialog::ExclusiveResolutionChanged);
|
||||||
@ -81,6 +82,11 @@ CMainDialog::CMainDialog(QWidget* pParent) : QDialog(pParent)
|
|||||||
connect(m_ui->texturePathOpen, &QPushButton::clicked, this, &CMainDialog::SelectTexturePathDialog);
|
connect(m_ui->texturePathOpen, &QPushButton::clicked, this, &CMainDialog::SelectTexturePathDialog);
|
||||||
connect(m_ui->texturePath, &QLineEdit::editingFinished, this, &CMainDialog::TexturePathEdited);
|
connect(m_ui->texturePath, &QLineEdit::editingFinished, this, &CMainDialog::TexturePathEdited);
|
||||||
|
|
||||||
|
connect(m_ui->addCustomAssetPath, &QPushButton::clicked, this, &CMainDialog::AddCustomAssetPath);
|
||||||
|
connect(m_ui->removeCustomAssetPath, &QPushButton::clicked, this, &CMainDialog::RemoveCustomAssetPath);
|
||||||
|
connect(m_ui->customAssetPaths, &QListWidget::currentRowChanged, this, &CMainDialog::SelectedPathChanged);
|
||||||
|
connect(m_ui->customAssetPaths, &QListWidget::itemActivated, this, &CMainDialog::EditCustomAssetPath);
|
||||||
|
|
||||||
connect(m_ui->maxLoDSlider, &QSlider::valueChanged, this, &CMainDialog::MaxLoDChanged);
|
connect(m_ui->maxLoDSlider, &QSlider::valueChanged, this, &CMainDialog::MaxLoDChanged);
|
||||||
connect(m_ui->maxLoDSlider, &QSlider::sliderMoved, this, &CMainDialog::MaxLoDChanged);
|
connect(m_ui->maxLoDSlider, &QSlider::sliderMoved, this, &CMainDialog::MaxLoDChanged);
|
||||||
connect(m_ui->maxActorsSlider, &QSlider::valueChanged, this, &CMainDialog::MaxActorsChanged);
|
connect(m_ui->maxActorsSlider, &QSlider::valueChanged, this, &CMainDialog::MaxActorsChanged);
|
||||||
@ -96,8 +102,6 @@ CMainDialog::CMainDialog(QWidget* pParent) : QDialog(pParent)
|
|||||||
connect(m_ui->yResSpinBox, &QSpinBox::valueChanged, this, &CMainDialog::YResChanged);
|
connect(m_ui->yResSpinBox, &QSpinBox::valueChanged, this, &CMainDialog::YResChanged);
|
||||||
connect(m_ui->framerateSpinBox, &QSpinBox::valueChanged, this, &CMainDialog::FramerateChanged);
|
connect(m_ui->framerateSpinBox, &QSpinBox::valueChanged, this, &CMainDialog::FramerateChanged);
|
||||||
|
|
||||||
layout()->setSizeConstraint(QLayout::SetFixedSize);
|
|
||||||
|
|
||||||
if (currentConfigApp->m_ram_quality_limit != 0) {
|
if (currentConfigApp->m_ram_quality_limit != 0) {
|
||||||
m_modified = true;
|
m_modified = true;
|
||||||
const QString ramError = QString("Insufficient RAM!");
|
const QString ramError = QString("Insufficient RAM!");
|
||||||
@ -312,6 +316,16 @@ void CMainDialog::UpdateInterface()
|
|||||||
m_ui->texturePath->setEnabled(currentConfigApp->m_texture_load);
|
m_ui->texturePath->setEnabled(currentConfigApp->m_texture_load);
|
||||||
m_ui->texturePathOpen->setEnabled(currentConfigApp->m_texture_load);
|
m_ui->texturePathOpen->setEnabled(currentConfigApp->m_texture_load);
|
||||||
|
|
||||||
|
m_ui->customAssetsCheckBox->setChecked(currentConfigApp->m_custom_assets_enabled);
|
||||||
|
m_ui->customAssetPathContainer->setEnabled(currentConfigApp->m_custom_assets_enabled);
|
||||||
|
m_ui->customAssetPaths->setEnabled(currentConfigApp->m_custom_assets_enabled);
|
||||||
|
m_ui->addCustomAssetPath->setEnabled(currentConfigApp->m_custom_assets_enabled);
|
||||||
|
m_ui->removeCustomAssetPath->setEnabled(false);
|
||||||
|
|
||||||
|
m_ui->customAssetPaths->clear();
|
||||||
|
assetPaths = QString::fromStdString(currentConfigApp->m_custom_asset_path).split(u',');
|
||||||
|
m_ui->customAssetPaths->addItems(assetPaths);
|
||||||
|
|
||||||
m_ui->aspectRatioComboBox->setCurrentIndex(currentConfigApp->m_aspect_ratio);
|
m_ui->aspectRatioComboBox->setCurrentIndex(currentConfigApp->m_aspect_ratio);
|
||||||
m_ui->xResSpinBox->setValue(currentConfigApp->m_x_res);
|
m_ui->xResSpinBox->setValue(currentConfigApp->m_x_res);
|
||||||
m_ui->yResSpinBox->setValue(currentConfigApp->m_y_res);
|
m_ui->yResSpinBox->setValue(currentConfigApp->m_y_res);
|
||||||
@ -442,6 +456,13 @@ void CMainDialog::OnCheckboxTexture(bool checked)
|
|||||||
UpdateInterface();
|
UpdateInterface();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CMainDialog::OnCheckboxCustomAssets(bool checked)
|
||||||
|
{
|
||||||
|
currentConfigApp->m_custom_assets_enabled = checked;
|
||||||
|
m_modified = true;
|
||||||
|
UpdateInterface();
|
||||||
|
}
|
||||||
|
|
||||||
void CMainDialog::TouchControlsChanged(int index)
|
void CMainDialog::TouchControlsChanged(int index)
|
||||||
{
|
{
|
||||||
currentConfigApp->m_touch_scheme = index;
|
currentConfigApp->m_touch_scheme = index;
|
||||||
@ -571,10 +592,10 @@ void CMainDialog::SelectTexturePathDialog()
|
|||||||
QFileDialog::ShowDirsOnly | QFileDialog::DontResolveSymlinks
|
QFileDialog::ShowDirsOnly | QFileDialog::DontResolveSymlinks
|
||||||
);
|
);
|
||||||
|
|
||||||
QDir texture_dir = QDir(texture_path);
|
QDir data_path = QDir(QString::fromStdString(currentConfigApp->m_cd_path));
|
||||||
|
|
||||||
if (texture_dir.exists()) {
|
if (data_path.exists(texture_path)) {
|
||||||
currentConfigApp->m_texture_path = texture_dir.absolutePath().toStdString();
|
currentConfigApp->m_texture_path = data_path.relativeFilePath(texture_path).toStdString();
|
||||||
m_modified = true;
|
m_modified = true;
|
||||||
}
|
}
|
||||||
UpdateInterface();
|
UpdateInterface();
|
||||||
@ -582,15 +603,67 @@ void CMainDialog::SelectTexturePathDialog()
|
|||||||
|
|
||||||
void CMainDialog::TexturePathEdited()
|
void CMainDialog::TexturePathEdited()
|
||||||
{
|
{
|
||||||
QDir texture_dir = QDir(m_ui->texturePath->text());
|
QString texture_path = m_ui->texturePath->text();
|
||||||
|
QDir data_path = QDir(QString::fromStdString(currentConfigApp->m_cd_path));
|
||||||
|
|
||||||
if (texture_dir.exists()) {
|
if (data_path.exists(texture_path)) {
|
||||||
currentConfigApp->m_texture_path = texture_dir.absolutePath().toStdString();
|
currentConfigApp->m_texture_path = data_path.relativeFilePath(texture_path).toStdString();
|
||||||
m_modified = true;
|
m_modified = true;
|
||||||
}
|
}
|
||||||
UpdateInterface();
|
UpdateInterface();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CMainDialog::AddCustomAssetPath()
|
||||||
|
{
|
||||||
|
QDir data_path = QDir(QString::fromStdString(currentConfigApp->m_cd_path));
|
||||||
|
QStringList new_files = QFileDialog::getOpenFileNames(
|
||||||
|
this,
|
||||||
|
"Select one or more files to open",
|
||||||
|
data_path.absolutePath(),
|
||||||
|
"Interleaf files (*.si)"
|
||||||
|
);
|
||||||
|
for (QString& item : new_files) {
|
||||||
|
item = data_path.relativeFilePath(item);
|
||||||
|
}
|
||||||
|
assetPaths += new_files;
|
||||||
|
UpdateAssetPaths();
|
||||||
|
}
|
||||||
|
|
||||||
|
void CMainDialog::RemoveCustomAssetPath()
|
||||||
|
{
|
||||||
|
assetPaths.removeAt(m_ui->customAssetPaths->currentRow());
|
||||||
|
UpdateAssetPaths();
|
||||||
|
}
|
||||||
|
|
||||||
|
void CMainDialog::SelectedPathChanged(int currentRow)
|
||||||
|
{
|
||||||
|
m_ui->removeCustomAssetPath->setEnabled(currentRow != -1 ? true : false);
|
||||||
|
}
|
||||||
|
|
||||||
|
void CMainDialog::EditCustomAssetPath()
|
||||||
|
{
|
||||||
|
QDir data_path = QDir(QString::fromStdString(currentConfigApp->m_cd_path));
|
||||||
|
QString prev_asset_path = assetPaths[m_ui->customAssetPaths->currentRow()];
|
||||||
|
QString new_file = QFileDialog::getOpenFileName(
|
||||||
|
this,
|
||||||
|
"Open File",
|
||||||
|
data_path.absoluteFilePath(prev_asset_path),
|
||||||
|
"Interleaf files (*.si)"
|
||||||
|
);
|
||||||
|
if (!new_file.isEmpty()) {
|
||||||
|
new_file = data_path.relativeFilePath(new_file);
|
||||||
|
assetPaths[m_ui->customAssetPaths->currentRow()] = new_file;
|
||||||
|
}
|
||||||
|
UpdateAssetPaths();
|
||||||
|
}
|
||||||
|
|
||||||
|
void CMainDialog::UpdateAssetPaths()
|
||||||
|
{
|
||||||
|
assetPaths.removeDuplicates();
|
||||||
|
currentConfigApp->m_custom_asset_path = assetPaths.join(u',').toStdString();
|
||||||
|
UpdateInterface();
|
||||||
|
}
|
||||||
|
|
||||||
void CMainDialog::AspectRatioChanged(int index)
|
void CMainDialog::AspectRatioChanged(int index)
|
||||||
{
|
{
|
||||||
currentConfigApp->m_aspect_ratio = index;
|
currentConfigApp->m_aspect_ratio = index;
|
||||||
|
|||||||
@ -29,6 +29,7 @@ class CMainDialog : public QDialog {
|
|||||||
private:
|
private:
|
||||||
bool m_modified = false;
|
bool m_modified = false;
|
||||||
bool m_advanced = false;
|
bool m_advanced = false;
|
||||||
|
QStringList assetPaths = QStringList();
|
||||||
Ui::MainDialog* m_ui = nullptr;
|
Ui::MainDialog* m_ui = nullptr;
|
||||||
SDL_DisplayMode** displayModes;
|
SDL_DisplayMode** displayModes;
|
||||||
|
|
||||||
@ -48,6 +49,7 @@ private slots:
|
|||||||
void OnCheckboxMusic(bool checked);
|
void OnCheckboxMusic(bool checked);
|
||||||
void OnCheckboxRumble(bool checked);
|
void OnCheckboxRumble(bool checked);
|
||||||
void OnCheckboxTexture(bool checked);
|
void OnCheckboxTexture(bool checked);
|
||||||
|
void OnCheckboxCustomAssets(bool checked);
|
||||||
void TouchControlsChanged(int index);
|
void TouchControlsChanged(int index);
|
||||||
void TransitionTypeChanged(int index);
|
void TransitionTypeChanged(int index);
|
||||||
void ExclusiveResolutionChanged(int index);
|
void ExclusiveResolutionChanged(int index);
|
||||||
@ -64,6 +66,11 @@ private slots:
|
|||||||
void AFChanged(int value);
|
void AFChanged(int value);
|
||||||
void SelectTexturePathDialog();
|
void SelectTexturePathDialog();
|
||||||
void TexturePathEdited();
|
void TexturePathEdited();
|
||||||
|
void AddCustomAssetPath();
|
||||||
|
void RemoveCustomAssetPath();
|
||||||
|
void SelectedPathChanged(int currentRow);
|
||||||
|
void EditCustomAssetPath();
|
||||||
|
void UpdateAssetPaths();
|
||||||
void XResChanged(int i);
|
void XResChanged(int i);
|
||||||
void YResChanged(int i);
|
void YResChanged(int i);
|
||||||
void AspectRatioChanged(int index);
|
void AspectRatioChanged(int index);
|
||||||
|
|||||||
@ -89,7 +89,9 @@ bool CConfigApp::InitInstance()
|
|||||||
m_haptic = TRUE;
|
m_haptic = TRUE;
|
||||||
m_touch_scheme = 2;
|
m_touch_scheme = 2;
|
||||||
m_texture_load = TRUE;
|
m_texture_load = TRUE;
|
||||||
m_texture_path = "/textures/";
|
m_texture_path = "textures/";
|
||||||
|
m_custom_assets_enabled = TRUE;
|
||||||
|
m_custom_asset_path = "assets/widescreen.si";
|
||||||
int totalRamMiB = SDL_GetSystemRAM();
|
int totalRamMiB = SDL_GetSystemRAM();
|
||||||
if (totalRamMiB < 12) {
|
if (totalRamMiB < 12) {
|
||||||
m_ram_quality_limit = 2;
|
m_ram_quality_limit = 2;
|
||||||
@ -188,6 +190,8 @@ bool CConfigApp::ReadRegisterSettings()
|
|||||||
m_anisotropy = iniparser_getint(dict, "isle:Anisotropic", m_anisotropy);
|
m_anisotropy = iniparser_getint(dict, "isle:Anisotropic", m_anisotropy);
|
||||||
m_texture_load = iniparser_getboolean(dict, "extensions:texture loader", m_texture_load);
|
m_texture_load = iniparser_getboolean(dict, "extensions:texture loader", m_texture_load);
|
||||||
m_texture_path = iniparser_getstring(dict, "texture loader:texture path", m_texture_path.c_str());
|
m_texture_path = iniparser_getstring(dict, "texture loader:texture path", m_texture_path.c_str());
|
||||||
|
m_custom_assets_enabled = iniparser_getboolean(dict, "extensions:si loader", m_custom_assets_enabled);
|
||||||
|
m_custom_asset_path = iniparser_getstring(dict, "si loader:files", m_custom_asset_path.c_str());
|
||||||
m_aspect_ratio = iniparser_getint(dict, "isle:Aspect Ratio", m_aspect_ratio);
|
m_aspect_ratio = iniparser_getint(dict, "isle:Aspect Ratio", m_aspect_ratio);
|
||||||
m_x_res = iniparser_getint(dict, "isle:Horizontal Resolution", m_x_res);
|
m_x_res = iniparser_getint(dict, "isle:Horizontal Resolution", m_x_res);
|
||||||
m_y_res = iniparser_getint(dict, "isle:Vertical Resolution", m_y_res);
|
m_y_res = iniparser_getint(dict, "isle:Vertical Resolution", m_y_res);
|
||||||
@ -364,7 +368,8 @@ void CConfigApp::WriteRegisterSettings() const
|
|||||||
dictionary* dict = dictionary_new(0);
|
dictionary* dict = dictionary_new(0);
|
||||||
iniparser_set(dict, "isle", NULL);
|
iniparser_set(dict, "isle", NULL);
|
||||||
iniparser_set(dict, "extensions", NULL);
|
iniparser_set(dict, "extensions", NULL);
|
||||||
iniparser_set(dict, "texture loader", NULL);
|
iniparser_set(dict, "si loader", NULL);
|
||||||
|
|
||||||
if (m_device_enumerator->FormatDeviceName(buffer, m_driver, m_device) >= 0) {
|
if (m_device_enumerator->FormatDeviceName(buffer, m_driver, m_device) >= 0) {
|
||||||
iniparser_set(dict, "isle:3D Device ID", buffer);
|
iniparser_set(dict, "isle:3D Device ID", buffer);
|
||||||
}
|
}
|
||||||
@ -394,6 +399,9 @@ void CConfigApp::WriteRegisterSettings() const
|
|||||||
SetIniBool(dict, "extensions:texture loader", m_texture_load);
|
SetIniBool(dict, "extensions:texture loader", m_texture_load);
|
||||||
iniparser_set(dict, "texture loader:texture path", m_texture_path.c_str());
|
iniparser_set(dict, "texture loader:texture path", m_texture_path.c_str());
|
||||||
|
|
||||||
|
SetIniBool(dict, "extensions:si loader", m_custom_assets_enabled);
|
||||||
|
iniparser_set(dict, "si loader:files", m_custom_asset_path.c_str());
|
||||||
|
|
||||||
SetIniBool(dict, "isle:Back Buffers in Video RAM", m_3d_video_ram);
|
SetIniBool(dict, "isle:Back Buffers in Video RAM", m_3d_video_ram);
|
||||||
|
|
||||||
SetIniInt(dict, "isle:Island Quality", m_model_quality);
|
SetIniInt(dict, "isle:Island Quality", m_model_quality);
|
||||||
@ -451,8 +459,8 @@ CConfigApp g_theApp;
|
|||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
QApplication app(argc, argv);
|
QApplication app(argc, argv);
|
||||||
QCoreApplication::setApplicationName("config");
|
QCoreApplication::setApplicationName("Isle-Config");
|
||||||
QCoreApplication::setApplicationVersion("1.0");
|
QCoreApplication::setApplicationVersion("2.0");
|
||||||
|
|
||||||
QCommandLineParser parser;
|
QCommandLineParser parser;
|
||||||
parser.setApplicationDescription("Configure LEGO Island");
|
parser.setApplicationDescription("Configure LEGO Island");
|
||||||
@ -470,7 +478,7 @@ int main(int argc, char* argv[])
|
|||||||
if (parser.isSet(iniOption)) {
|
if (parser.isSet(iniOption)) {
|
||||||
g_theApp.SetIniPath(parser.value(iniOption).toStdString());
|
g_theApp.SetIniPath(parser.value(iniOption).toStdString());
|
||||||
}
|
}
|
||||||
qInfo() << "Ini path =" << QString::fromStdString(g_theApp.GetIniPath());
|
qInfo() << "INI path =" << QString::fromStdString(g_theApp.GetIniPath());
|
||||||
|
|
||||||
int result = 1;
|
int result = 1;
|
||||||
if (g_theApp.InitInstance()) {
|
if (g_theApp.InitInstance()) {
|
||||||
|
|||||||
@ -87,7 +87,9 @@ class CConfigApp {
|
|||||||
int m_texture_quality;
|
int m_texture_quality;
|
||||||
bool m_music;
|
bool m_music;
|
||||||
bool m_texture_load;
|
bool m_texture_load;
|
||||||
|
bool m_custom_assets_enabled;
|
||||||
std::string m_texture_path;
|
std::string m_texture_path;
|
||||||
|
std::string m_custom_asset_path;
|
||||||
std::string m_iniPath;
|
std::string m_iniPath;
|
||||||
std::string m_base_path;
|
std::string m_base_path;
|
||||||
std::string m_cd_path;
|
std::string m_cd_path;
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>600</width>
|
<width>640</width>
|
||||||
<height>480</height>
|
<height>480</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
@ -24,6 +24,9 @@
|
|||||||
<normaloff>:/lego1.png</normaloff>:/lego1.png</iconset>
|
<normaloff>:/lego1.png</normaloff>:/lego1.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout" stretch="0,0">
|
<layout class="QHBoxLayout" name="horizontalLayout" stretch="0,0">
|
||||||
|
<property name="sizeConstraint">
|
||||||
|
<enum>QLayout::SizeConstraint::SetFixedSize</enum>
|
||||||
|
</property>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="sharkImageLabel">
|
<widget class="QLabel" name="sharkImageLabel">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
@ -72,6 +75,12 @@
|
|||||||
<layout class="QVBoxLayout" name="verticalLayout">
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QTabWidget" name="tabWidget">
|
<widget class="QTabWidget" name="tabWidget">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>425</width>
|
||||||
|
<height>0</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
<property name="currentIndex">
|
<property name="currentIndex">
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
@ -80,30 +89,6 @@
|
|||||||
<string>Game</string>
|
<string>Game</string>
|
||||||
</attribute>
|
</attribute>
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
<item row="1" column="2">
|
|
||||||
<layout class="QVBoxLayout" name="gameSettingsCheckBoxes">
|
|
||||||
<item>
|
|
||||||
<widget class="QCheckBox" name="sound3DCheckBox">
|
|
||||||
<property name="toolTip">
|
|
||||||
<string>Enable 3D positional audio effects.</string>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>3D Sound</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QCheckBox" name="musicCheckBox">
|
|
||||||
<property name="toolTip">
|
|
||||||
<string>Enable in-game background music.</string>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Music</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item row="2" column="0" colspan="3">
|
<item row="2" column="0" colspan="3">
|
||||||
<spacer name="verticalSpacer">
|
<spacer name="verticalSpacer">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
@ -283,6 +268,32 @@ Set this to the CD image root.</string>
|
|||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="1" column="2">
|
||||||
|
<widget class="QWidget" name="gameSettingsCheckBoxes" native="true">
|
||||||
|
<layout class="QVBoxLayout" name="layout">
|
||||||
|
<item>
|
||||||
|
<widget class="QCheckBox" name="sound3DCheckBox">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Enable 3D positional audio effects.</string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>3D Sound</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QCheckBox" name="musicCheckBox">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Enable in-game background music.</string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Music</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QWidget" name="graphicsTab">
|
<widget class="QWidget" name="graphicsTab">
|
||||||
@ -766,7 +777,10 @@ The game will gradually increase the number of actors until this maximum is reac
|
|||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>x</string>
|
<string>✕</string>
|
||||||
|
</property>
|
||||||
|
<property name="textFormat">
|
||||||
|
<enum>Qt::TextFormat::PlainText</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="alignment">
|
<property name="alignment">
|
||||||
<set>Qt::AlignmentFlag::AlignCenter</set>
|
<set>Qt::AlignmentFlag::AlignCenter</set>
|
||||||
@ -1012,72 +1026,207 @@ The game will gradually increase the number of actors until this maximum is reac
|
|||||||
</attribute>
|
</attribute>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_8">
|
<layout class="QVBoxLayout" name="verticalLayout_8">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QGroupBox" name="textureLoader">
|
<widget class="QScrollArea" name="scrollArea">
|
||||||
<property name="toolTip">
|
<property name="widgetResizable">
|
||||||
<string>Settings for Texture Loader extension.</string>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
<property name="title">
|
<widget class="QWidget" name="scrollAreaWidgetContents">
|
||||||
<string>Texture Loader</string>
|
<property name="geometry">
|
||||||
</property>
|
<rect>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
<x>0</x>
|
||||||
<item>
|
<y>0</y>
|
||||||
<widget class="QCheckBox" name="textureCheckBox">
|
<width>449</width>
|
||||||
<property name="text">
|
<height>369</height>
|
||||||
<string>Enabled</string>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
<layout class="QVBoxLayout" name="verticalLayout_10">
|
||||||
</item>
|
<property name="leftMargin">
|
||||||
<item>
|
<number>0</number>
|
||||||
<widget class="QLineEdit" name="texturePath">
|
</property>
|
||||||
<property name="enabled">
|
<property name="topMargin">
|
||||||
<bool>false</bool>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="toolTip">
|
<property name="rightMargin">
|
||||||
<string>Path to texture replacements.</string>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="placeholderText">
|
<property name="bottomMargin">
|
||||||
<string>textures/</string>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
<item>
|
||||||
</item>
|
<widget class="QGroupBox" name="textureLoader">
|
||||||
<item>
|
<property name="toolTip">
|
||||||
<widget class="QPushButton" name="texturePathOpen">
|
<string>Settings for Texture Loader extension.</string>
|
||||||
<property name="enabled">
|
</property>
|
||||||
<bool>false</bool>
|
<property name="title">
|
||||||
</property>
|
<string>Texture Loader</string>
|
||||||
<property name="sizePolicy">
|
</property>
|
||||||
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
|
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||||
<horstretch>0</horstretch>
|
<item>
|
||||||
<verstretch>0</verstretch>
|
<widget class="QCheckBox" name="textureCheckBox">
|
||||||
</sizepolicy>
|
<property name="text">
|
||||||
</property>
|
<string>Enabled</string>
|
||||||
<property name="maximumSize">
|
</property>
|
||||||
<size>
|
</widget>
|
||||||
<width>50</width>
|
</item>
|
||||||
<height>16777215</height>
|
<item>
|
||||||
</size>
|
<widget class="QLineEdit" name="texturePath">
|
||||||
</property>
|
<property name="enabled">
|
||||||
<property name="text">
|
<bool>false</bool>
|
||||||
<string>Open</string>
|
</property>
|
||||||
</property>
|
<property name="toolTip">
|
||||||
</widget>
|
<string>Path to texture replacements. Relative to the Data Path.</string>
|
||||||
</item>
|
</property>
|
||||||
</layout>
|
<property name="placeholderText">
|
||||||
|
<string>textures/</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="texturePathOpen">
|
||||||
|
<property name="enabled">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>50</width>
|
||||||
|
<height>16777215</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Open</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QGroupBox" name="customAssets">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Settings for Custom Assets.</string>
|
||||||
|
</property>
|
||||||
|
<property name="title">
|
||||||
|
<string>Custom Assets</string>
|
||||||
|
</property>
|
||||||
|
<layout class="QHBoxLayout" name="horizontalLayout_12">
|
||||||
|
<item>
|
||||||
|
<widget class="QCheckBox" name="customAssetsCheckBox">
|
||||||
|
<property name="text">
|
||||||
|
<string>Enabled</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QWidget" name="customAssetPathContainer" native="true">
|
||||||
|
<property name="enabled">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<layout class="QGridLayout" name="gridLayout_3">
|
||||||
|
<property name="leftMargin">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="topMargin">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="rightMargin">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="bottomMargin">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<item row="0" column="1">
|
||||||
|
<widget class="QPushButton" name="addCustomAssetPath">
|
||||||
|
<property name="enabled">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>30</width>
|
||||||
|
<height>30</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="font">
|
||||||
|
<font>
|
||||||
|
<pointsize>13</pointsize>
|
||||||
|
<stylestrategy>NoAntialias</stylestrategy>
|
||||||
|
</font>
|
||||||
|
</property>
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Add path.</string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>+</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="0" rowspan="3">
|
||||||
|
<widget class="QListWidget" name="customAssetPaths">
|
||||||
|
<property name="enabled">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Paths used by the SI Loader extension.
|
||||||
|
|
||||||
|
Double-click a path to edit it.</string>
|
||||||
|
</property>
|
||||||
|
<property name="sizeAdjustPolicy">
|
||||||
|
<enum>QAbstractScrollArea::SizeAdjustPolicy::AdjustToContentsOnFirstShow</enum>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="1">
|
||||||
|
<widget class="QPushButton" name="removeCustomAssetPath">
|
||||||
|
<property name="enabled">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>30</width>
|
||||||
|
<height>30</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="font">
|
||||||
|
<font>
|
||||||
|
<pointsize>12</pointsize>
|
||||||
|
</font>
|
||||||
|
</property>
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Remove path.</string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>✕</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<spacer name="verticalSpacer_3">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Orientation::Vertical</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>20</width>
|
||||||
|
<height>40</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
|
||||||
<spacer name="verticalSpacer_3">
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Orientation::Vertical</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
|
||||||
<width>20</width>
|
|
||||||
<height>40</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</widget>
|
</widget>
|
||||||
@ -1176,9 +1325,14 @@ The game will gradually increase the number of actors until this maximum is reac
|
|||||||
<tabstop>AFSlider</tabstop>
|
<tabstop>AFSlider</tabstop>
|
||||||
<tabstop>touchComboBox</tabstop>
|
<tabstop>touchComboBox</tabstop>
|
||||||
<tabstop>rumbleCheckBox</tabstop>
|
<tabstop>rumbleCheckBox</tabstop>
|
||||||
|
<tabstop>scrollArea</tabstop>
|
||||||
<tabstop>textureCheckBox</tabstop>
|
<tabstop>textureCheckBox</tabstop>
|
||||||
<tabstop>texturePath</tabstop>
|
<tabstop>texturePath</tabstop>
|
||||||
<tabstop>texturePathOpen</tabstop>
|
<tabstop>texturePathOpen</tabstop>
|
||||||
|
<tabstop>customAssetsCheckBox</tabstop>
|
||||||
|
<tabstop>customAssetPaths</tabstop>
|
||||||
|
<tabstop>addCustomAssetPath</tabstop>
|
||||||
|
<tabstop>removeCustomAssetPath</tabstop>
|
||||||
<tabstop>okButton</tabstop>
|
<tabstop>okButton</tabstop>
|
||||||
<tabstop>launchButton</tabstop>
|
<tabstop>launchButton</tabstop>
|
||||||
<tabstop>cancelButton</tabstop>
|
<tabstop>cancelButton</tabstop>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user