-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert the health part of the mobcritter hud to use the hudzones system #18677
base: master
Are you sure you want to change the base?
Conversation
#define QDEL_NULL(item) qdel(item); item = null | ||
|
||
/// qdel every item in a list, then cut the list | ||
#define QDEL_LIST(L) if(L) { for(var/I in L) qdel(I); L.Cut(); } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#define QDEL_LIST(L) if(L) { for(var/I in L) qdel(I); L.Cut(); } | |
#define QDEL_LIST(L) if(L) { for(var/I as anything in L) qdel(I); L.Cut(); } |
Dunno if it matters in this case given lack of type?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's equivalent yeah
@@ -518,7 +518,7 @@ TYPEINFO(/atom/movable) | |||
var/mechanics_type_override = null | |||
|
|||
//some more of these event handler flag things are handled in set_loc far below . . . | |||
/atom/movable/New() | |||
/atom/movable/New(loc) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh how horrifying that this is just being introduced. :)
if(10 to 20) | ||
screen_obj.icon_state = "health5" // red | ||
else | ||
screen_obj.icon_state = "health6" // crit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is parity with existing, but noting for future discussion that it's weird that you show as "crit" for the last 10% of your health, right? I don't think you're actually in crit at that point.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For critters you pretty much are, since you die at 0% instantly. That was how I always read it.
@@ -134,10 +134,6 @@ | |||
src.ensure_bp_list() | |||
|
|||
if (src.use_stamina) | |||
//stamina bar gets added to the hud in subtypes human and critter... im sorry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Begone, foul demon.
src.stamina_bar.update_value(src) | ||
return | ||
|
||
// kill me |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean... doesn't seem that awful.
if(src.stamina_bar) src.stamina_bar.update_value(src) | ||
return | ||
|
||
// this will never be unified |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean yeah, fair.
Stamina component when?
@@ -55,32 +55,32 @@ | |||
/datum/hud_zone/proc/adjust_offset(datum/hud_element/element) | |||
PRIVATE_PROC(TRUE) | |||
// prework | |||
var/absolute_pos_horizontal // absolute horizontal position (whole screen) where new elements are added, used with hud offsets | |||
var/relative_pos_horizontal // absolute horizontal position (whole screen) where new elements are added, used with hud offsets |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment no longer right?
|
||
var/absolute_pos_vertical // absolute vertical position (whole screen) where new elements are added, used with hud offsets | ||
var/relative_pos_vertical // absolute vertical position (whole screen) where new elements are added, used with hud offsets |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment no longer right?
Co-authored-by: Mordent <62817778+mordent-goonstation@users.noreply.github.com>
This PR has been inactive for two weeks, and has been automatically marked as stale. This means it is at risk of being auto closed in another week. Please address any outstanding review items and ensure your PR is finished. If you are auto-staled anyway, ask developers if your PR will be merged. Once you have done any of the previous actions then you should request a developer remove the stale label on your PR, to reset the stale timer. If you feel no developer will respond in that time, you may wish to close this PR youself, while you seek developer comment, as you will then be able to reopen the PR yourself. |
stfu im busy |
About the PR
title, the top right health area now uses the hudzones system
still need to do the weird stuff like rads, oxy, etc WIP
Why's this needed?
More clean and modern system, infinitely less jank, able to dynamically position elements