Skip to content

An OpenMW mod that lets you play the whole Elder Scrolls III: Morrowind as a top-down isometric game — with full online co-op or MMO modes.

C++

Launcher: the Isowind logo in place of the title text

Clauded156a904ce9b
diff --git a/README.md b/README.md
index 18deed4..b5c48ff 100644
--- a/README.md
+++ b/README.md
@@ -64,7 +64,8 @@ The pieces, if you need one on its own:
* `make_package.ps1` assembles `<root>\dist\Isowind` from `MSVC2022_64\Release`, the mod, the bundled mods, the
pixel art, profiles, server, licenses, `README.txt` and the GPL source patch against OpenMW's `openmw-0.51.0`
tag (fetched if the clone lacks it), then zips it. It finds the repository from its own location.
-* `make_icon.py` draws the icon; `Isowind.cs` compiles with .NET Framework 4's `csc.exe`, which comes with Windows.
+* `make_icon.py` draws the icon; `Isowind.cs` compiles with .NET Framework 4's `csc.exe`, which comes with Windows,
+ with `logo.png` (the launcher's logo) embedded as a resource.
If something goes wrong:
diff --git a/isowind/windows/Isowind.cs b/isowind/windows/Isowind.cs
index eb90519..fba54e2 100644
--- a/isowind/windows/Isowind.cs
+++ b/isowind/windows/Isowind.cs
@@ -93,31 +93,38 @@ class LauncherForm : Form
FormBorderStyle = FormBorderStyle.FixedSingle;
MaximizeBox = false;
StartPosition = FormStartPosition.CenterScreen;
- ClientSize = new Size(460, 558);
+ ClientSize = new Size(460, 580);
BackColor = Back;
ForeColor = Sand;
Font = new Font("Segoe UI", 10f);
try { Icon = Icon.ExtractAssociatedIcon(Application.ExecutablePath); } catch { }
- var title = new Label
+ // The logo (logo.png, embedded by the compiler's /resource), or the name in text if the exe was built without it
+ Control title;
+ var logo = typeof(LauncherForm).Assembly.GetManifestResourceStream("logo.png");
+ if (logo != null)
{
- Text = "ISOWIND",
- Font = new Font("Georgia", 30f, FontStyle.Bold),
- ForeColor = Gold,
- AutoSize = false,
- TextAlign = ContentAlignment.MiddleCenter,
- Bounds = new Rectangle(0, 18, 460, 54),
- };
- var subtitle = new Label
+ title = new PictureBox
+ {
+ Image = Image.FromStream(logo),
+ SizeMode = PictureBoxSizeMode.CenterImage,
+ Bounds = new Rectangle(0, 18, 460, 100),
+ };
+ }
+ else
{
- Text = "Morrowind, seen from above",
- ForeColor = Dim,
- AutoSize = false,
- TextAlign = ContentAlignment.MiddleCenter,
- Bounds = new Rectangle(0, 72, 460, 22),
- };
+ title = new Label
+ {
+ Text = "ISOWIND",
+ Font = new Font("Georgia", 30f, FontStyle.Bold),
+ ForeColor = Gold,
+ AutoSize = false,
+ TextAlign = ContentAlignment.MiddleCenter,
+ Bounds = new Rectangle(0, 18, 460, 100),
+ };
+ }
- var look = new Panel { BackColor = Panel, Bounds = new Rectangle(30, 110, 400, 146) };
+ var look = new Panel { BackColor = Panel, Bounds = new Rectangle(30, 132, 400, 146) };
var lookTitle = new Label { Text = "Look", ForeColor = Gold, Bounds = new Rectangle(14, 8, 300, 22) };
pixelArt = new RadioButton
{
@@ -148,11 +155,11 @@ class LauncherForm : Form
};
look.Controls.AddRange(new Control[] { lookTitle, pixelArt, normal, controller, hint });
- play = MakeButton("Play", new Rectangle(30, 272, 400, 52), 16f);
+ play = MakeButton("Play", new Rectangle(30, 294, 400, 52), 16f);
play.Click += delegate { Launch(null); };
// Multiplayer: join a server by its address, or host one on this computer
- var multiplayer = new Panel { BackColor = Panel, Bounds = new Rectangle(30, 336, 400, 122) };
+ var multiplayer = new Panel { BackColor = Panel, Bounds = new Rectangle(30, 358, 400, 122) };
var multiplayerTitle = new Label { Text = "Multiplayer", ForeColor = Gold, Bounds = new Rectangle(14, 8, 300, 22) };
var addressLabel = new Label
{
@@ -190,15 +197,15 @@ class LauncherForm : Form
};
openmwLauncher = MakeButton("OpenMW Launcher (Morrowind, mods, options)",
- new Rectangle(30, 470, 300, 34), 9f);
+ new Rectangle(30, 492, 300, 34), 9f);
openmwLauncher.Click += delegate { StartOpenMWLauncher(); };
- var licenses = MakeButton("Licenses", new Rectangle(340, 470, 90, 34), 9.5f);
+ var licenses = MakeButton("Licenses", new Rectangle(340, 492, 90, 34), 9.5f);
licenses.Click += delegate { ShowLicenses(); };
- progress = new ProgressBar { Bounds = new Rectangle(30, 512, 400, 12), Visible = false };
- status = new Label { ForeColor = Dim, Bounds = new Rectangle(30, 528, 400, 22), Font = new Font("Segoe UI", 9f) };
+ progress = new ProgressBar { Bounds = new Rectangle(30, 534, 400, 12), Visible = false };
+ status = new Label { ForeColor = Dim, Bounds = new Rectangle(30, 550, 400, 22), Font = new Font("Segoe UI", 9f) };
- Controls.AddRange(new Control[] { title, subtitle, look, play, multiplayer, openmwLauncher, licenses, progress,
+ Controls.AddRange(new Control[] { title, look, play, multiplayer, openmwLauncher, licenses, progress,
status });
try
diff --git a/isowind/windows/build.ps1 b/isowind/windows/build.ps1
index 7c15a15..263f972 100644
--- a/isowind/windows/build.ps1
+++ b/isowind/windows/build.ps1
@@ -1,8 +1,8 @@
# Builds Isowind on Windows, the whole way: CrabNet (the multiplayer networking), OpenMW's dependencies, the engine,
# Isowind.exe, and the package (make_package.ps1). Run it from PowerShell, from anywhere; it works out the folders.
#
-# Everything is in the repository (isowind\windows: this script, Isowind.cs and make_icon.py for the launcher,
-# make_package.ps1), and the rest goes beside the repository, in the folder it is checked out into (<root>):
+# Everything is in the repository (isowind\windows: this script, Isowind.cs, logo.png and make_icon.py for the
+# launcher, make_package.ps1), and the rest goes beside the repository, in the folder it is checked out into (<root>):
# <root>\crabnet\ the multiplayer networking library, cloned and built here
# <root>\bundled-mods\ the third-party mods (make_package.ps1 wants them); fetched from this repository's
# "bundled-mods" release (bundled-mods.zip, as the Linux CI does) when the folder is missing
@@ -38,7 +38,7 @@ $ErrorActionPreference = 'Stop'
$src = (Resolve-Path (Join-Path $PSScriptRoot '..\..')).Path # the repository
$root = Split-Path -Parent $src
$crabnet = Join-Path $root 'crabnet'
-$launcherSrc = Join-Path $src 'isowind\windows' # Isowind.cs, make_icon.py, make_package.ps1
+$launcherSrc = Join-Path $src 'isowind\windows' # Isowind.cs, logo.png, make_icon.py, make_package.ps1
$buildDir = "MSVC${VsVersion}_64"
$CrabNetCommit = '19e6619' # the one every Isowind build uses (see .github\workflows\linux.yml)
@@ -162,7 +162,8 @@ if (-not $SkipLauncher) {
}
Run $python.Source @('make_icon.py', $icon) $launcherSrc
}
- Run $csc @('/nologo', '/target:winexe', "/out:$launcherOut\Isowind.exe", "/win32icon:$icon", 'Isowind.cs') $launcherSrc
+ Run $csc @('/nologo', '/target:winexe', "/out:$launcherOut\Isowind.exe", "/win32icon:$icon", '/resource:logo.png',
+ 'Isowind.cs') $launcherSrc
Write-Host "Launcher: $launcherOut\Isowind.exe"
}
}
diff --git a/isowind/windows/logo.png b/isowind/windows/logo.png
new file mode 100644
index 0000000..bb16926
Binary files /dev/null and b/isowind/windows/logo.png differ
diff --git a/isowind/windows/make_package.ps1 b/isowind/windows/make_package.ps1
index ca21f0e..74259eb 100644
--- a/isowind/windows/make_package.ps1
+++ b/isowind/windows/make_package.ps1
@@ -86,14 +86,15 @@ else {
"The changes to OpenMW are in the Isowind repository, https://github.com/pw-tf/isowind, at commit $commit`r`n(the patch against OpenMW's $tag tag couldn't be made when this package was built)" |
Set-Content -Encoding utf8 (Join-Path $source "isowind-$tag.patch.txt")
}
-Copy-Item (Join-Path $PSScriptRoot 'Isowind.cs'), (Join-Path $PSScriptRoot 'make_icon.py') $source -Force
+Copy-Item (Join-Path $PSScriptRoot 'Isowind.cs'), (Join-Path $PSScriptRoot 'logo.png'), (Join-Path $PSScriptRoot 'make_icon.py') $source -Force
Copy-Item (Join-Path $isowind 'tools\make_palettes.py'), (Join-Path $isowind 'tools\retro_textures.py') $source -Force
@"
Isowind source
==============
isowind-openmw-0.51.0.patch Changes to OpenMW: apply to https://gitlab.com/OpenMW/openmw at tag openmw-0.51.0.
Includes the multiplayer port of TES3MP (https://github.com/TES3MP/TES3MP, GPL v3).
-Isowind.cs, make_icon.py The Isowind.exe launcher (C#, .NET Framework 4) and its icon.
+Isowind.cs, logo.png, The Isowind.exe launcher (C#, .NET Framework 4), its logo and its icon.
+make_icon.py
make_palettes.py Builds pixelart\textures\isowind\palettes.dds.
retro_textures.py Python version of the texture reduction Isowind.exe does.
The top-down mod (Lua) and shaders are in the mod and pixelart folders as they are.