Actions System + UI (#2710)

Co-authored-by: Vera Aguilera Puerto <6766154+Zumorica@users.noreply.github.com>
This commit is contained in:
chairbender
2020-12-13 14:28:20 -08:00
committed by GitHub
parent fd0df9a00a
commit 7a3c281f60
150 changed files with 7283 additions and 854 deletions

View File

@@ -0,0 +1,91 @@
- type: action
actionType: HumanScream
icon: Interface/Actions/scream.png
name: "Scream"
filters:
- human
behaviorType: Instant
behavior: !type:ScreamAction
cooldown: 10
male:
- /Audio/Voice/Human/malescream_1.ogg
- /Audio/Voice/Human/malescream_2.ogg
- /Audio/Voice/Human/malescream_3.ogg
- /Audio/Voice/Human/malescream_4.ogg
- /Audio/Voice/Human/malescream_5.ogg
- /Audio/Voice/Human/malescream_6.ogg
female:
- /Audio/Voice/Human/femalescream_1.ogg
- /Audio/Voice/Human/femalescream_2.ogg
- /Audio/Voice/Human/femalescream_3.ogg
- /Audio/Voice/Human/femalescream_4.ogg
- /Audio/Voice/Human/femalescream_5.ogg
wilhelm: /Audio/Voice/Human/wilhelm_scream.ogg
- type: action
actionType: DebugInstant
icon: Interface/Alerts/Human/human1.png
name: "[color=red]Debug Instant[/color]"
description: "This is a [color=red]debug message[/color]."
requires: "Requires blah blah"
filters:
- debug
behaviorType: Instant
behavior: !type:DebugInstant
message: Instant action was used!
- type: action
actionType: DebugToggle
icon: Interface/Alerts/Human/human3.png
name: "[color=red]Debug Toggle[/color]"
description: "This is a [color=red]debug message[/color]."
requires: "Requires blah blah"
filters:
- debug
behaviorType: Toggle
behavior: !type:DebugToggle
messageOn: Toggled on!
messageOff: Toggled off!
- type: action
actionType: DebugTargetPoint
icon: Interface/Alerts/Human/human4.png
name: "[color=red]Debug Target Position[/color]"
description: "This is a [color=red]debug message[/color]."
filters:
- debug
behaviorType: TargetPoint
behavior: !type:DebugTargetPoint { }
- type: action
actionType: DebugTargetPointRepeat
icon: Interface/Alerts/Human/human2.png
name: "[color=red]Repeating Debug Target Position[/color]"
description: "This is a [color=red]debug message[/color]."
filters:
- debug
behaviorType: TargetPoint
repeat: true
behavior: !type:DebugTargetPoint { }
- type: action
actionType: DebugTargetEntity
icon: Interface/Alerts/Human/human6.png
name: "[color=red]Debug Target Entity[/color]"
description: "This is a [color=red]debug message[/color]."
filters:
- debug
behaviorType: TargetEntity
behavior: !type:DebugTargetEntity { }
- type: action
actionType: DebugTargetEntityRepeat
icon: Interface/Alerts/Human/human5.png
name: "[color=red]Repeating Debug Target Entity[/color]"
description: "This is a [color=red]debug message[/color]."
filters:
- debug
behaviorType: TargetEntity
repeat: true
behavior: !type:DebugTargetEntity { }

View File

@@ -0,0 +1,121 @@
- type: itemAction
actionType: ToggleInternals
icon: Interface/Actions/internal0.png
iconOn: Interface/Actions/internal1.png
name: "Toggle Internals"
description: "Breathe from the equipped gas tank."
requires: "Requires equipped breath mask and gas tank"
filters:
- common
- atmos
keywords:
- gas
- tank
- breath
behaviorType: Toggle
behavior: !type:ToggleInternalsAction { }
- type: itemAction
actionType: ToggleLight
icon: Objects/Tools/flashlight.rsi/lantern_off.png
iconOn: Objects/Tools/flashlight.rsi/lantern_on.png
name: "Toggle Light"
description: "Turn the light on."
filters:
- tools
keywords:
- lantern
- lamp
behaviorType: Toggle
behavior: !type:ToggleLightAction { }
- type: itemAction
actionType: DebugInstant
icon: Interface/Alerts/Human/human1.png
iconStyle: BigAction
name: "[color=red]Debug Item Instant[/color]"
description: "This is a [color=red]debug message[/color]."
requires: "Requires blah blah"
filters:
- debug
behaviorType: Instant
behavior: !type:DebugInstant
message: Instant action was used!
cooldown: 10
- type: itemAction
actionType: DebugToggle
iconStyle: BigItem
icon: Interface/Alerts/Human/human3.png
name: "[color=red]Debug Item Toggle[/color]"
description: "This is a [color=red]debug message[/color]."
requires: "Requires blah blah"
filters:
- debug
behaviorType: Toggle
behavior: !type:DebugToggle
messageOn: Toggled on!
messageOff: Toggled off!
- type: itemAction
actionType: DebugTargetPoint
iconStyle: NoItem
icon: Interface/Alerts/Human/human4.png
name: "[color=red]Debug Item Target Position[/color]"
description: "This is a [color=red]debug message[/color]."
filters:
- debug
behaviorType: TargetPoint
behavior: !type:DebugTargetPoint { }
- type: itemAction
actionType: DebugTargetPointRepeat
iconStyle: BigAction
icon: Interface/Alerts/Human/human2.png
name: "[color=red]Repeating Debug Item Target Position[/color]"
description: "This is a [color=red]debug message[/color]."
filters:
- debug
behaviorType: TargetPoint
repeat: true
behavior: !type:DebugTargetPoint { }
- type: itemAction
actionType: DebugTargetEntity
iconStyle: BigAction
icon: Interface/Alerts/Human/human6.png
name: "[color=red]Debug Item Target Entity[/color]"
description: "This is a [color=red]debug message[/color]."
filters:
- debug
behaviorType: TargetEntity
behavior: !type:DebugTargetEntity { }
- type: itemAction
actionType: DebugTargetEntityRepeat
icon: Interface/Alerts/Human/human5.png
name: "[color=red]Repeating Debug Item Target Entity[/color]"
description: "This is a [color=red]debug message[/color]."
filters:
- debug
behaviorType: TargetEntity
repeat: true
behavior: !type:DebugTargetEntity { }
- type: entity
name: item action example
parent: BaseItem
id: ItemActionExample
description: for testing item actions
components:
- type: Sprite
sprite: Objects/Fun/bikehorn.rsi
state: icon
- type: ItemActions
actions:
- actionType: DebugInstant
- actionType: DebugToggle
- actionType: DebugTargetPoint
- actionType: DebugTargetPointRepeat
- actionType: DebugTargetEntity
- actionType: DebugTargetEntityRepeat