Enemy healthbar redesign.
This commit is contained in:
parent
38ae42c8dd
commit
adb0eac431
6 changed files with 6 additions and 6 deletions
Binary file not shown.
|
Before Width: | Height: | Size: 154 B After Width: | Height: | Size: 171 B |
Binary file not shown.
|
Before Width: | Height: | Size: 151 B After Width: | Height: | Size: 167 B |
Binary file not shown.
|
Before Width: | Height: | Size: 122 B After Width: | Height: | Size: 129 B |
|
|
@ -1,3 +1,3 @@
|
|||
[default]
|
||||
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r1048 \cu(Sun 10 Dec 10:56:48 CET 2023)\c-";
|
||||
SWWM_SHORTVER="\cw1.3pre r1048 \cu(2023-12-10 10:56:48)\c-";
|
||||
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r1049 \cu(Mon 11 Dec 10:56:47 CET 2023)\c-";
|
||||
SWWM_SHORTVER="\cw1.3pre r1049 \cu(2023-12-11 10:56:47)\c-";
|
||||
|
|
|
|||
|
|
@ -583,7 +583,7 @@ extend Class SWWMHandler
|
|||
{
|
||||
double calph = clamp(((lastcummtic+150)-gametic)/50.,0.,1.);
|
||||
string dnum = String.Format("%d",cummdamage);
|
||||
Screen.DrawText(mTinyFont,Font.CR_RED,vpos.x+intsz-mTinyFont.StringWidth(dnum),vpos.y-(mTinyFont.GetHeight()+2),dnum,DTA_VirtualWidthF,bar.ss.x,DTA_VirtualHeightF,bar.ss.y,DTA_KeepRatio,true,DTA_Alpha,bossalpha*calph);
|
||||
Screen.DrawText(mTinyFont,Font.CR_RED,(vpos.x+intsz)-(mTinyFont.StringWidth(dnum)+2),vpos.y-mTinyFont.GetHeight(),dnum,DTA_VirtualWidthF,bar.ss.x,DTA_VirtualHeightF,bar.ss.y,DTA_KeepRatio,true,DTA_Alpha,bossalpha*calph);
|
||||
}
|
||||
String bname = bosstag;
|
||||
if ( (bname.Left(1) == "$") && swwm_funtags )
|
||||
|
|
@ -591,7 +591,7 @@ extend Class SWWMHandler
|
|||
String fun = bname.."_FUN";
|
||||
if ( !(StringTable.Localize(fun) ~== fun.Mid(1)) ) bname = fun;
|
||||
}
|
||||
Screen.DrawText(mSmallFont,Font.CR_WHITE,vpos.x,vpos.y-(mSmallFont.GetHeight()+2),StringTable.Localize(bname),DTA_VirtualWidthF,bar.ss.x,DTA_VirtualHeightF,bar.ss.y,DTA_KeepRatio,true,DTA_Alpha,bossalpha);
|
||||
Screen.DrawText(mSmallFont,Font.CR_WHITE,vpos.x+3,vpos.y-mSmallFont.GetHeight(),StringTable.Localize(bname),DTA_VirtualWidthF,bar.ss.x,DTA_VirtualHeightF,bar.ss.y,DTA_KeepRatio,true,DTA_Alpha,bossalpha);
|
||||
}
|
||||
|
||||
// can't use this until I actually figure out how to make those walls damageable
|
||||
|
|
|
|||
|
|
@ -217,10 +217,10 @@ extend Class SWWMStatusBar
|
|||
Screen.DrawTexture(EnemyHTex[2],false,barpos.x+2,barpos.y+2,DTA_VirtualWidthF,ss1.x,DTA_VirtualHeightF,ss1.y,DTA_KeepRatio,true,DTA_Alpha,alph,DTA_WindowLeftF,ohw,DTA_WindowRightF,hw);
|
||||
if ( ct.cummdamage <= 0 ) continue;
|
||||
double calph = clamp(ct.cummspan-fractic,0.,20.)/20.;
|
||||
Screen.DrawText(MiniHUDFontOutline,mhudfontcol[MCR_RED],barpos.x+3,barpos.y+10,(ct.cummdamage>=Actor.TELEFRAG_DAMAGE)?"∞":String.Format("%d",ct.cummdamage),DTA_VirtualWidthF,ss1.x,DTA_VirtualHeightF,ss1.y,DTA_KeepRatio,true,DTA_Alpha,calph*alph);
|
||||
Screen.DrawText(MiniHUDFontOutline,mhudfontcol[MCR_RED],barpos.x+4,barpos.y+8,(ct.cummdamage>=Actor.TELEFRAG_DAMAGE)?"∞":String.Format("%d",ct.cummdamage),DTA_VirtualWidthF,ss1.x,DTA_VirtualHeightF,ss1.y,DTA_KeepRatio,true,DTA_Alpha,calph*alph);
|
||||
if ( ct.cummflash <= 0 ) continue;
|
||||
double falph = max((ct.cummflash-FracTic)/15.,0.)**1.5;
|
||||
Screen.DrawText(MiniHUDFontOutline,mhudfontcol[MCR_REDFLASH],barpos.x+3,barpos.y+10,(ct.cummdamage>=Actor.TELEFRAG_DAMAGE)?"∞":String.Format("%d",ct.cummdamage),DTA_VirtualWidthF,ss1.x,DTA_VirtualHeightF,ss1.y,DTA_KeepRatio,true,DTA_Alpha,falph*calph*alph,DTA_LegacyRenderStyle,STYLE_Add);
|
||||
Screen.DrawText(MiniHUDFontOutline,mhudfontcol[MCR_REDFLASH],barpos.x+4,barpos.y+8,(ct.cummdamage>=Actor.TELEFRAG_DAMAGE)?"∞":String.Format("%d",ct.cummdamage),DTA_VirtualWidthF,ss1.x,DTA_VirtualHeightF,ss1.y,DTA_KeepRatio,true,DTA_Alpha,falph*calph*alph,DTA_LegacyRenderStyle,STYLE_Add);
|
||||
}
|
||||
// player-owned trackers are drawn last
|
||||
cti.Reinit();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue