Un-scale HUDs for micros and macros.

* Set appearance_flags on HUD images to prevent them from being scaled up/down when the owning mob is macro/micro.
* Optimized the resize() proc and made it adjust the vertical position of the unscaled hud to stay even with the top of the mob's head.
* Also fix the resize proc to be consistent with update_icons().   Now micros wont be in the middle of a turf temporarily after resizing.
This commit is contained in:
Leshana
2017-04-19 23:59:16 -04:00
parent 427966638f
commit f8e34eabbb
6 changed files with 25 additions and 13 deletions
+1 -1
View File
@@ -287,7 +287,7 @@
H.dna = R.dna.Clone()
H.UpdateAppearance() // Update all appearance stuff from the DNA record
H.sync_organ_dna() // Do this because sprites depend on DNA-gender of organs (chest etc)
H.size_multiplier = active_br.sizemult
H.resize(active_br.sizemult, FALSE)
// And as for clothing...
// We don't actually dress them! This is a medical machine, handle the nakedness DOCTOR!
+2 -2
View File
@@ -88,7 +88,7 @@
//Basically all the VORE stuff
H.ooc_notes = current_project.body_oocnotes
H.flavor_texts = current_project.mydna.flavor.Copy()
H.size_multiplier = current_project.sizemult
H.resize(current_project.sizemult, FALSE)
H.weight = current_project.weight
if(current_project.speciesname)
H.custom_species = current_project.speciesname
@@ -301,7 +301,7 @@
//Basically all the VORE stuff
H.ooc_notes = current_project.body_oocnotes
H.flavor_texts = current_project.mydna.flavor.Copy()
H.size_multiplier = current_project.sizemult
H.resize(current_project.sizemult)
H.weight = current_project.weight
if(current_project.speciesname)
H.custom_species = current_project.speciesname