implemented main window

This commit is contained in:
Geoffray Levasseur committed 2026-11-04 14:48:04 +01:00
1 parent a11ce3005c
commit 5d5a502976
11 files changed
+2876 -37

No files matched your search

+38
View File
@@ -83,6 +83,7 @@ constexpr int cSetCityName = 0x9200;
// TUn.Status bit flags not already in IsoEngine.h.
constexpr int usWaiting = 0x02;
constexpr int usToldNoReturn = 0x100;
constexpr int usPersistent = 0x01 | 0x04 | 0x08 | 0x10 | static_cast<int>(0xFFFF0000u);
// Index of the slaves/no-slaves pictures in StdUnits.
constexpr int pixSlaves = 0;
@@ -207,6 +208,43 @@ constexpr int PanelHeight = 168;
constexpr int MidPanelHeight = 120;
// (MidPanelHeight - TopBarHeight) div 2 = (120 - 41) div 2 = 39.
constexpr int MapCenterUp = (MidPanelHeight - TopBarHeight) / 2;
constexpr int Overlap = PanelHeight - MidPanelHeight;
constexpr int LeftPanelWidth = 70;
constexpr int LxmaxXxx = 130;
constexpr int YTroop = PanelHeight - 83;
constexpr int XPalace = 66;
constexpr int YPalace = 24;
constexpr int XUnitText = 80;
constexpr int BlinkOnTime = 12;
constexpr int BlinkOffTime = 6;
constexpr int EmptySpaceColor = 0x101010;
// ProcessRect options.
constexpr int prPaint = 0x0001;
constexpr int prAutoBounds = 0x0002;
constexpr int prInvalidate = 0x0004;
enum class PaintLocTempStyle { Normal, Blink };
// Terrain brushes of the map editor.
constexpr std::array<std::uint32_t, 26> BrushTypes = {
fPrefStartPos, fStartPos, fShore, fGrass, fTundra, fPrairie, fDesert, fSwamp, fForest, fHills, fMountains,
fArctic, fDeadLands, fDeadLands | fCobalt, fDeadLands | fUranium, fDeadLands | fMercury, fRiver, fRoad, fRR,
fCanal, tiIrrigation, tiFarm, tiMine, fPoll, tiFort, tiBase
};
// FocusOnLoc options.
constexpr int flRepaintPanel = 0x0001;
constexpr int flImmUpdate = 0x0002;
// Term.pas's `MapOptionChecked`: map display options chosen by the user
// (default: city names).
extern ClientTools::MapOptions mapOptionChecked;
// Term.pas's `UnStartLoc`: location where the focused unit started its turn.
extern int unStartLoc;
// Sets Term::clientMode and the copy IsoEngine reads.
void setClientMode(int value);
// Term.pas's `LostArmy`/`nLostArmy` (model-indexed lost-unit counts shown
// by MessgEx.pas's "army destroyed" report) - stay all-zero until Term.pas