public OpeningSequenceRenderer(DrawScreen screen, IRenderer parent) { this.screen = screen; this.parent = parent; this.cache = new PatchCache(); }
public FinaleRenderer(CommonResource resource, DrawScreen screen) { this.flats = resource.Flats; this.sprites = resource.Sprites; this.screen = screen; this.scale = screen.Width / 320; this.cache = new PatchCache(); }
public AutoMapRenderer(DrawScreen screen) { this.screen = screen; this.scale = screen.Width / 320; this.amWidth = screen.Width; this.amHeight = screen.Height - this.scale * StatusBarRenderer.Height; this.ppu = (float)this.scale / 16; this.markNumbers = new Patch[10]; for (var i = 0; i < this.markNumbers.Length; i++) { this.markNumbers[i] = Patch.FromWad("AMMNUM" + i); } }
public IntermissionRenderer(DrawScreen screen) { this.screen = screen; this.cache = new PatchCache(); this.minus = Patch.FromWad("WIMINUS"); this.numbers = new Patch[10]; for (var i = 0; i < 10; i++) { this.numbers[i] = Patch.FromWad("WINUM" + i); } this.percent = Patch.FromWad("WIPCNT"); this.colon = Patch.FromWad("WICOLON"); this.scale = screen.Width / 320; }
public StatusBarRenderer(DrawScreen screen) { this.screen = screen; this.patches = new Patches(); this.scale = screen.Width / 320; this.ready = new NumberWidget(); this.ready.Patches = this.patches.TallNumbers; this.ready.Width = StatusBarRenderer.ammoWidth; this.ready.X = StatusBarRenderer.ammoX; this.ready.Y = StatusBarRenderer.ammoY; this.health = new PercentWidget(); this.health.NumberWidget.Patches = this.patches.TallNumbers; this.health.NumberWidget.Width = 3; this.health.NumberWidget.X = StatusBarRenderer.healthX; this.health.NumberWidget.Y = StatusBarRenderer.healthY; this.health.Patch = this.patches.TallPercent; this.armor = new PercentWidget(); this.armor.NumberWidget.Patches = this.patches.TallNumbers; this.armor.NumberWidget.Width = 3; this.armor.NumberWidget.X = StatusBarRenderer.armorX; this.armor.NumberWidget.Y = StatusBarRenderer.armorY; this.armor.Patch = this.patches.TallPercent; this.ammo = new NumberWidget[4]; this.ammo[0] = new NumberWidget(); this.ammo[0].Patches = this.patches.ShortNumbers; this.ammo[0].Width = StatusBarRenderer.ammo0Width; this.ammo[0].X = StatusBarRenderer.ammo0X; this.ammo[0].Y = StatusBarRenderer.ammo0Y; this.ammo[1] = new NumberWidget(); this.ammo[1].Patches = this.patches.ShortNumbers; this.ammo[1].Width = StatusBarRenderer.ammo1Width; this.ammo[1].X = StatusBarRenderer.ammo1X; this.ammo[1].Y = StatusBarRenderer.ammo1Y; this.ammo[2] = new NumberWidget(); this.ammo[2].Patches = this.patches.ShortNumbers; this.ammo[2].Width = StatusBarRenderer.ammo2Width; this.ammo[2].X = StatusBarRenderer.ammo2X; this.ammo[2].Y = StatusBarRenderer.ammo2Y; this.ammo[3] = new NumberWidget(); this.ammo[3].Patches = this.patches.ShortNumbers; this.ammo[3].Width = StatusBarRenderer.ammo3Wdth; this.ammo[3].X = StatusBarRenderer.ammo3X; this.ammo[3].Y = StatusBarRenderer.ammo3Y; this.maxAmmo = new NumberWidget[4]; this.maxAmmo[0] = new NumberWidget(); this.maxAmmo[0].Patches = this.patches.ShortNumbers; this.maxAmmo[0].Width = StatusBarRenderer.maxAmmo0Width; this.maxAmmo[0].X = StatusBarRenderer.maxAmmo0X; this.maxAmmo[0].Y = StatusBarRenderer.maxAmmo0Y; this.maxAmmo[1] = new NumberWidget(); this.maxAmmo[1].Patches = this.patches.ShortNumbers; this.maxAmmo[1].Width = StatusBarRenderer.maxAmmo1Width; this.maxAmmo[1].X = StatusBarRenderer.maxAmmo1X; this.maxAmmo[1].Y = StatusBarRenderer.maxAmmo1Y; this.maxAmmo[2] = new NumberWidget(); this.maxAmmo[2].Patches = this.patches.ShortNumbers; this.maxAmmo[2].Width = StatusBarRenderer.maxAmmo2Width; this.maxAmmo[2].X = StatusBarRenderer.maxAmmo2X; this.maxAmmo[2].Y = StatusBarRenderer.maxAmmo2Y; this.maxAmmo[3] = new NumberWidget(); this.maxAmmo[3].Patches = this.patches.ShortNumbers; this.maxAmmo[3].Width = StatusBarRenderer.maxAmmo3Width; this.maxAmmo[3].X = StatusBarRenderer.maxAmmo3X; this.maxAmmo[3].Y = StatusBarRenderer.maxAmmo3Y; this.weapons = new MultIconWidget[6]; for (var i = 0; i < this.weapons.Length; i++) { this.weapons[i] = new MultIconWidget(); this.weapons[i].X = StatusBarRenderer.armsX + (i % 3) * StatusBarRenderer.armsSpaceX; this.weapons[i].Y = StatusBarRenderer.armsY + (i / 3) * StatusBarRenderer.armsSpaceY; this.weapons[i].Patches = this.patches.Arms[i]; } this.frags = new NumberWidget(); this.frags.Patches = this.patches.TallNumbers; this.frags.Width = StatusBarRenderer.fragsWidth; this.frags.X = StatusBarRenderer.fragsX; this.frags.Y = StatusBarRenderer.fragsY; this.keys = new MultIconWidget[3]; this.keys[0] = new MultIconWidget(); this.keys[0].X = StatusBarRenderer.key0X; this.keys[0].Y = StatusBarRenderer.key0Y; this.keys[0].Patches = this.patches.Keys; this.keys[1] = new MultIconWidget(); this.keys[1].X = StatusBarRenderer.key1X; this.keys[1].Y = StatusBarRenderer.key1Y; this.keys[1].Patches = this.patches.Keys; this.keys[2] = new MultIconWidget(); this.keys[2].X = StatusBarRenderer.key2X; this.keys[2].Y = StatusBarRenderer.key2Y; this.keys[2].Patches = this.patches.Keys; }
public MenuRenderer(DrawScreen screen) { this.screen = screen; this.cache = new PatchCache(); }