projects
/
fishladder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lock levels packs if first is not unlocked
[fishladder.git]
/
fishladder.c
diff --git
a/fishladder.c
b/fishladder.c
index deea9791ea0762bab88c7d97461ab6504eeea0ce..412182cd21619e4821865ac1733290d1b3f5be71 100644
(file)
--- a/
fishladder.c
+++ b/
fishladder.c
@@
-2500,14
+2500,16
@@
void vg_ui(void)
for( int i = 0; i < 3; i ++ )
{
for( int i = 0; i < 3; i ++ )
{
- if( i == pack_selection )
+ int pack_is_unlocked = pack_infos[i].levels[0].unlocked;
+
+ if( i == pack_selection || !pack_is_unlocked )
gui_override_colours( &flcol_list_locked );
gui_override_colours( &flcol_list_locked );
-
- if( gui_button( 2000 + i ) == k_button_click )
+
+ if( gui_button( 2000 + i ) == k_button_click
&& pack_is_unlocked
)
pack_selection = i;
ui_global_ctx.cursor[1] += 2;
pack_selection = i;
ui_global_ctx.cursor[1] += 2;
- gui_text( pack_i
nfos[i].name
, 4, 0 );
+ gui_text( pack_i
s_unlocked? pack_infos[i].name: ""
, 4, 0 );
gui_end_right();
gui_reset_colours();
gui_end_right();
gui_reset_colours();