public VerticalGauge(DisplayModule displayModule, int x, int y, int height, int width, DisplayModule.Color topCol, DisplayModule.Color btmCol) { _displayModule = displayModule; _x = x; _y = y; _height = height; _width = width; _top = 0; _btm = height; _topCol = topCol; _btmCol = btmCol; _backRect = _displayModule.AddRectSprite(DisplayModule.Color.White, x, _y, width + 2, _top + _btm + 5); _topRect = _displayModule.AddRectSprite(_topCol, _x + 1, _y + 1, _width, _top + 1); _btmRect = _displayModule.AddRectSprite(_btmCol, _x + 1, _y + 1 + _top + 1, _width, _btm + 1); }
public HorizGauge(DisplayModule displayModule, int x, int y, int height, int width, DisplayModule.Color topCol, DisplayModule.Color btmCol) { _displayModule = displayModule; _x = x; _y = y; _height = height; _width = width; _left = 0; _rght = width; _leftCol = topCol; _rghtCol = btmCol; _backRect = _displayModule.AddRectSprite(DisplayModule.Color.White, x, _y, _left + _rght + 4, _height + 2); _leftRect = _displayModule.AddRectSprite(_leftCol, _x + 1, _y + 1, _left + 1, _height); _rghtRect = _displayModule.AddRectSprite(_rghtCol, _x + 1 + _left + 1, _y + 1, _rght + 1, _height); }
public void SetBackgroundColor(DisplayModule.Color color) { _backgrndColor = color; }