From f330ae5ed3bd73c7b5b582cccde6cdd91d3c6e5b Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Wed, 24 Dec 2014 17:06:35 +0000 Subject: Added autopilot and control lock HUD buttons. --- src/ui/palette.cc | 19 +++++++++++++++++++ src/ui/palette.h | 29 +++++++++++++++++++++-------- 2 files changed, 40 insertions(+), 8 deletions(-) (limited to 'src/ui') diff --git a/src/ui/palette.cc b/src/ui/palette.cc index 6492dc3..9049b72 100644 --- a/src/ui/palette.cc +++ b/src/ui/palette.cc @@ -29,6 +29,25 @@ Palette::Palette() : } +Palette::Palette(const Palette & other ) : + palette_foreground(other.foreground()), + palette_background(other.background()), + palette_border(other.border()), + palette_text(other.text()), + palette_highlight(other.highlight()), + palette_disabled(other.disabled()), + palette_pointer(other.pointer()), + palette_active(other.active()), + palette_debug(other.debug()), + palette_mission(other.mission()), + palette_bold(other.bold()), + palette_fancy(other.fancy()), + palette_warning(other.warning()), + palette_error(other.error()) +{ + +} + Palette::~Palette() { } diff --git a/src/ui/palette.h b/src/ui/palette.h index 422c0e7..ba5c456 100644 --- a/src/ui/palette.h +++ b/src/ui/palette.h @@ -12,22 +12,35 @@ namespace ui { -/// color palette used by the user interface +/** + * @brief color palette used by the user interface + * */ class Palette { public: - /// default constructor, creates a default palette - Palette(); - - /// default destructor - ~Palette(); - - /// color index + /** + * @brief color index + * */ enum Color { Foreground = 0, Background = 1, Border = 2, Text = 3, Highlight = 4, Disabled = 5, Pointer = 6, Active = 7, Debug = 8, Mission = 9, Bold = 10, Fancy = 11, Warning = 12, Error = 13 }; + /** + * @brief default constructor, creates a default palette + * */ + Palette(); + + /** + * @brief copy construcotr + * */ + Palette(const Palette & other); + + /** + * @brief default destructor + * */ + ~Palette(); + /* ---- mutators ------------------------------------------- */ /// set foreground color -- cgit v1.2.3