Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#3300 closed defect (fixed)

[PATCH] Capturing system should entirely disable the delete button

Reported by: Itms Owned by: mimo
Priority: Must Have Milestone: Alpha 19
Component: UI & Simulation Keywords: simple, patch
Cc: sanderd17 Patch:

Description

Currently, if a building is below 50% CP, the Delete button gets an informative tooltip but it is still possible to press the button, which opens a useless confirmation window.

It would be better to disable completely the button, like we currently do for fogged foundations.

Attachments (3)

disable_delete_button.diff (767 bytes ) - added by bb 9 years ago.
The patch for this ticket.
disable_delete_button_2.diff (1.3 KB ) - added by bb 9 years ago.
New patch for this ticket, the icon "kill_small_disable" will be in the next attachment.
kill_small_disable.png (2.2 KB ) - added by bb 9 years ago.
The icon when deleting is disabled.

Download all attachments as: .zip

Change History (7)

by bb, 9 years ago

Attachment: disable_delete_button.diff added

The patch for this ticket.

comment:1 by bb, 9 years ago

Keywords: review patch added
Milestone: BacklogAlpha 19
Summary: Capturing system should entirely disable the delete button[PATCH] Capturing system should entirely disable the delete button

comment:2 by mimo, 9 years ago

Thanks for the patch. While testing it, I noticed that while the tooltip correctly says that we can't delete the building, the icon does not show any change when switching from 51% to 49%. It would be nicer if lines 699 and 705 would also return a different icon to indicate that it is disabled. If you want to give it a try, disabled button are usually grey version of the icon. Otherwise, I'll commit it like that and we'll do another ticket for the icon.

by bb, 9 years ago

New patch for this ticket, the icon "kill_small_disable" will be in the next attachment.

by bb, 9 years ago

Attachment: kill_small_disable.png added

The icon when deleting is disabled.

comment:3 by mimo, 9 years ago

Owner: set to mimo
Resolution: fixed
Status: newclosed

In 16877:

disable the delete button when less than 50% cp, fixes #3300, patch by bb

comment:4 by mimo, 9 years ago

Keywords: review removed

Thanks for the patch. In game, it was difficult to see any difference between the original icon and the disabled one, so I have added a cross on the disabled one. Hopefully someone will come with a better version.

Note: See TracTickets for help on using tickets.