-
Notifications
You must be signed in to change notification settings - Fork 566
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Gun action (and equip) buttons refactor (#5750)
# About the pull request Refactors the 'gun action' buttons and the 'equip' button to have each have their own `/atom/movable/screen` subtype, rather than all of their functionality being done through `if()` checks in `/atom/movable/screen/clicked()`. *The 'gun action' buttons being these:* ![image](https://github.com/cmss13-devs/cmss13/assets/57483089/3c73da3e-4b99-4ad5-b66d-f01077f686d4) *And the 'equip' button being this:* ![image](https://github.com/cmss13-devs/cmss13/assets/57483089/1a60d926-605d-45b4-9a9a-5a6a05cfc657) # Explain why it's good for the game Cleaner code, and the gun buttons now show their names in the status bar when hovered over thanks to this: https://github.com/cmss13-devs/cmss13/blob/1bc0fa54e985fef991e06a85871b0a62cf15e5b2/code/modules/statusbar/statusbar.dm#L23 (That line has been there for a couple of years, but `/atom/movable/screen/gun` didn't exist until now.) # Testing Photographs and Procedure <details> <summary>Screenshots & Videos</summary> Put screenshots and videos here with an empty line between the screenshots and the `<details>` tags. </details> # Changelog :cl: refactor: Refactored the 'gun action' buttons, making them show their names in the status bar when hovered over. /:cl: --------- Co-authored-by: harryob <[email protected]>
- Loading branch information
Showing
2 changed files
with
63 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters