Skip to content

Commit

Permalink
#226 improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesholdenmusic committed Jan 26, 2025
1 parent 0e6d4cb commit acfb390
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/display_pages.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ function set_display_mode(mode,t){
maplist.push(-0.5);
mapwrap.push(1);
maplistopv.push(-1);
mapcolours.push(32);
mapcolours.push(256);
mapcolours.push(32);
mapcolours.push(218);
mapcolours.push(36);
mapcolours.push(0);
for(var pad=1;pad<automap.c_cols*automap.c_rows;pad++){
maplist.push(-1);
mapwrap.push(1);
Expand Down
5 changes: 5 additions & 0 deletions code/drawing_helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -1186,6 +1186,11 @@ function draw_menu_hint(){
if(blocktypes.contains(usermouse.hover[1]+"::colour")){
col = blocktypes.get(usermouse.hover[1]+"::colour");
col = [col[0]*1.2,col[1]*1.2,col[2]*1.2];
if(automap.mapped_c == -0.5){
mapcolours = [col[0], col[1], col[2]];
for(var i=0;i<(automap.c_cols*automap.c_rows - 1);i++)mapcolours.push(-1);
note_poly.message("setvalue", automap.available_c,"mapcolour",mapcolours);
}
}
var cod = [col[0]*bg_dark_ratio,col[1]*bg_dark_ratio,col[2]*bg_dark_ratio];
var topspace=(menu.mode == 3)+1.1*(loading.progress!=0);
Expand Down

0 comments on commit acfb390

Please sign in to comment.