Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create ability to add presets #5

Open
MondayHopscotch opened this issue Dec 22, 2020 · 0 comments
Open

Create ability to add presets #5

MondayHopscotch opened this issue Dec 22, 2020 · 0 comments
Labels

Comments

@MondayHopscotch
Copy link
Member

It would be nice to be able to have effect presets in either of two forms:

  1. A way to set default properties for a given effect. Ex: <preset wave height=30 speed=1.2>
    • After reading this in, all future uses of a plain <wave> will use height=30 and speed=1.2
  2. A way to create a tag that applies a set of given effects when used. Ex: <preset dave_scared><shake size=4><smaller></preset>
    • After reading this in, user can use the <dave_scared> tag and anything within the tag will have the <shake size=4> and </smaller> tags applied

Notes: This can be done fairly easily by adding code for a CompoundEffect that just applies multiple effects in its own apply() function. A dev can then just register a new effect with a name for the full preset.
Doing it this way means code would have to be written for each new effect preset, whereas doing the parsing method allows non-coding individuals to create effects without assistance from development (other than, of course, the devs having to initially pass a 'preset' file into LucidText)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant