Adapt D2k to low power/power down refactor
This commit is contained in:
@@ -470,9 +470,29 @@
|
||||
Categories: Defense
|
||||
-CommandBarBlacklist:
|
||||
|
||||
^DisabledOverlay:
|
||||
^DisableOnLowPower:
|
||||
WithColoredOverlay@IDISABLE:
|
||||
RequiresCondition: disabled
|
||||
Palette: disabled
|
||||
GrantConditionOnDisabled@IDISABLE:
|
||||
GrantConditionOnPowerState@LOWPOWER:
|
||||
Condition: lowpower
|
||||
ValidPowerStates: Low, Critical
|
||||
GrantCondition@IDISABLE:
|
||||
RequiresCondition: lowpower
|
||||
Condition: disabled
|
||||
|
||||
^DisableOnLowPowerOrPowerDown:
|
||||
Inherits: ^DisableOnLowPower
|
||||
GrantCondition@IDISABLE:
|
||||
RequiresCondition: lowpower || powerdown
|
||||
Condition: disabled
|
||||
CanPowerDown:
|
||||
PowerupSound: EnablePower
|
||||
PowerdownSound: DisablePower
|
||||
PowerdownCondition: powerdown
|
||||
WithDecoration@POWERDOWN:
|
||||
Image: poweroff
|
||||
Sequence: offline
|
||||
Palette: chrome
|
||||
RequiresCondition: powerdown
|
||||
ReferencePoint: Center
|
||||
|
||||
Reference in New Issue
Block a user