aboutsummaryrefslogtreecommitdiff
path: root/lib/oui/oui.odin
diff options
context:
space:
mode:
authorSan Jacobs2023-10-14 17:36:08 +0200
committerSan Jacobs2023-10-14 17:36:08 +0200
commit68cb0ea6b77d59618b9e92065e3e1b3f8040f588 (patch)
treecdf869a256e256bc8f496c00898adb9ae6d35e47 /lib/oui/oui.odin
parenta437a92bb39894beb91d6c4308d04852bc0d5eac (diff)
downloadsatscalc-68cb0ea6b77d59618b9e92065e3e1b3f8040f588.tar.gz
satscalc-68cb0ea6b77d59618b9e92065e3e1b3f8040f588.tar.bz2
satscalc-68cb0ea6b77d59618b9e92065e3e1b3f8040f588.zip
Increased animation speed in oui
Diffstat (limited to 'lib/oui/oui.odin')
-rw-r--r--lib/oui/oui.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/oui/oui.odin b/lib/oui/oui.odin
index 2933b8c..a1fbbf8 100644
--- a/lib/oui/oui.odin
+++ b/lib/oui/oui.odin
@@ -395,7 +395,7 @@ end_layout :: proc(ctx: ^Context) #no_bounds_check {
ctx.stage = .Post_Layout
// update hot/active for animation
- speed := f32(0.05)
+ speed := f32(0.50)
for i in 0..<ctx.items_index {
p := &ctx.items[i]
p.anim.hot = clamp(p.anim.hot + (p.id == ctx.hot_item ? speed : -speed), 0, 1)