projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
world regions
[carveJwlIkooP6JGAAIwe30JlM.git]
/
world_routes_ui.c
diff --git
a/world_routes_ui.c
b/world_routes_ui.c
index 7becb73dec665e210f7f5ffb89df1e9c5a5eacb4..9ccad800ec2a7f3ceb5fe7804b110366607d0650 100644
(file)
--- a/
world_routes_ui.c
+++ b/
world_routes_ui.c
@@
-13,6
+13,9
@@
static u32 v4_rgba( v4f colour ){
static void ent_route_imgui( world_instance *world, ent_route *route,
ui_point inout_cursor ){
static void ent_route_imgui( world_instance *world, ent_route *route,
ui_point inout_cursor ){
+ if( route->flags & k_ent_route_flag_out_of_zone )
+ return;
+
u32 last_version=0;
f64 last_time = 0.0;
u32 last_version=0;
f64 last_time = 0.0;
@@
-59,7
+62,7
@@
static void ent_route_imgui( world_instance *world, ent_route *route,
for( u32 i=0; i<valid_sections; i ++ ){
struct time_block *block = &blocks[ i ];
for( u32 i=0; i<valid_sections; i ++ ){
struct time_block *block = &blocks[ i ];
- ui_px w = block->length *
2
.0f;
+ ui_px w = block->length *
6
.0f;
ui_rect rect = { x, inout_cursor[1], w, h };
ui_fill( rect, colour );
ui_rect rect = { x, inout_cursor[1], w, h };
ui_fill( rect, colour );