Skip to content

Conversation

@Crystalwarrior
Copy link
Contributor

@Crystalwarrior Crystalwarrior commented Mar 25, 2022

Fix effect offsets only applying after the effect already plays
Massive overhaul with new properties and ini style:

# index:filename, index: part is optional
[1:realization]
# Sound to play for this effect
sound = sfx-realization
# Whether or not to delete the image once it's done playing. Ignored if loop=true
cull = true
# Which layer it's going to be on. Possible options:
# under - under the character
# character - over the character
# over - over everything in IC
# chat - over the chat box and other UI.
layer = chat
# Should we loop this effect?
loop = false
# Maximum duration for this effect in miliseconds. Put at 0 for no max letting the full animation to play out.
# Useful for single-image effects, such as realization flash.
max_duration = 60
# Should we respect the character's flip tick box and flip with them?
respect_flip = false
# Should we respect the character's offset and offset with them?
respect_offset = false
# Should we use smooth (bilinear) or pixel (nearest neighbor) scaling algorithm?
scaling = smooth
# Once we play the effect, should it remain in the effect dropdown still?
sticky = false
# Should we stretch the effect across the viewport?
stretch = true

fixes #636
fixes #704

Add "_layer" property which can be "behind", "character" or default "chat". This deprecates the "under_chatbox" property
…etting being enabled but just for that 1 effect
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

…desk

add new "over" layer which is over everything in the viewport but under the chat box
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

Add "loop" effect property so you set up in the ini if the effect should loop rather than it using the file's loop settings
Add "max_duration" effect property
Add "cull" effect property which decides whether to clear the effect or not when it's done (if loop is false)
@Crystalwarrior Crystalwarrior changed the title Add effect layering under the character and flippable effects Add effect layering under the character, flippable effects and more Mar 27, 2022
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

@Crystalwarrior
Copy link
Contributor Author

Just fixing the whole ass effects system at this point

…able.

However, since order may or may not matter, you can optionally include index:name and it orders it properly.
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

…'t play effect sound and prefer the sfx we chose instead.
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

stonedDiscord
stonedDiscord previously approved these changes May 21, 2022
Copy link
Member

@stonedDiscord stonedDiscord left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if you do what the bot complained about i'll merge it

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

@Crystalwarrior Crystalwarrior added this to the 2.10 milestone Jul 7, 2022
Copy link
Member

@stonedDiscord stonedDiscord left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it compiles

@Crystalwarrior Crystalwarrior merged commit c8914c9 into master Jul 18, 2022
@in1tiate in1tiate deleted the effect-layers branch July 18, 2022 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Effect offsets overflow viewport and are not culled by it Flippable Effects

4 participants