Esempio n. 1
0
 public TTT_DetectiveMenu(TTT activeGame, float x, float y, float width, float height, System.Drawing.Color colour, Action OnClose, Func <bool> canBuy) : base(x, y, width, height, colour, OnClose)
 {
     ActiveGame = activeGame;
     AddSpriteButton("armour", 0.001f, 0.05f, 0.33f, 0.9f, 0, Armour_Click);
     AddSpriteButton("radar", 0.34f, 0.05f, 0.33f, 0.9f, 0, Radar_Click);
     AddSpriteButton("teleport", 0.67f, 0.05f, 0.33f, 0.9f, 0, Teleport_Click);
     CanBuy = canBuy;
 }
Esempio n. 2
0
 public TTT_TraitorMenu(TTT activeGame, float x, float y, float width, float height, System.Drawing.Color colour, Action OnClose, Func <bool> canBuy) : base(x, y, width, height, colour, OnClose)
 {
     ActiveGame = activeGame;
     //AddTextButton("Close", 0.9f, 0f, 0.1f, 0.1f, System.Drawing.Color.FromArgb(200, 0, 0), Test_Click);
     AddSpriteButton("mask", 0f, 0.05f, 0.2f, 0.9f, 0, Disguise_Click);
     AddSpriteButton("knife", 0.2f, 0.05f, 0.2f, 0.9f, 0, Knife_Click);
     AddSpriteButton("armour", 0.39f, 0.05f, 0.2f, 0.9f, 0, Armour_Click);
     AddSpriteButton("radar", 0.6f, 0.05f, 0.2f, 0.9f, 0, Radar_Click);
     AddSpriteButton("teleport", 0.8f, 0.05f, 0.2f, 0.9f, 0, Teleport_Click);
     CanBuy = canBuy;
 }
Esempio n. 3
0
 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);
 }