Make the upvote more fancy and bigger
This commit is contained in:
parent
9bb4d92717
commit
44405827b0
@ -870,9 +870,15 @@ void Graphics::draw_icon(int x, int y, Icon icon, unsigned char alpha, bool inve
|
|||||||
break;
|
break;
|
||||||
case IconVoteUp:
|
case IconVoteUp:
|
||||||
if(invert)
|
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
|
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;
|
break;
|
||||||
case IconVoteDown:
|
case IconVoteDown:
|
||||||
if(invert)
|
if(invert)
|
||||||
|
@ -283,11 +283,11 @@ GameView::GameView():
|
|||||||
v->c->Vote(1);
|
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->SetIcon(IconVoteUp);
|
||||||
upVoteButton->Appearance.Margin.Top+=2;
|
upVoteButton->Appearance.Margin.Top+=2;
|
||||||
upVoteButton->Appearance.Margin.Left+=2;
|
upVoteButton->Appearance.Margin.Left+=2;
|
||||||
currentX+=14;
|
currentX+=38;
|
||||||
upVoteButton->SetActionCallback(new UpVoteAction(this));
|
upVoteButton->SetActionCallback(new UpVoteAction(this));
|
||||||
AddComponent(upVoteButton);
|
AddComponent(upVoteButton);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user