-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: allow for before & after actions configuration (#79)
* bookmark: @kkafar/before-and-after-actions begin * feat: allow for before- and after-action configruation * fix: implement missing getters * chore: handle case when before- || after-actions are not specified * chore: update config * chore: add better action validation * fix: unresponsive buttons * fix: layout calculations * fix: defer call to emitAction while calculating animations * docs: update * chore: update docs * chore: remove souts * refact: remove commented code * refact: mage get{Before/After}Action return Optional
- Loading branch information
Showing
12 changed files
with
177 additions
and
32 deletions.
There are no files selected for viewing
19 changes: 18 additions & 1 deletion
19
configurations/demo-config-1/locations/location-1/objects/key.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,21 @@ | ||
{ | ||
"tag": "key", | ||
"onLeftClick": {"tag": "dialogue-action", "type": "dialogue", "statements": ["A key.,A, keyA, key.A, key.A, key.A, key.A, key.A, key.A key."], "assetPath": "assets/key.png"} | ||
"onLeftClick": { | ||
"tag": "dialogue-action", | ||
"type": "dialogue", | ||
"statements": ["A key.,A, keyA, key.A, key.A, key.A, key.A, key.A, key.A key."], | ||
"assetPath": "assets/key.png", | ||
"before": { | ||
"tag": "message", | ||
"type": "show-description", | ||
"description": "Hurra, you are about to pickup a key!", | ||
"assetPath": "assets/key.png" | ||
}, | ||
"after": { | ||
"tag": "followup-message", | ||
"type": "show-description", | ||
"description": "Hurra, the key was picked up!", | ||
"assetPath": "assets/key.png" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters