Updated POI map sidebar icon, fixed minor spacing issue in the world info sidebar
This commit is contained in:
parent
e89d44f7a7
commit
d350e983d9
|
@ -114,6 +114,10 @@ bool CExportGameDialog::ValidateGame()
|
|||
mGameID = TString(6, 0);
|
||||
memcpy(&mGameID[0], rkHeader.m_gameID, 6);
|
||||
|
||||
// The MP2 ISO doesn't have a colon in the game name and it kinda annoys me
|
||||
if (mGameTitle == "Metroid Prime 2 Echoes")
|
||||
mGameTitle = "Metroid Prime 2: Echoes";
|
||||
|
||||
// Check region byte
|
||||
switch (mGameID[3])
|
||||
{
|
||||
|
|
|
@ -71,5 +71,6 @@
|
|||
<file>icons/New_16px.png</file>
|
||||
<file>icons/Disc_16px.png</file>
|
||||
<file>icons/World_16px.png</file>
|
||||
<file>icons/PoiSymbol_24px.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
|
|
@ -83,7 +83,7 @@ CWorldEditor::CWorldEditor(QWidget *parent)
|
|||
|
||||
AddEditModeButton( QIcon(":/icons/World.png"), "Edit World Info",eWEM_EditWorldInfo );
|
||||
AddEditModeButton( QIcon(":/icons/Modify.png"), "Edit Script", eWEM_EditScript );
|
||||
mpPoiMapButton = AddEditModeButton( QIcon(":/icons/POI Normal.png"), "Edit POI Mappings", eWEM_EditPOIMappings );
|
||||
mpPoiMapButton = AddEditModeButton( QIcon(":/icons/PoiSymbol_24px.png"), "Edit POI Mappings", eWEM_EditPOIMappings );
|
||||
mpPoiMapButton->setEnabled(false);
|
||||
|
||||
ChangeEditMode(eWEM_EditWorldInfo);
|
||||
|
|
|
@ -37,9 +37,7 @@ CWorldInfoSidebar::CWorldInfoSidebar(CWorldEditor *pEditor)
|
|||
|
||||
mpUI->WorldSelector->SetEditable(false);
|
||||
mpUI->WorldNameSelector->SetEditable(false);
|
||||
mpUI->DarkWorldNameStringLabel->setHidden(true);
|
||||
mpUI->DarkWorldNameSelector->SetEditable(false);
|
||||
mpUI->DarkWorldNameSelector->setHidden(true);
|
||||
mpUI->SkySelector->SetEditable(false);
|
||||
|
||||
mpUI->AreaNameLineEdit->setEnabled(false);
|
||||
|
@ -61,10 +59,25 @@ void CWorldInfoSidebar::OnActiveProjectChanged(CGameProject *pProj)
|
|||
mpUI->AreaSearchLineEdit->clear();
|
||||
mProxyModel.SetFilterString("");
|
||||
|
||||
bool IsEchoes = pProj && (pProj->Game() == eEchoesDemo || pProj->Game() == eEchoes);
|
||||
mpUI->GameNameLabel->setText( pProj ? TO_QSTRING(pProj->Name()) : "" );
|
||||
|
||||
// Add/remove widgets from the form layout based on the game. This is needed because
|
||||
// simply hiding the widgets causes a minor spacing issue. The only fix seems to be
|
||||
// actually entirely removing the widgets from the layout when not in use.
|
||||
bool IsEchoes = pProj && (pProj->Game() == eEchoesDemo || pProj->Game() == eEchoes);
|
||||
mpUI->DarkWorldNameStringLabel->setHidden(!IsEchoes);
|
||||
mpUI->DarkWorldNameSelector->setHidden(!IsEchoes);
|
||||
|
||||
if (IsEchoes)
|
||||
{
|
||||
mpUI->WorldInfoFormLayout->insertRow(2, mpUI->DarkWorldNameStringLabel, mpUI->DarkWorldNameSelector);
|
||||
}
|
||||
else
|
||||
{
|
||||
mpUI->WorldInfoFormLayout->removeWidget(mpUI->DarkWorldNameStringLabel);
|
||||
mpUI->WorldInfoFormLayout->removeWidget(mpUI->DarkWorldNameSelector);
|
||||
}
|
||||
|
||||
ClearWorldInfo();
|
||||
}
|
||||
|
||||
|
|
|
@ -148,7 +148,7 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QFormLayout" name="formLayout_2">
|
||||
<layout class="QFormLayout" name="WorldInfoFormLayout">
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="WorldLabel">
|
||||
<property name="font">
|
||||
|
@ -242,7 +242,7 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QFormLayout" name="formLayout">
|
||||
<layout class="QFormLayout" name="AreaInfoFormLayout">
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="AreaInternalNameLabel">
|
||||
<property name="font">
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 396 B |
Loading…
Reference in New Issue