mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-15 21:24:16 +01:00
add DutyFinderTaskbarFlash
This commit is contained in:
parent
aa58d9258b
commit
b3ab3a5356
2 changed files with 12 additions and 8 deletions
|
|
@ -27,6 +27,8 @@ namespace Dalamud
|
|||
|
||||
public Dictionary<int, PreferredRole> PreferredRoleReminders { get; set; }
|
||||
|
||||
public bool DutyFinderTaskbarFlash { get; set; } = true;
|
||||
|
||||
public string LanguageOverride { get; set; }
|
||||
|
||||
public string LastVersion { get; set; }
|
||||
|
|
|
|||
|
|
@ -67,14 +67,16 @@ namespace Dalamud.Game.Network {
|
|||
contentFinderCondition.Image = 112324;
|
||||
}
|
||||
|
||||
if (!NativeFunctions.ApplicationIsActivated()) {
|
||||
var flashInfo = new NativeFunctions.FLASHWINFO();
|
||||
flashInfo.cbSize = (uint)Marshal.SizeOf<NativeFunctions.FLASHWINFO>();
|
||||
flashInfo.uCount = uint.MaxValue;
|
||||
flashInfo.dwTimeout = 0;
|
||||
flashInfo.dwFlags = NativeFunctions.FlashWindow.FLASHW_ALL |
|
||||
NativeFunctions.FlashWindow.FLASHW_TIMERNOFG;
|
||||
flashInfo.hwnd = Process.GetCurrentProcess().MainWindowHandle;
|
||||
if (this.dalamud.Configuration.DutyFinderTaskbarFlash && !NativeFunctions.ApplicationIsActivated()) {
|
||||
var flashInfo = new NativeFunctions.FLASHWINFO
|
||||
{
|
||||
cbSize = (uint)Marshal.SizeOf<NativeFunctions.FLASHWINFO>(),
|
||||
uCount = uint.MaxValue,
|
||||
dwTimeout = 0,
|
||||
dwFlags = NativeFunctions.FlashWindow.FLASHW_ALL |
|
||||
NativeFunctions.FlashWindow.FLASHW_TIMERNOFG,
|
||||
hwnd = Process.GetCurrentProcess().MainWindowHandle
|
||||
};
|
||||
NativeFunctions.FlashWindowEx(ref flashInfo);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue