mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-04-22 15:47:19 +00:00
- Adjustments to the new player setup menu.
This commit is contained in:
parent
7b3d02dfec
commit
3000e15aec
2 changed files with 9 additions and 9 deletions
|
@ -412,17 +412,17 @@ class NewPlayerMenu : OptionMenu
|
|||
int mRotation;
|
||||
PlayerMenuPlayerDisplay mPlayerDisplay;
|
||||
|
||||
const PLAYERDISPLAY_X = 170;
|
||||
const PLAYERDISPLAY_X = 70;
|
||||
const PLAYERDISPLAY_Y = 60;
|
||||
const PLAYERDISPLAY_W = 144;
|
||||
const PLAYERDISPLAY_H = 160;
|
||||
const PLAYERDISPLAY_SPACE = 180;
|
||||
const PLAYERDISPLAY_W = 72;
|
||||
const PLAYERDISPLAY_H = 80;
|
||||
const PLAYERDISPLAY_SPACE = 90;
|
||||
|
||||
override void Init(Menu parent, OptionMenuDescriptor desc)
|
||||
{
|
||||
Super.Init(parent, desc);
|
||||
let BaseColor = gameinfo.gametype == GAME_Hexen? 0x200000 : 0x000700;
|
||||
let AddColor = gameinfo.gametype == GAME_Hexen? 0x800040 : 0x405340;
|
||||
let AddColor = gameinfo.gametype == GAME_Hexen? 0x800040 : 0x461446;
|
||||
mPlayerDisplay = new("PlayerMenuPlayerDisplay");
|
||||
mPlayerDisplay.init(BaseColor, AddColor);
|
||||
PickPlayerClass();
|
||||
|
@ -439,7 +439,7 @@ class NewPlayerMenu : OptionMenu
|
|||
|
||||
override int GetIndent()
|
||||
{
|
||||
return Super.GetIndent() - 75*CleanXfac_1;
|
||||
return Super.GetIndent() - 35*CleanXfac_1;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -340,11 +340,11 @@ class PlayerMenuPlayerDisplay : ListMenuItemPlayerDisplay
|
|||
{
|
||||
int trans = mTranslate? Translation.MakeID(TRANSLATION_Players, MAXPLAYERS) : 0;
|
||||
let tscale = TexMan.GetScaledSize(sprite);
|
||||
Scale.X *= CleanXfac_1 * tscale.X * 2;
|
||||
Scale.Y *= CleanYfac_1 * tscale.Y * 2;
|
||||
Scale.X *= CleanXfac_1 * tscale.X;
|
||||
Scale.Y *= CleanYfac_1 * tscale.Y;
|
||||
|
||||
screen.DrawTexture (sprite, false,
|
||||
x + (NewPlayerMenu.PLAYERDISPLAY_W/2) * CleanXfac_1, y + (NewPlayerMenu.PLAYERDISPLAY_H-16) * CleanYfac_1,
|
||||
x + (NewPlayerMenu.PLAYERDISPLAY_W/2) * CleanXfac_1, y + (NewPlayerMenu.PLAYERDISPLAY_H-8) * CleanYfac_1,
|
||||
DTA_DestWidthF, Scale.X, DTA_DestHeightF, Scale.Y,
|
||||
DTA_TranslationIndex, trans,
|
||||
DTA_KeepRatio, mNoPortrait,
|
||||
|
|
Loading…
Reference in a new issue