Relocates several game specific GUIs (with relevant art and scripts) out of the "core".

This commit is contained in:
thecelloman 2013-03-20 12:10:08 -04:00
parent 5094eb5930
commit c1831e4bd8
34 changed files with 26 additions and 32 deletions

View file

@ -61,7 +61,7 @@
Visible = "1";
tooltipprofile = "GuiToolTipProfile";
hovertime = "1000";
bitmap = "./images/no-preview";
bitmap = "./no-preview";
wrap = "0";
};
@ -192,7 +192,7 @@
Visible = "1";
tooltipprofile = "GuiToolTipProfile";
hovertime = "1000";
bitmap = "core/art/gui/images/previous-button";
bitmap = "art/gui/previous-button";
wrap = "0";
command = "ChooseLevelWindow.previousPreviews();";
};
@ -222,7 +222,7 @@
Visible = "1";
tooltipprofile = "GuiToolTipProfile";
hovertime = "1000";
bitmap = "core/art/gui/images/next-button";
bitmap = "art/gui/next-button";
wrap = "0";
command = "ChooseLevelWindow.nextPreviews();";
};

View file

Before

Width:  |  Height:  |  Size: 279 B

After

Width:  |  Height:  |  Size: 279 B

View file

Before

Width:  |  Height:  |  Size: 549 B

After

Width:  |  Height:  |  Size: 549 B

View file

Before

Width:  |  Height:  |  Size: 484 B

After

Width:  |  Height:  |  Size: 484 B

View file

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 34 KiB

View file

Before

Width:  |  Height:  |  Size: 290 B

After

Width:  |  Height:  |  Size: 290 B

View file

Before

Width:  |  Height:  |  Size: 561 B

After

Width:  |  Height:  |  Size: 561 B

View file

Before

Width:  |  Height:  |  Size: 494 B

After

Width:  |  Height:  |  Size: 494 B

View file

@ -82,16 +82,7 @@ function onStart()
exec("./scripts/gui/messageBoxes/messageBox.ed.cs");
exec("./art/gui/customProfiles.cs");
// Level Chooser GUI
exec("./art/gui/chooseLevelDlg.gui");
exec("./scripts/gui/chooseLevelDlg.cs");
exec("./scripts/gui/optionsDlg.cs");
exec("./art/gui/optionsDlg.gui");
exec("./scripts/gui/loadingGui.cs");
exec("./art/gui/loadingGui.gui");
echo(" % - Initialized Core");
}

View file

@ -67,7 +67,6 @@ function initializeCore()
startFileChangeNotifications();
// Core Guis.
exec("~/art/gui/remapDlg.gui");
exec("~/art/gui/console.gui");
exec("~/art/gui/consoleVarDlg.gui");
exec("~/art/gui/netGraphGui.gui");

View file

@ -72,10 +72,17 @@ function initClient()
// Load up the shell GUIs
exec("art/gui/mainMenuGui.gui");
exec("art/gui/StartupGui.gui");
exec("art/gui/chooseLevelDlg.gui");
exec("art/gui/loadingGui.gui");
exec("art/gui/optionsDlg.gui");
exec("art/gui/remapDlg.gui");
// Gui scripts
exec("scripts/gui/playGui.cs");
exec("scripts/gui/startupGui.cs");
exec("scripts/gui/chooseLevelDlg.cs");
exec("scripts/gui/loadingGui.cs");
exec("scripts/gui/optionsDlg.cs");
// Client scripts
exec("./missionDownload.cs");

View file

@ -95,7 +95,7 @@ function ChooseLevelDlg::onWake( %this )
%preview = new GuiBitmapButtonCtrl() {
internalName = "SmallPreview" @ %i;
Extent = "108 81";
bitmap = "core/art/gui/images/no-preview";
bitmap = "art/gui/no-preview";
command = "ChooseLevelWindow.previewSelected(ChooseLevelWindow->SmallPreviews->SmallPreview" @ %i @ ");";
};
@ -240,7 +240,7 @@ function ChooseLevelWindow::previewSelected(%this, %preview)
if (isObject(%preview) && %preview.bitmap !$= "")
%this->CurrentPreview.setBitmap(%preview.bitmap);
else
%this->CurrentPreview.setBitmap("core/art/gui/images/no-preview");
%this->CurrentPreview.setBitmap("art/gui/no-preview");
// Set the current level name
if (isObject(%preview) && %preview.levelName !$= "")

View file

@ -61,7 +61,7 @@
Visible = "1";
tooltipprofile = "GuiToolTipProfile";
hovertime = "1000";
bitmap = "./images/no-preview";
bitmap = "./no-preview";
wrap = "0";
};
@ -192,7 +192,7 @@
Visible = "1";
tooltipprofile = "GuiToolTipProfile";
hovertime = "1000";
bitmap = "core/art/gui/images/previous-button";
bitmap = "art/gui/previous-button";
wrap = "0";
command = "ChooseLevelWindow.previousPreviews();";
};
@ -222,7 +222,7 @@
Visible = "1";
tooltipprofile = "GuiToolTipProfile";
hovertime = "1000";
bitmap = "core/art/gui/images/next-button";
bitmap = "art/gui/next-button";
wrap = "0";
command = "ChooseLevelWindow.nextPreviews();";
};

View file

Before

Width:  |  Height:  |  Size: 279 B

After

Width:  |  Height:  |  Size: 279 B

View file

Before

Width:  |  Height:  |  Size: 549 B

After

Width:  |  Height:  |  Size: 549 B

View file

Before

Width:  |  Height:  |  Size: 484 B

After

Width:  |  Height:  |  Size: 484 B

View file

Before

Width:  |  Height:  |  Size: 290 B

After

Width:  |  Height:  |  Size: 290 B

View file

Before

Width:  |  Height:  |  Size: 561 B

After

Width:  |  Height:  |  Size: 561 B

View file

Before

Width:  |  Height:  |  Size: 494 B

After

Width:  |  Height:  |  Size: 494 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

View file

@ -82,16 +82,7 @@ function onStart()
exec("./scripts/gui/messageBoxes/messageBox.ed.cs");
exec("./art/gui/customProfiles.cs");
// Level Chooser GUI
exec("./art/gui/chooseLevelDlg.gui");
exec("./scripts/gui/chooseLevelDlg.cs");
exec("./scripts/gui/optionsDlg.cs");
exec("./art/gui/optionsDlg.gui");
exec("./scripts/gui/loadingGui.cs");
exec("./art/gui/loadingGui.gui");
echo(" % - Initialized Core");
}

View file

@ -67,7 +67,6 @@ function initializeCore()
startFileChangeNotifications();
// Core Guis.
exec("~/art/gui/remapDlg.gui");
exec("~/art/gui/console.gui");
exec("~/art/gui/consoleVarDlg.gui");
exec("~/art/gui/netGraphGui.gui");

View file

@ -81,13 +81,20 @@ function initClient()
exec("art/gui/joinServerDlg.gui");
exec("art/gui/endGameGui.gui");
exec("art/gui/StartupGui.gui");
exec("art/gui/chooseLevelDlg.gui");
exec("art/gui/loadingGui.gui");
exec("art/gui/optionsDlg.gui");
exec("art/gui/remapDlg.gui");
// Gui scripts
exec("./playerList.cs");
exec("./chatHud.cs");
exec("./messageHud.cs");
exec("scripts/gui/playGui.cs");
exec("scripts/gui/startupGui.cs");
exec("scripts/gui/chooseLevelDlg.cs");
exec("scripts/gui/loadingGui.cs");
exec("scripts/gui/optionsDlg.cs");
// Client scripts
exec("./client.cs");

View file

@ -95,7 +95,7 @@ function ChooseLevelDlg::onWake( %this )
%preview = new GuiBitmapButtonCtrl() {
internalName = "SmallPreview" @ %i;
Extent = "108 81";
bitmap = "core/art/gui/images/no-preview";
bitmap = "art/gui/no-preview";
command = "ChooseLevelWindow.previewSelected(ChooseLevelWindow->SmallPreviews->SmallPreview" @ %i @ ");";
};
@ -240,7 +240,7 @@ function ChooseLevelWindow::previewSelected(%this, %preview)
if (isObject(%preview) && %preview.bitmap !$= "")
%this->CurrentPreview.setBitmap(%preview.bitmap);
else
%this->CurrentPreview.setBitmap("core/art/gui/images/no-preview");
%this->CurrentPreview.setBitmap("art/gui/no-preview");
// Set the current level name
if (isObject(%preview) && %preview.levelName !$= "")