diff options
author | Majin Sniper <majinsniper@gmx.de> | 2009-03-14 15:47:31 +0100 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-03-14 09:08:14 -0600 |
commit | 102fce1d3948277c882a0a3043b2d7423a4b4af9 (patch) | |
tree | 8183f79a499651e06f4e41e57c993179b2968179 /src/gui | |
parent | 28b709ebcc804c3d4a45604abcf2b200453185b9 (diff) | |
download | mana-client-102fce1d3948277c882a0a3043b2d7423a4b4af9.tar.gz mana-client-102fce1d3948277c882a0a3043b2d7423a4b4af9.tar.bz2 mana-client-102fce1d3948277c882a0a3043b2d7423a4b4af9.tar.xz mana-client-102fce1d3948277c882a0a3043b2d7423a4b4af9.zip |
Code cleanup in the color/palette code
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/palette.cpp | 34 | ||||
-rw-r--r-- | src/gui/setup_colors.cpp | 25 | ||||
-rw-r--r-- | src/gui/setup_colors.h | 1 |
3 files changed, 16 insertions, 44 deletions
diff --git a/src/gui/palette.cpp b/src/gui/palette.cpp index 967212fe..bb2245ce 100644 --- a/src/gui/palette.cpp +++ b/src/gui/palette.cpp @@ -79,8 +79,8 @@ Palette::Palette() : mColVector(ColVector(TYPE_COUNT)), mGradVector(), { std::string indent = " "; addColor(TEXT, 0x000000, STATIC, _("Text")); - addColor(SHADOW, 0x000000, STATIC, indent + _("Text Shadow"), 0); - addColor(OUTLINE, 0x000000, STATIC, indent + _("Text Outline"), 0); + addColor(SHADOW, 0x000000, STATIC, indent + _("Text Shadow")); + addColor(OUTLINE, 0x000000, STATIC, indent + _("Text Outline")); addColor(BACKGROUND, 0xffffff, STATIC, _("Background")); @@ -98,24 +98,22 @@ Palette::Palette() : mColVector(ColVector(TYPE_COUNT)), mGradVector(), addColor(LOGGER, 0x919191, STATIC, indent + _("Logger"), 'L'); addColor(HYPERLINK, 0xe50d0d, STATIC, indent + _("Hyperlink"), '<'); - addColor(BEING, 0xffffff, STATIC, _("Being"), 0); - addColor(PC, 0xffffff, STATIC, indent + _("Other Player's Names"), 0); - addColor(SELF, 0xff8040, STATIC, indent + _("Own Name"), 0); - addColor(GM_NAME, 0x00ff00, STATIC, indent + _("GM Names"), 0); - addColor(NPC, 0xc8c8ff, STATIC, indent + _("NPCs"), 0); - addColor(MONSTER, 0xff4040, STATIC, indent + _("Monsters"), 0); - - addColor(PARTICLE, 0xffffff, STATIC, _("Particle Effects"), 0); - addColor(PICKUP_INFO, 0x28dc28, STATIC, indent + _("Pickup Notification"), - 0); - addColor(EXP_INFO, 0xffff00, STATIC, indent + _("Exp Notification"),0); + addColor(BEING, 0xffffff, STATIC, _("Being")); + addColor(PC, 0xffffff, STATIC, indent + _("Other Player's Names")); + addColor(SELF, 0xff8040, STATIC, indent + _("Own Name")); + addColor(GM_NAME, 0x00ff00, STATIC, indent + _("GM Names")); + addColor(NPC, 0xc8c8ff, STATIC, indent + _("NPCs")); + addColor(MONSTER, 0xff4040, STATIC, indent + _("Monsters")); + + addColor(PARTICLE, 0xffffff, STATIC, _("Particle Effects")); + addColor(PICKUP_INFO, 0x28dc28, STATIC, indent + _("Pickup Notification")); + addColor(EXP_INFO, 0xffff00, STATIC, indent + _("Exp Notification")); addColor(HIT_PLAYER_MONSTER, 0x0064ff, STATIC, - indent + _("Player hits Monster"), 0); + indent + _("Player hits Monster")); addColor(HIT_MONSTER_PLAYER, 0xff3232, STATIC, - indent + _("Monster hits Player"), 0); - addColor(HIT_CRITICAL, 0xff0000, RAINBOW, - indent + _("Critical Hit"), 0); - addColor(MISS, 0xffff00, STATIC, indent + _("Misses"), 0); + indent + _("Monster hits Player")); + addColor(HIT_CRITICAL, 0xff0000, RAINBOW, indent + _("Critical Hit")); + addColor(MISS, 0xffff00, STATIC, indent + _("Misses")); commit(true); } diff --git a/src/gui/setup_colors.cpp b/src/gui/setup_colors.cpp index 7990e217..b786a7fa 100644 --- a/src/gui/setup_colors.cpp +++ b/src/gui/setup_colors.cpp @@ -155,7 +155,6 @@ Setup_Colors::Setup_Colors() : Setup_Colors::~Setup_Colors() { - //delete mPreview; if (mPreviewBox->getContent() == mPreview) { delete mTextPreview; @@ -164,27 +163,6 @@ Setup_Colors::~Setup_Colors() { delete mPreview; } - // delete mTextPreview; -// delete mPreviewBox; - -/* delete mGradTypeLabel; - delete mGradTypeSlider; - delete mGradTypeText; - - delete mRedLabel; - delete mRedSlider; - delete mRedText; - - delete mGreenLabel; - delete mGreenSlider; - delete mGreenText; - - delete mBlueLabel; - delete mBlueSlider; - delete mBlueText; - - delete mColorBox; - delete mScroll;*/ } void Setup_Colors::action(const gcn::ActionEvent &event) @@ -237,8 +215,6 @@ void Setup_Colors::action(const gcn::ActionEvent &event) case Palette::HYPERLINK: mPreviewBox->setContent(mPreview); mPreview->clearRows(); - //char ch = guiPalette->getColorCharAt(mSelected); - //std::string msg; if (ch == '<') { @@ -248,7 +224,6 @@ void Setup_Colors::action(const gcn::ActionEvent &event) { msg = "##" + toString(ch) + rawmsg; } - //std::cout << msg << std::endl; mPreview->addRow(msg); break; case Palette::PARTICLE: diff --git a/src/gui/setup_colors.h b/src/gui/setup_colors.h index 842fd6cc..52d3f727 100644 --- a/src/gui/setup_colors.h +++ b/src/gui/setup_colors.h @@ -62,7 +62,6 @@ class Setup_Colors : public SetupTab, public gcn::ActionListener, gcn::Label *mGradTypeLabel; gcn::Slider *mGradTypeSlider; gcn::Label *mGradTypeText; -// Palette::GradientType mGradType; gcn::Label *mRedLabel; gcn::Slider *mRedSlider; |