public override void Render() { if (!isVisible) { return; } Color backgroundHighlight = Color.white; Color backgroundDefault = Color.gray; Color foregroundHighlight = Color.yellow; Color foregroundDefault = Color.white; bool highlight = currentState == State.Hovered || currentState == State.Pressed; //battle.rolls[id].Render(pos.x, pos.y); ElementDisplay.Render(pos.x, pos.y, battle.rolls[id], true); if (highlight) { RB.DrawRect(new Rect2i(pos.x, pos.y, size.x, size.y), Color.yellow); } else { //RB.DrawRect(new Rect2i(pos.x - 1, pos.y - 1, size.x + 2, size.y + 2), Color.black); } }
public void Render(int x, int y, bool large = false) { ElementDisplay.Render(x, y, element, large, optional, extension ? extensionValue : -1); }