swapped colors for locked doors and normal doors
This commit is contained in:
+2
-2
@@ -14,8 +14,8 @@ const GRID: (u8, u8, u8, u8) = (130, 130, 130, 255);
|
|||||||
const ROOM: (u8, u8, u8, u8) = (70, 120, 160, 255);
|
const ROOM: (u8, u8, u8, u8) = (70, 120, 160, 255);
|
||||||
const CORRIDOR: (u8, u8, u8, u8) = (210, 190, 120, 255);
|
const CORRIDOR: (u8, u8, u8, u8) = (210, 190, 120, 255);
|
||||||
const BLACK: (u8, u8, u8, u8) = (0, 0, 0, 255);
|
const BLACK: (u8, u8, u8, u8) = (0, 0, 0, 255);
|
||||||
const OPEN_DOOR: (u8, u8, u8, u8) = (220, 70, 70, 255);
|
const OPEN_DOOR: (u8, u8, u8, u8) = (80, 200, 120, 255);
|
||||||
const LOCKED_DOOR: (u8, u8, u8, u8) = (80, 200, 120, 255);
|
const LOCKED_DOOR: (u8, u8, u8, u8) = (220, 70, 70, 255);
|
||||||
const ARCHWAY: (u8, u8, u8, u8) = (70, 130, 220, 255);
|
const ARCHWAY: (u8, u8, u8, u8) = (70, 130, 220, 255);
|
||||||
const WHITE: (u8, u8, u8, u8) = (255, 255, 255, 255);
|
const WHITE: (u8, u8, u8, u8) = (255, 255, 255, 255);
|
||||||
|
|
||||||
|
|||||||
+4
-4
@@ -140,8 +140,8 @@ impl eframe::App for DungeonApp {
|
|||||||
draw_legend_entry(ui, Color32::from_rgb(70, 120, 160), "Rooms");
|
draw_legend_entry(ui, Color32::from_rgb(70, 120, 160), "Rooms");
|
||||||
draw_legend_entry(ui, Color32::from_rgb(210, 190, 120), "Corridors");
|
draw_legend_entry(ui, Color32::from_rgb(210, 190, 120), "Corridors");
|
||||||
draw_legend_entry(ui, Color32::BLACK, "Walls");
|
draw_legend_entry(ui, Color32::BLACK, "Walls");
|
||||||
draw_legend_entry(ui, Color32::from_rgb(220, 70, 70), "Doors");
|
draw_legend_entry(ui, Color32::from_rgb(80, 200, 120), "Doors");
|
||||||
draw_legend_entry(ui, Color32::from_rgb(80, 200, 120), "Locked Doors");
|
draw_legend_entry(ui, Color32::from_rgb(220, 70, 70), "Locked Doors");
|
||||||
draw_legend_entry(ui, Color32::from_rgb(70, 130, 220), "Archways");
|
draw_legend_entry(ui, Color32::from_rgb(70, 130, 220), "Archways");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -618,9 +618,9 @@ fn draw_layout(
|
|||||||
} else if door.archway {
|
} else if door.archway {
|
||||||
Color32::from_rgb(70, 130, 220)
|
Color32::from_rgb(70, 130, 220)
|
||||||
} else if door.locked {
|
} else if door.locked {
|
||||||
Color32::from_rgb(80, 200, 120)
|
|
||||||
} else {
|
|
||||||
Color32::from_rgb(220, 70, 70)
|
Color32::from_rgb(220, 70, 70)
|
||||||
|
} else {
|
||||||
|
Color32::from_rgb(80, 200, 120)
|
||||||
};
|
};
|
||||||
let style = if colorblind_mode {
|
let style = if colorblind_mode {
|
||||||
if door.archway {
|
if door.archway {
|
||||||
|
|||||||
Reference in New Issue
Block a user