diff options
Diffstat (limited to 'Stars45/CmdOrdersDlg.cpp')
-rw-r--r-- | Stars45/CmdOrdersDlg.cpp | 90 |
1 files changed, 45 insertions, 45 deletions
diff --git a/Stars45/CmdOrdersDlg.cpp b/Stars45/CmdOrdersDlg.cpp index c874d22..5a3d344 100644 --- a/Stars45/CmdOrdersDlg.cpp +++ b/Stars45/CmdOrdersDlg.cpp @@ -1,15 +1,15 @@ /* Project Starshatter 4.5
- Destroyer Studios LLC
- Copyright © 1997-2004. All Rights Reserved.
+ Destroyer Studios LLC
+ Copyright © 1997-2004. All Rights Reserved.
- SUBSYSTEM: Stars.exe
- FILE: CmdOrdersDlg.cpp
- AUTHOR: John DiCamillo
+ SUBSYSTEM: Stars.exe
+ FILE: CmdOrdersDlg.cpp
+ AUTHOR: John DiCamillo
- OVERVIEW
- ========
- Operational Command Dialog (Campaign Orders Tab)
+ OVERVIEW
+ ========
+ Operational Command Dialog (Campaign Orders Tab)
*/
#include "MemDebug.h"
@@ -45,13 +45,13 @@ DEF_MAP_CLIENT(CmdOrdersDlg, OnExit); // +--------------------------------------------------------------------+
CmdOrdersDlg::CmdOrdersDlg(Screen* s, FormDef& def, CmpnScreen* mgr)
- : FormWindow(s, 0, 0, s->Width(), s->Height()), CmdDlg(mgr), manager(mgr),
- lbl_orders(0), stars(0), campaign(0)
+: FormWindow(s, 0, 0, s->Width(), s->Height()), CmdDlg(mgr), manager(mgr),
+lbl_orders(0), stars(0), campaign(0)
{
- stars = Starshatter::GetInstance();
- campaign = Campaign::GetCampaign();
+ stars = Starshatter::GetInstance();
+ campaign = Campaign::GetCampaign();
- Init(def);
+ Init(def);
}
CmdOrdersDlg::~CmdOrdersDlg()
@@ -63,20 +63,20 @@ CmdOrdersDlg::~CmdOrdersDlg() void
CmdOrdersDlg::RegisterControls()
{
- lbl_orders = FindControl(400);
+ lbl_orders = FindControl(400);
- RegisterCmdControls(this);
+ RegisterCmdControls(this);
- if (btn_save)
- REGISTER_CLIENT(EID_CLICK, btn_save, CmdOrdersDlg, OnSave);
+ if (btn_save)
+ REGISTER_CLIENT(EID_CLICK, btn_save, CmdOrdersDlg, OnSave);
- if (btn_exit)
- REGISTER_CLIENT(EID_CLICK, btn_exit, CmdOrdersDlg, OnExit);
+ if (btn_exit)
+ REGISTER_CLIENT(EID_CLICK, btn_exit, CmdOrdersDlg, OnExit);
- for (int i = 0; i < 5; i++) {
- if (btn_mode[i])
- REGISTER_CLIENT(EID_CLICK, btn_mode[i], CmdOrdersDlg, OnMode);
- }
+ for (int i = 0; i < 5; i++) {
+ if (btn_mode[i])
+ REGISTER_CLIENT(EID_CLICK, btn_mode[i], CmdOrdersDlg, OnMode);
+ }
}
// +--------------------------------------------------------------------+
@@ -84,29 +84,29 @@ CmdOrdersDlg::RegisterControls() void
CmdOrdersDlg::Show()
{
- mode = MODE_ORDERS;
+ mode = MODE_ORDERS;
- FormWindow::Show();
- ShowCmdDlg();
+ FormWindow::Show();
+ ShowCmdDlg();
- campaign = Campaign::GetCampaign();
+ campaign = Campaign::GetCampaign();
- if (campaign && lbl_orders) {
- Text orders("<font Limerick12><color ffff80>");
- orders += Game::GetText("CmdOrdersDlg.situation");
- orders += "\n<font Verdana><color ffffff>";
- if (*campaign->Situation())
- orders += campaign->Situation();
- else
- orders += campaign->Description();
+ if (campaign && lbl_orders) {
+ Text orders("<font Limerick12><color ffff80>");
+ orders += Game::GetText("CmdOrdersDlg.situation");
+ orders += "\n<font Verdana><color ffffff>";
+ if (*campaign->Situation())
+ orders += campaign->Situation();
+ else
+ orders += campaign->Description();
- orders += "\n\n<font Limerick12><color ffff80>";
- orders += Game::GetText("CmdOrdersDlg.orders");
- orders += "\n<font Verdana><color ffffff>";
- orders += campaign->Orders();
+ orders += "\n\n<font Limerick12><color ffff80>";
+ orders += Game::GetText("CmdOrdersDlg.orders");
+ orders += "\n<font Verdana><color ffffff>";
+ orders += campaign->Orders();
- lbl_orders->SetText(orders);
- }
+ lbl_orders->SetText(orders);
+ }
}
// +--------------------------------------------------------------------+
@@ -114,7 +114,7 @@ CmdOrdersDlg::Show() void
CmdOrdersDlg::ExecFrame()
{
- CmdDlg::ExecFrame();
+ CmdDlg::ExecFrame();
}
// +--------------------------------------------------------------------+
@@ -122,18 +122,18 @@ CmdOrdersDlg::ExecFrame() void
CmdOrdersDlg::OnSave(AWEvent* event)
{
- CmdDlg::OnSave(event);
+ CmdDlg::OnSave(event);
}
void
CmdOrdersDlg::OnExit(AWEvent* event)
{
- CmdDlg::OnExit(event);
+ CmdDlg::OnExit(event);
}
void
CmdOrdersDlg::OnMode(AWEvent* event)
{
- CmdDlg::OnMode(event);
+ CmdDlg::OnMode(event);
}
|