mirror of
https://github.com/Acamaeda/The-Modding-Tree.git
synced 2025-05-12 13:01:05 +00:00
More achievement customization
This commit is contained in:
parent
d6259fc67d
commit
66dc5e4671
5 changed files with 11 additions and 4 deletions
docs
|
@ -39,8 +39,12 @@ Individual achievement can have these features:
|
|||
|
||||
- onComplete() - **optional**. this function will be called when the achievement is completed.
|
||||
|
||||
- image: **optional**, puts the image from the given URL (relative or absolute) in the achievement
|
||||
|
||||
- style: **optional**. Applies CSS to this achievement, in the form of an object where the keys are CSS attributes, and the values are the values for those attributes (both as strings).
|
||||
|
||||
- textStyle: **optional**. Applies CSS to the text, in the form of an object where the keys are CSS attributes, and the values are the values for those attributes (both as strings).
|
||||
|
||||
- layer: **assigned automagically**. It's the same value as the name of this layer, so you can do `player[this.layer].points` or similar.
|
||||
|
||||
- id: **assigned automagically**. It's the "key" which the achievement was stored under, for convenient access. The achievement in the example's id is 11.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue