Hey there, It's again me with 'I want to complicate life for myself' question =)
So currently I'm passing a transform function to change some states of buttons, but I'd like to add some life to it, so I was wondering if there is possibility to add like in regular ATL block something like
Into this:
I know I can calculate it manually, but I'm wondering if there is some out-of-the-box solution and how can I get current state of the element (eg. hovered or selected)? Source code says there's a
So currently I'm passing a transform function to change some states of buttons, but I'd like to add some life to it, so I was wondering if there is possibility to add like in regular ATL block something like
idle
or hover
states with easing animation? I mean, how can I do this:
Code:
transform some_button():
on idle:
easein 0.9 xpos 0
on hover:
easein 0.5 xpos -60
Code:
transform some_button():
function test_fn()
init python:
def test_fn(tf,st,at):
# how to modify tf object?
return 0
arguments
field in Transform
class, that should have those states, but for me it's constantly empty.