public SaltyButton(SaltyMenu parent, string caption, float x, float y, float width, float height, System.Drawing.Color colour, Action action) { Parent = parent; Position = new Vector2(x, y); Size = new Vector2(width, height); Colour = colour; ButtonText = new SaltyText(x, y - (height / 2), 0, 0, 0.2f, caption, 255, 255, 255, 255, false, true, 0, true); Action = action; }
public HUD(BaseGamemode gamemode) { ActiveGame = gamemode; HUDText = new SaltyText(0.5f, 0.5f, 0, 0, 0.5f, "", 255, 255, 255, 255, false, true, 0, true); HealthText = new SaltyText(0.085f, 0.895f, 0, 0, 0.5f, "Health: ", 255, 255, 255, 255, false, true, 0, true); AmmoText = new SaltyText(0.085f, 0.935f, 0, 0, 0.5f, "Ammo: ", 255, 255, 255, 255, false, true, 0, true); GameTimeText = new SaltyText(0.121f, 0.855f, 0, 0, 0.5f, "", 255, 255, 255, 255, false, true, 0, true); ScoreText = new SaltyText(0.5f, 0.01f, 0, 0, 0.7f, "Score: 0", 255, 255, 255, 255, false, true, 0, true); AddScoreText = new SaltyText(0.5f + (ScoreText.Caption.Length), 0.025f, 0, 0, 0.3f, "", 255, 255, 255, 255, false, true, 0, true); BoundText = new SaltyText(0.5f, 0.1f, 0, 0, 1, "", 255, 255, 255, 255, true, true, 0, true); GoalText = new SaltyText(0.5f, 0.1f, 0, 0, 1f, "", 255, 255, 255, 255, false, true, 0, true); }
public TTT_HUD(BaseGamemode gamemode) : base(gamemode) { ActiveTTT = gamemode as TTT; TeamText = new SaltyText(0.033f, 0.855f, 0, 0, 0.5f, "Spectator", 255, 255, 255, 255, false, false, 0, true); DisguisedText = new SaltyText(0f, 0f, 0, 0, 0.5f, "Disguise enabled", 200, 0, 0, 255, false, false, 0, true); }