http://johan411.webs.com/icons.dmi
Descriptive Problem Summary:
I use a black alpha background for my skill icons usually works fine but when i wanted to make it so the skill icon for attack looked like your weapon it started glitching on me.
Numbered Steps to Reproduce Problem:
Make a black alpha background. add an overlay of a sword or something. Then display it in your statpanel.
Code Snippet (if applicable) to Reproduce Problem:
proc
UpdateATICON(mob/M)
var/WEP="NONE"
var/WEPI="NONE"
for(var/obj/Equipment/Weapon/W in M.contents)
WEP=W.icon
WEPI=W.icon_state
if(WEP!="NONE")
for(var/obj/Skills/Attack/S in M.Skills)
S.overlays=null
S.icon_state="WEAPONBASE"
var/obj/O=new
O.layer=S.layer+1
O.icon=WEP
O.icon_state="[WEPI]"
S.overlays+=O
else
for(var/obj/Skills/Attack/S in M.Skills)
S.icon='HUD.dmi'
S.icon_state="NOWEAPON"
Expected Results:
You should see a black icon with the overlay in ur statpanel.
Actual Results:
Insted you see a black icon with you character icon w/ overlays then the overlay for ur skill icon.
Does the problem occur:
Every time? Or how often? Everytime
In other games? Probably
In other user accounts? Yes
On other computers? Yes
When does the problem NOT occur?
Havent tested arround but this should work unless byond is unable to display overlays in the statpanel.
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)
Not sure
Workarounds:
Haven't found one.