Merge pull request #264 from thecelloman/gameguisarenotcore

Relocate game specific GUIs  out of the "core"
This commit is contained in:
SilentMike 2013-03-20 09:20:46 -07:00
commit 6c31872928
34 changed files with 26 additions and 32 deletions

View file

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

View file

Before

Width:  |  Height:  |  Size: 279 B

After

Width:  |  Height:  |  Size: 279 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 549 B

After

Width:  |  Height:  |  Size: 549 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 484 B

After

Width:  |  Height:  |  Size: 484 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 34 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 290 B

After

Width:  |  Height:  |  Size: 290 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 561 B

After

Width:  |  Height:  |  Size: 561 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 494 B

After

Width:  |  Height:  |  Size: 494 B

Before After
Before After

View file

@ -82,16 +82,7 @@ function onStart()
exec("./scripts/gui/messageBoxes/messageBox.ed.cs"); exec("./scripts/gui/messageBoxes/messageBox.ed.cs");
exec("./art/gui/customProfiles.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"); echo(" % - Initialized Core");
} }

View file

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

View file

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

View file

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

View file

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

View file

Before

Width:  |  Height:  |  Size: 279 B

After

Width:  |  Height:  |  Size: 279 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 549 B

After

Width:  |  Height:  |  Size: 549 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 484 B

After

Width:  |  Height:  |  Size: 484 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 290 B

After

Width:  |  Height:  |  Size: 290 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 561 B

After

Width:  |  Height:  |  Size: 561 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 494 B

After

Width:  |  Height:  |  Size: 494 B

Before After
Before After

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("./scripts/gui/messageBoxes/messageBox.ed.cs");
exec("./art/gui/customProfiles.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"); echo(" % - Initialized Core");
} }

View file

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

View file

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

View file

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