mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-30 12:23:39 +01:00
Separate progress and expiry animations
This commit is contained in:
parent
f434946137
commit
e96089f8b2
6 changed files with 122 additions and 39 deletions
|
|
@ -120,6 +120,8 @@ internal class ImGuiWidget : IDataWindowWidget
|
|||
|
||||
ImGui.Checkbox("Interactable", ref this.notificationTemplate.Interactable);
|
||||
|
||||
ImGui.Checkbox("Show Indeterminate If No Expiry", ref this.notificationTemplate.ShowIndeterminateIfNoExpiry);
|
||||
|
||||
ImGui.Checkbox("User Dismissable", ref this.notificationTemplate.UserDismissable);
|
||||
|
||||
ImGui.Checkbox(
|
||||
|
|
@ -147,6 +149,7 @@ internal class ImGuiWidget : IDataWindowWidget
|
|||
Content = text,
|
||||
Title = title,
|
||||
Type = type,
|
||||
ShowIndeterminateIfNoExpiry = this.notificationTemplate.ShowIndeterminateIfNoExpiry,
|
||||
Interactable = this.notificationTemplate.Interactable,
|
||||
UserDismissable = this.notificationTemplate.UserDismissable,
|
||||
Expiry = duration == TimeSpan.MaxValue ? DateTime.MaxValue : DateTime.Now + duration,
|
||||
|
|
@ -347,6 +350,7 @@ internal class ImGuiWidget : IDataWindowWidget
|
|||
public bool ManualType;
|
||||
public int TypeInt;
|
||||
public int DurationInt;
|
||||
public bool ShowIndeterminateIfNoExpiry;
|
||||
public bool Interactable;
|
||||
public bool UserDismissable;
|
||||
public bool ActionBar;
|
||||
|
|
@ -364,6 +368,7 @@ internal class ImGuiWidget : IDataWindowWidget
|
|||
this.ManualType = false;
|
||||
this.TypeInt = (int)NotificationType.None;
|
||||
this.DurationInt = 2;
|
||||
this.ShowIndeterminateIfNoExpiry = true;
|
||||
this.Interactable = true;
|
||||
this.UserDismissable = true;
|
||||
this.ActionBar = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue