#How do I change the UI visual for a keyframe?

1 messages · Page 1 of 1 (latest)

woeful marlin
#

How do I change the UI visual for a keyframe?
Like how in a bedrock anim if you make a smooth keyframe it ends up looking round while step keyframes are like an arrow thingy

finite tendon
#

you can find out what id/class they have, then change it via css

woeful marlin
#

Like what would the .css file look like

finite tendon
#

there should be a developer mode option under about, a window will then be pop on right side of your app.

#

then on the left of elements, there should be two button, one is mouse/arrow cursor in a square, another is phone and a bigger square.

click the mouse in square button.

then when you click anywhere in blockbench, let's say that keyframe icon, you will then see that selected elements in html

woeful marlin
#

Thank you so much 🙏

woeful marlin
woeful marlin
finite tendon
#

what kinda data are you trying to access?

woeful marlin
finite tendon
#
.keyframe.selected > i.icon-keyframe_bezier::before {
  content: '\1f408';
}
.keyframe:not(.selected) > i.icon-keyframe_bezier::before {
  content: '\1f41f';
}
#

try this, it should change selected bezier frame to custom character, else another custom

woeful marlin
#

I don't just want to change the keyframe I wanna change it when the keyframe has the specific easing type I have in mind

finite tendon
#

that's for bezier.

doing selected/not selected just so to keep the behavior of highlighting the selected frame.

woeful marlin
#

Issue is keyframes with different GeckoLib easings don't have different classes for the icons, they all use icon-keyframe class

#

So there is no way for me to change them the same way I would a bezier keyframe

#

There is no distinction between the keyframes as far as CSS is aware

finite tendon
#

never use geckolib before so I wouldn't know, but if you are sure there's non then, oh well then css really isn't enough for your need