Permalink
Browse files

Make the upvote more fancy and bigger

  • Loading branch information...
mniip committed Jun 3, 2014
1 parent 9bb4d92 commit 44405827b07c2a78d15d18c89f71ebe0fc0fb13e
Showing with 10 additions and 4 deletions.
  1. +8 −2 src/graphics/Graphics.cpp
  2. +2 −2 src/gui/game/GameView.cpp
@@ -870,9 +870,15 @@ void Graphics::draw_icon(int x, int y, Icon icon, unsigned char alpha, bool inve
break;
case IconVoteUp:
if(invert)
drawchar(x, y+1, 0xCB, 0, 100, 0, alpha);
{
drawchar(x-11, y+1, 0xCB, 0, 100, 0, alpha);
drawtext(x+2, y+1, "Vote", 0, 100, 0, alpha);
}
else
drawchar(x, y+1, 0xCB, 0, 187, 18, alpha);
{
drawchar(x-11, y+1, 0xCB, 0, 187, 18, alpha);
drawtext(x+2, y+1, "Vote", 0, 187, 18, alpha);
}
break;
case IconVoteDown:
if(invert)
@@ -283,11 +283,11 @@ GameView::GameView():
v->c->Vote(1);
}
};
upVoteButton = new ui::Button(ui::Point(currentX, Size.Y-16), ui::Point(15, 15), "", "Like this save");
upVoteButton = new ui::Button(ui::Point(currentX, Size.Y-16), ui::Point(39, 15), "", "Like this save");
upVoteButton->SetIcon(IconVoteUp);
upVoteButton->Appearance.Margin.Top+=2;
upVoteButton->Appearance.Margin.Left+=2;
currentX+=14;
currentX+=38;
upVoteButton->SetActionCallback(new UpVoteAction(this));
AddComponent(upVoteButton);

0 comments on commit 4440582

Please sign in to comment.