private void ConfigureScreen() { switch (Mode) { case ScreenMode.Zero: _resolution = null; _textResolution = new TextResolution(TextColumnWidth.Eighty, TextRowHeight.TwentyFive); SetWidth(TextColumnWidth.Eighty, TextRowHeight.TwentyFive); _colorEnabled = true; _colorAttributes = ColorAttributes.Sixteen; _colorDepth = ColorDepth.d4Bit; _videoMemoryPages = MinimumPages; InitPages(PageSize.m2K); break; case ScreenMode.One: _resolution = new Resolution(320, 200); break; case ScreenMode.Two: _resolution = new Resolution(640, 200); break; case ScreenMode.Three: _resolution = new Resolution(720, 348); break; case ScreenMode.Four: _resolution = new Resolution(640, 400); break; case ScreenMode.Seven: _resolution = new Resolution(320, 200); break; case ScreenMode.Eight: _resolution = new Resolution(640, 200); break; case ScreenMode.Nine: _resolution = new Resolution(640, 350); break; case ScreenMode.Ten: _resolution = new Resolution(640, 350); break; case ScreenMode.Eleven: _resolution = new Resolution(640, 480); break; case ScreenMode.Twelve: _resolution = new Resolution(640, 480); break; case ScreenMode.Thirteen: _resolution = new Resolution(320, 200); break; } }
public void GetColorsTest() { ColorAttributes target = new ColorAttributes(); // TODO: Initialize to an appropriate value IEnumerable <ColorAttributes> expected = null; // TODO: Initialize to an appropriate value IEnumerable <ColorAttributes> actual; actual = target.GetColors(); Assert.AreEqual(expected, actual); Assert.Inconclusive("Verify the correctness of this test method."); }
public Palette(ColorAttributes colorAttributes, ColorDepth depth) { ColorValues = new List <Color>(); ColorAttributes = colorAttributes; _depth = depth; for (var i = 0; i < (int)ColorAttributes; i++) { ColorValues.Add(DefaultPalleteColors[i]); } }
public void significantFigureTest() { ColorAttributes target = new ColorAttributes(); // TODO: Initialize to an appropriate value string expected = string.Empty; // TODO: Initialize to an appropriate value string actual; target.significantFigure = expected; actual = target.significantFigure; Assert.AreEqual(expected, actual); Assert.Inconclusive("Verify the correctness of this test method."); }
public void multiplierTest() { ColorAttributes target = new ColorAttributes(); // TODO: Initialize to an appropriate value double expected = 0F; // TODO: Initialize to an appropriate value double actual; target.multiplier = expected; actual = target.multiplier; Assert.AreEqual(expected, actual); Assert.Inconclusive("Verify the correctness of this test method."); }
public AppUnix() { Console.Title = "Delta Minus"; Driver.SetAttribute(ColorScheme.Focus); ColorAttributes.SetColor(Program.prefs.theme); Application.Init(); Application.UseSystemConsole = true; AutoSize = true; _top = Application.Top; _top.ColorScheme.Normal = ColorAttributes.Current.baseColor; _top.ColorScheme.Focus = ColorAttributes.Current.baseColor; run(); Application.Run(); }
public BasicPage(PageSize pageSize, TextResolution textResolution, ColorDepth depth, ColorAttributes colorAttributes, IUI ui) { _blinkingTexts = new List <BlinkingText>(); PageSize = pageSize; _textResolution = textResolution; ScreenTextBuffer = new Buffer(_textResolution.Width, _textResolution.Height); _colorAttributes = colorAttributes; CurrentForegroundColorIndex = 15; CurrentBackgroundColorIndex = 0; Palette = new Palette(colorAttributes, depth); _cursorVisible = true; _cursorLoc = new Vector2(1, 1); _ui = ui; }
public App() { Console.Title = "Delta Minus"; Driver.SetAttribute(ColorScheme.Focus); ColorAttributes.SetColor(Program.prefs.theme); Application.Init(); Application.UseSystemConsole = true; AutoSize = true; _top = Application.Top; _top.ColorScheme.Normal = ColorAttributes.Current.baseColor; _top.ColorScheme.Focus = ColorAttributes.Current.baseColor; if (MLinstalled) { resetMods(); } else { MessageBox.ErrorQuery("Can't find MelonLoader v0.3.0", "MelonLoader v0.3.0 can not be detected. Either install it or update it.", "Ok"); "https://github.com/LavaGang/MelonLoader.Installer/releases".openLink(); Environment.Exit(0); } Application.Run(); }
public void ColorAttributesConstructorTest() { ColorAttributes target = new ColorAttributes(); Assert.Inconclusive("TODO: Implement code to verify target"); }