mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 13:38:41 +01:00
Adds a Memory button to the UI & other HUD Changes (#95303)
## About The Pull Request Revival of https://github.com/tgstation/tgstation/pull/91378 for renewed effort of ruining the stat panel for everyone. This PR does a few things to address issues I've had with the HUD in hopes to bring reliance less upon the stat panel. 1. Adds a Memory button <img width="133" height="169" alt="image" src="https://github.com/user-attachments/assets/7f643882-5666-4099-9c68-5d6092a6d82c" /> <img width="134" height="169" alt="image" src="https://github.com/user-attachments/assets/e7592ec3-ec3e-4afe-baa3-6d0e6d5d22c8" /> Potential alt icon, but I don't know if it's better <img width="1322" height="115" alt="image" src="https://github.com/user-attachments/assets/82cc6ad9-becd-4502-8b83-276b0ef6ed0d" /> 2. Makes Alien, Animal & Borg HUDs more compact (This is uploaded before Borg HUD icons were made) Borg - Removed 'Store' button, now you left click your model to store it (RMB to open/close), think of it more like a bag now. <img width="1054" height="324" alt="image" src="https://github.com/user-attachments/assets/5352a350-8f3e-4b3a-8634-929e2c9aa2f4" /> Alien <img width="305" height="189" alt="image" src="https://github.com/user-attachments/assets/c0f0b9f0-941a-405e-bdfd-4b5b46690fb6" /> Animals - Their HUDs now appear in the corner of the screen rather than having the strange offset <img width="202" height="168" alt="image" src="https://github.com/user-attachments/assets/ddf26108-d930-4744-8ef5-17f981a3384b" /> I didn't touch gorilla, they still look weird. <img width="732" height="181" alt="image" src="https://github.com/user-attachments/assets/5c1534c3-7190-491d-8a1f-6fe51eebd9a2" /> 2. Fixes borg numbers not showing up at the request of a user <img width="701" height="312" alt="image" src="https://github.com/user-attachments/assets/65464e15-8e31-41f8-b506-050fa27cebde" /> Closes https://github.com/tgstation/tgstation/issues/95163 I also added a rustle sound when you drop something as a borg so you have an audio cue that you dropped something, sometimes as a borg I'll drop something and think it disappeared, cause I didn't realize I accidentally hit drop. This is a local sound, so it doesn't play to anyone near you. Purely for feedback. 3. If you didn't notice, this de-hardcodes the UI for non-humans UIs now respect your prefs for many more mobs now, pretty much only the ones with unique special UIs (Alien, pAI, AI, Borg) will now respect your prefs. ## Why It's Good For The Game UIs make a bit more sense, takes Memories out of being only accessible through the stat panel, allows your prefs to be respected more and makes inventories a little more consistent through mob types. If the stat panel is to be removed or made optional, we can't afford to hide Memories through it because certain antagonists (see: nukies) absolutely rely on it. ## Changelog 🆑 ttt, JohnFulpWillard add: Added a Memory HUD to your UI. In case you didn't know, you get memories of things happening around the station, or important antagonist info such as the nuclear codes. del: Removed Borg's "store" button, now the cyborg module will behave more similar to a backpack (LMB to store, RMB to open/close) fix: Borg material now properly displays how much materials they can afford with their cell's charge. qol: Your HUD prefs are respected on more mobs now. qol: Improved the HUD of simple/basic animals, as well as Cyborgs, AIs, pAIs and Xenomorphs. /🆑 --------- Co-authored-by: Time-Green <7501474+Time-Green@users.noreply.github.com>
This commit is contained in:
co-authored by
Time-Green
parent
ab70fc7931
commit
038707f0b1
@@ -110,7 +110,7 @@
|
||||
|
||||
/obj/item/stack/update_name(updates)
|
||||
. = ..()
|
||||
maptext = (ismob(loc) || loc?.atom_storage) ? MAPTEXT("<font color='white'>[amount]</font>") : ""
|
||||
maptext = (ismob(loc) || loc?.atom_storage) ? MAPTEXT("<font color='white'>[get_amount()]</font>") : ""
|
||||
|
||||
/obj/item/stack/Moved(atom/old_loc, movement_dir, forced, list/old_locs, momentum_change)
|
||||
. = ..()
|
||||
@@ -571,7 +571,10 @@
|
||||
if(check && is_zero_amount(delete_if_zero = TRUE))
|
||||
return FALSE
|
||||
if(is_cyborg)
|
||||
return source.use_charge(used * cost)
|
||||
if(source.use_charge(used * cost))
|
||||
update_appearance(UPDATE_NAME)
|
||||
return TRUE
|
||||
return FALSE
|
||||
if (amount < used)
|
||||
return FALSE
|
||||
amount -= used
|
||||
|
||||
Reference in New Issue
Block a user