Unify menu presentation and fix UI regressions
This commit is contained in:
parent
3734d4a168
commit
b18d9392d8
35 changed files with 588 additions and 361 deletions
12
ui/ui_motion.gd
Normal file
12
ui/ui_motion.gd
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
class_name UIMotion
|
||||
extends RefCounted
|
||||
|
||||
const BUBBLE_VERTICAL_SPEED: float = 420.0
|
||||
const BUBBLE_TRANSITION_OVERLAP_DELAY: float = 0.05
|
||||
const UTILITY_ENTER_DURATION: float = 0.19
|
||||
const UTILITY_EXIT_DURATION: float = 0.15
|
||||
const UTILITY_ENTER_SCALE: float = 0.97
|
||||
|
||||
|
||||
static func bubble_duration(distance: float) -> float:
|
||||
return maxf(absf(distance) / BUBBLE_VERTICAL_SPEED, 0.08)
|
||||
Loading…
Add table
Add a link
Reference in a new issue