Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DOOM committed Jun 30, 2023
1 parent 9dd32dc commit 8ed8d6d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions code/controllers/subsystem/minimap.dm
Original file line number Diff line number Diff line change
Expand Up @@ -516,13 +516,11 @@ SUBSYSTEM_DEF(minimaps)

if ("updateCanvas")
if(alert(user, "Are you sure you want to update the canvas changes?", "Confirm?", "Yes", "No") == "No")
toolbar_updated_selection = "clear"
return

toolbar_updated_selection = "export"
COOLDOWN_START(src, canvas_cooldown, canvas_cooldown_time)
updated_canvas = TRUE
// callback timer for when the user can update again
. = TRUE

if ("undoChange")
Expand All @@ -543,6 +541,8 @@ SUBSYSTEM_DEF(minimaps)
toolbar_color_selection = "blue"
if("green")
toolbar_color_selection = "green"
if("brown")
toolbar_color_selection = "brown"
toolbar_updated_selection = toolbar_color_selection
. = TRUE

Expand Down
10 changes: 6 additions & 4 deletions tgui/packages/tgui/interfaces/TacticalMap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ export const TacticalMap = (props, context) => {
'orange',
'blue',
'purple',
'green'
'green',
'brown'
];

const colors: Record<string, string> = {
Expand All @@ -42,7 +43,8 @@ export const TacticalMap = (props, context) => {
'orange': '#F59A07',
'blue': '#0561F5',
'purple': '#C002FA',
'green': '#02c245'
'green': '#02c245',
'brown': '#5C351E'
};

const handleColorSelection = () => {
Expand Down Expand Up @@ -95,8 +97,8 @@ export const TacticalMap = (props, context) => {
<Button
fontSize="10px"
fluid={1}
icon="trash"
color="grey"
icon="trash"
content="Clear Canvas"
className="text-center"
onClick={() => act('clearCanvas')}
Expand All @@ -106,8 +108,8 @@ export const TacticalMap = (props, context) => {
<Button
fontSize="10px"
fluid={1}
icon="recycle"
color="grey"
icon="recycle"
content="Undo"
className="text-center"
onClick={() => act('undoChange')}
Expand Down

0 comments on commit 8ed8d6d

Please sign in to comment.