Adapt D2k to low power/power down refactor

This commit is contained in:
reaperrr
2017-09-11 23:13:16 +02:00
committed by Pavel Penev
parent 7537daf74e
commit e0e1f56af5
3 changed files with 30 additions and 19 deletions

View File

@@ -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