Allow mods to customize application title.

This commit is contained in:
Matthias Mailänder
2021-07-16 15:39:21 +02:00
committed by abcdefg30
parent 3a8957c6f3
commit f08a0b113e
8 changed files with 17 additions and 2 deletions

View File

@@ -31,7 +31,7 @@ namespace OpenRA.Platforms.Default
bool disposed;
readonly object syncObject = new object();
Size windowSize;
readonly Size windowSize;
Size surfaceSize;
float windowScale = 1f;
int2? lockedMousePosition;
@@ -405,6 +405,12 @@ namespace OpenRA.Platforms.Default
SDL.SDL_ShowCursor((int)SDL.SDL_bool.SDL_FALSE);
}
public void SetWindowTitle(string title)
{
VerifyThreadAffinity();
SDL.SDL_SetWindowTitle(window, title);
}
public void SetRelativeMouseMode(bool mode)
{
if (mode)