From 0a2c1ee11b90b40ef3028de4418371bc1a8f3a14 Mon Sep 17 00:00:00 2001 From: JoshuaNavarro Date: Sun, 21 Jul 2019 19:12:03 -0700 Subject: [PATCH] Added support for multiplayer HUDs. --- .../SeasideScrambleMinigame/SSCPlayer.cs | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/GeneralMods/Revitalize/Framework/Minigame/SeasideScrambleMinigame/SSCPlayer.cs b/GeneralMods/Revitalize/Framework/Minigame/SeasideScrambleMinigame/SSCPlayer.cs index 1f007cc3..17d9b1fd 100644 --- a/GeneralMods/Revitalize/Framework/Minigame/SeasideScrambleMinigame/SSCPlayer.cs +++ b/GeneralMods/Revitalize/Framework/Minigame/SeasideScrambleMinigame/SSCPlayer.cs @@ -142,7 +142,23 @@ namespace Revitalize.Framework.Minigame.SeasideScrambleMinigame this.gun=new SSCGuns.SSCGun(new StardustCore.Animations.AnimatedSprite("MyFirstGun",this.position,new AnimationManager(SeasideScramble.self.textureUtils.getExtendedTexture("Guns","BasicGun"),new Animation(0,0,16,16)),Color.White), SeasideScramble.self.projectiles.getDefaultProjectile(this, this.position, Vector2.Zero, 1f, new Rectangle(0, 0, 16, 16), Color.White, 4f, 300),10,1000,3000); this.hitBox = new Rectangle((int)this.position.X, (int)this.position.Y, 64, 64); - this.HUD = new SSCMenus.HUD.CharacterHUD(100, 20, 100, 100, this.playerID); + + if (this.playerID == SSCEnums.PlayerID.One) + { + this.HUD = new SSCMenus.HUD.CharacterHUD(100, 20, 100, 100, this.playerID); + } + if (this.playerID == SSCEnums.PlayerID.Two) + { + this.HUD = new SSCMenus.HUD.CharacterHUD(340, 20, 100, 100, this.playerID); + } + if (this.playerID == SSCEnums.PlayerID.Three) + { + this.HUD = new SSCMenus.HUD.CharacterHUD(580, 20, 100, 100, this.playerID); + } + if (this.playerID == SSCEnums.PlayerID.Four) + { + this.HUD = new SSCMenus.HUD.CharacterHUD(820, 20, 100, 100, this.playerID); + } this.maxHealth = 100; this.currentHealth = 100;