mirror of
https://github.com/UltimMC/Launcher.git
synced 2025-12-22 19:49:56 +00:00
Implement instance creation.
This commit is contained in:
@@ -74,6 +74,8 @@ void NewInstanceDialog::updateSelectedType()
|
||||
{
|
||||
if (!m_selectedType->versionList()->isLoaded())
|
||||
loadVersionList();
|
||||
|
||||
setSelectedVersion(m_selectedType->versionList()->getLatestStable());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -112,6 +114,27 @@ void NewInstanceDialog::loadVersionList()
|
||||
setSelectedVersion(m_selectedType->versionList()->getLatestStable());
|
||||
}
|
||||
|
||||
QString NewInstanceDialog::instName() const
|
||||
{
|
||||
return ui->instNameTextBox->text();
|
||||
}
|
||||
|
||||
QString NewInstanceDialog::iconKey() const
|
||||
{
|
||||
// TODO: Implement icon stuff.
|
||||
return "default";
|
||||
}
|
||||
|
||||
const InstanceTypeInterface *NewInstanceDialog::selectedType() const
|
||||
{
|
||||
return m_selectedType;
|
||||
}
|
||||
|
||||
const InstVersion *NewInstanceDialog::selectedVersion() const
|
||||
{
|
||||
return m_selectedVersion;
|
||||
}
|
||||
|
||||
void NewInstanceDialog::on_btnChangeVersion_clicked()
|
||||
{
|
||||
if (m_selectedType)
|
||||
|
||||
Reference in New Issue
Block a user