Skip to content

Commit

Permalink
Make the upvote more fancy and bigger
Browse files Browse the repository at this point in the history
  • Loading branch information
mniip committed Jun 3, 2014
1 parent 9bb4d92 commit 4440582
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
10 changes: 8 additions & 2 deletions src/graphics/Graphics.cpp
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions src/gui/game/GameView.cpp
Expand Up @@ -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);

Expand Down

0 comments on commit 4440582

Please sign in to comment.