1.2 update, w/ GZDoom 4.9 stuff:
- Customizable player skins here too.
- Integrated re-skin add-ons ("Old Sounds" is still separate).
- The usual fixes and optimizations.
- All weapons are now left-handed, where possible.
This commit is contained in:
parent
5346b420e3
commit
a21aa43f35
1485 changed files with 1157 additions and 380 deletions
|
|
@ -143,6 +143,64 @@ Class OptionMenuItemHudType : OptionMenuItem
|
|||
return -1;
|
||||
}
|
||||
}
|
||||
Class OptionMenuItemUFacePreview : OptionMenuItem
|
||||
{
|
||||
String texpath[5];
|
||||
TextureID talkface[5];
|
||||
CVar mCVar[5];
|
||||
|
||||
OptionMenuItemUFacePreview Init( String dummy )
|
||||
{
|
||||
Super.Init(dummy,'None',true);
|
||||
mCVar[0] = CVar.FindCVar('sting_female1skin');
|
||||
mCVar[1] = CVar.FindCVar('sting_female2skin');
|
||||
mCVar[2] = CVar.FindCVar('sting_male1skin');
|
||||
mCVar[3] = CVar.FindCVar('sting_male2skin');
|
||||
mCVar[4] = CVar.FindCVar('sting_male3skin');
|
||||
return self;
|
||||
}
|
||||
|
||||
override int Draw( OptionMenuDescriptor desc, int y, int indent, bool selected )
|
||||
{
|
||||
int x = Screen.GetWidth()/2-176*CleanXFac_1;
|
||||
for ( int i=0; i<5; i++ )
|
||||
{
|
||||
String path;
|
||||
switch ( i )
|
||||
{
|
||||
default:
|
||||
case 0:
|
||||
path = "models/Female1/Face"..mCVar[0].GetString()..".png";
|
||||
break;
|
||||
case 1:
|
||||
path = "models/Female2/Face"..mCVar[1].GetString()..".png";
|
||||
break;
|
||||
case 2:
|
||||
path = "models/Male1/Face"..mCVar[2].GetString()..".png";
|
||||
break;
|
||||
case 3:
|
||||
path = "models/Male2/Face"..mCVar[3].GetString()..".png";
|
||||
break;
|
||||
case 4:
|
||||
path = "models/Male3/Face"..mCVar[4].GetString()..".png";
|
||||
break;
|
||||
}
|
||||
if ( (texpath[i] != path) || talkface[i].IsNull() )
|
||||
{
|
||||
texpath[i] = path;
|
||||
talkface[i] = TexMan.CheckForTexture(path,TexMan.Type_Any);
|
||||
}
|
||||
Screen.DrawTexture(talkface[i],false,x,y-8*CleanYFac_1,DTA_CleanNoMove_1,true);
|
||||
x += 72*CleanXFac_1;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
override bool Selectable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
// because I can't change the font or color in mapinfo
|
||||
Class GreenMessageBox : MessageBoxMenu
|
||||
|
|
@ -239,7 +297,7 @@ Class TranslatorMenu : GenericMenu
|
|||
trns = UTranslator(players[consoleplayer].mo.FindInventory('UTranslator'));
|
||||
mfnt = Font.GetFont('UMedFont');
|
||||
pfnt = Font.GetFont('UOldTinyFont');
|
||||
ext = CVar.GetCVar('sting_transext',players[consoleplayer]);
|
||||
ext = CVar.FindCVar('sting_transext');
|
||||
if ( !trns || !trns.Owner || (trns.Owner.Health <= 0) )
|
||||
{
|
||||
// don't do anything, will get killed in the next tick
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue