Advertisement
snake5

sgs-ui - basic hover animation

Sep 24th, 2014
395
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. cont = UI_CreateStatic( FRAME.root )[]{ caption = "TestRoot" };
  2. UI_CreateHoverAnimator( cont,
  3.     { x = 100, y = 100, width = 100, height = 100, backgroundColor = UIColor(0.3,0.4,0.5) }, // state without hover
  4.     { x = 50, y = 50, width = 200, height = 200, backgroundColor = UIColor(0.5,0.4,0.3) }, // state with hover (keys inside both should match)
  5.     0.4 ); // transition time
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement