From: Brendan Hansen Date: Sat, 7 Aug 2021 13:46:07 +0000 (-0500) Subject: cleanup X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=cf1a4d07c5a7ed4e32606f585272850317880ca1;p=onyx.git cleanup --- diff --git a/bin/onyx b/bin/onyx index 9181d948..27fc96e3 100755 Binary files a/bin/onyx and b/bin/onyx differ diff --git a/include/onyxastnodes.h b/include/onyxastnodes.h index 4d7c137d..cda6fcf3 100644 --- a/include/onyxastnodes.h +++ b/include/onyxastnodes.h @@ -939,11 +939,10 @@ struct AstPolySolution { }; struct AstSolidifiedFunction { - b32 header_complete: 1; - b32 body_complete: 1; - AstFunction* func; Scope* poly_scope; + + b32 header_complete: 1; }; struct AstPolyProc { diff --git a/modules/ui/ui.onyx b/modules/ui/ui.onyx index 1cdb99f8..92e06f09 100644 --- a/modules/ui/ui.onyx +++ b/modules/ui/ui.onyx @@ -165,7 +165,14 @@ Animation_State :: struct { click_time := 0.0f; } +has_active_animation :: () -> bool { + for ^anim: animation_states.entries { + if anim.value.hover_time != 0.0f || anim.value.hover_time != 1.0f do return true; + if anim.value.click_time != 0.0f || anim.value.click_time != 1.0f do return true; + } + return false; +} // Utilities diff --git a/src/onyxutils.c b/src/onyxutils.c index 35948245..beedd9d9 100644 --- a/src/onyxutils.c +++ b/src/onyxutils.c @@ -373,7 +373,6 @@ static AstSolidifiedFunction generate_solidified_function( AstSolidifiedFunction solidified_func; solidified_func.header_complete = 0; - solidified_func.body_complete = 0; // NOTE: Use the position of token if one was provided, otherwise just use NULL. OnyxFilePos poly_scope_pos = { 0 };