Commit Graph
11 Commits
Author SHA1 Message Date
omicron f181c0022c Apply stylua to the entire codebase 2025-08-24 12:28:06 +02:00
omicron c56b847710 Add IconIndicator
Similar functionality to a SquareIndicator but uses an icon instead of a
solid color.
2025-08-24 12:28:06 +02:00
omicron e20887d46b Implement fade and flash behavior for square indicators 2023-07-28 14:15:50 +02:00
omicron 1f95899781 Make Trigger responsible for default data
Trigger now has a new method Trigger:SetData and two new fields
Trigger.defaultData and Trigger.data

Whenever SetData is used it ensures that all the keys and values from
defaultData are present in the new data.

The data argument from Trigger:SetState has been removed and it will now
always use the Trigger.Data field for notifying indicators
2023-04-14 15:37:57 +02:00
omicron 3a1cc35a1e Add Trigger.CreateFromConfig function to help initialize new triggers 2023-04-10 15:51:20 +02:00
omicron 0436f8a0e0 Add MultiTrigger to combine multiple triggers into one
MultiTrigger will pass on the data from the highest priority child
trigger.

Fix MultiTrigger

MultiTrigger didn't properly inherit from Trigger and reimplemented some
methods. This happened because it started out as a copy of Trigger
2023-04-10 15:51:20 +02:00
omicron 22dee8b536 Trigger:SetState now also takes doUpdate boolean
If the state the state does change and the trigger is active and
doUpdate is true, then the indicator is updated with the given data.
2023-04-10 15:51:20 +02:00
omicron 21a651b25c Make AuraTrigger supply stack information to the indicators 2023-04-07 10:15:51 +02:00
omicron d66989297c Add a new trigger type statustrigger
StatusTrigger will trigger if a status activates (or reaches a certain
activation # of auras). This is an abstraction provided by AuraList
which keeps track of which auras belong to which statuses.

Added type annotations to all touched files
2023-04-07 10:15:51 +02:00
omicron e55f139fca Activate indicators when they are set while the trigger is active
This fixes an issue where inverted triggers would not immediately activate the
indicator when they are created
2023-04-07 10:15:51 +02:00
omicron 8c4cc405aa Move ivert logic and trigger logic into Trigger
The base Trigger class is now responsible for inverting the trigger
state and also for signaling trigger activation to the target/indicator.

In addition the following non-function changes also occured:
 - The triggers moved into their own directory
 - The trigger code has been annotated to help lua-language-server
   deduce type information
 - AuraTrigger was moved into its own file

All these changes should make future development of other triggers easier
2023-04-04 06:40:29 +02:00