mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Flash worldserver on taskbar on thread start (#26886)
* Flush worldserver on taskbar on thread start * update * update * fix codestyle * Update worldserver.conf.dist * Update src/server/worldserver/worldserver.conf.dist Co-authored-by: NoName <322016+Faq@users.noreply.github.com> Co-authored-by: NoName <322016+Faq@users.noreply.github.com>
This commit is contained in:
@@ -127,6 +127,18 @@ void CliThread()
|
||||
if (sConfigMgr->GetBoolDefault("BeepAtStart", true))
|
||||
printf("\a"); // \a = Alert
|
||||
|
||||
#if TRINITY_PLATFORM == TRINITY_PLATFORM_WINDOWS
|
||||
if (sConfigMgr->GetBoolDefault("FlashAtStart", true))
|
||||
{
|
||||
FLASHWINFO fInfo;
|
||||
fInfo.cbSize = sizeof(FLASHWINFO);
|
||||
fInfo.dwFlags = FLASHW_TRAY | FLASHW_TIMERNOFG;
|
||||
fInfo.hwnd = GetConsoleWindow();
|
||||
fInfo.uCount = 0;
|
||||
fInfo.dwTimeout = 0;
|
||||
FlashWindowEx(&fInfo);
|
||||
}
|
||||
#endif
|
||||
///- As long as the World is running (no World::m_stopEvent), get the command line and handle it
|
||||
while (!World::IsStopped())
|
||||
{
|
||||
|
||||
@@ -1207,6 +1207,14 @@ Event.Announce = 0
|
||||
|
||||
BeepAtStart = 1
|
||||
|
||||
#
|
||||
# FlashAtStart
|
||||
# Description: Flashes in taskbar when the world server finished starting. (Works on Windows only)
|
||||
# Default: 1 - (Enabled)
|
||||
# 0 - (Disabled)
|
||||
|
||||
FlashAtStart = 1
|
||||
|
||||
#
|
||||
# Motd
|
||||
# Description: Message of the Day, displayed at login. Use '@' for a newline.
|
||||
|
||||
Reference in New Issue
Block a user