add black border option

if enabled, all cards will have black border
This commit is contained in:
Anthony Calosa
2017-02-23 08:38:15 +08:00
parent 4ce37964f4
commit a1af7d9b9f
4 changed files with 5 additions and 1 deletions
+1
View File
@@ -45,6 +45,7 @@ public:
OPTIMIZE_HAND, OPTIMIZE_HAND,
CHEATMODEAIDECK, CHEATMODEAIDECK,
OSD, OSD,
BLKBORDER,
CLOSEDHAND, CLOSEDHAND,
HANDDIRECTION, HANDDIRECTION,
MANADISPLAY, MANADISPLAY,
+2 -1
View File
@@ -1240,7 +1240,8 @@ void CardGui::RenderBig(MTGCard* card, const Pos& pos, bool thumb, bool noborder
} }
}*///disabled this for universal border across game, deck editor, etc... }*///disabled this for universal border across game, deck editor, etc...
//universal border //universal border
if(cardsetname == "2ED"||cardsetname == "RV"||cardsetname == "4ED"||cardsetname == "5ED"||cardsetname == "6ED"||cardsetname == "7ED"||cardsetname == "8ED"||cardsetname == "9ED"||cardsetname == "CHR"||cardsetname == "DM") if((cardsetname == "2ED"||cardsetname == "RV"||cardsetname == "4ED"||cardsetname == "5ED"||cardsetname == "6ED"||cardsetname == "7ED"||cardsetname == "8ED"||cardsetname == "9ED"||cardsetname == "CHR"||cardsetname == "DM")
&& !options[Options::BLKBORDER].number)
{//white border {//white border
renderer->FillRoundRect(pos.actX - (scale * quad->mWidth / 2)-6.f,pos.actY - (scale * quad->mHeight / 2)-5.8f, (scale * quad->mWidth)-0.02f, (scale * quad->mHeight)-0.02f, 5.8f,ARGB(255,248,248,255)); renderer->FillRoundRect(pos.actX - (scale * quad->mWidth / 2)-6.f,pos.actY - (scale * quad->mHeight / 2)-5.8f, (scale * quad->mWidth)-0.02f, (scale * quad->mHeight)-0.02f, 5.8f,ARGB(255,248,248,255));
renderer->DrawRoundRect(pos.actX - (scale * quad->mWidth / 2)-6.f,pos.actY - (scale * quad->mHeight / 2)-5.8f, (scale * quad->mWidth)-0.02f, (scale * quad->mHeight)-0.02f, 5.8f,ARGB(150,20,20,20)); renderer->DrawRoundRect(pos.actX - (scale * quad->mWidth / 2)-6.f,pos.actY - (scale * quad->mHeight / 2)-5.8f, (scale * quad->mWidth)-0.02f, (scale * quad->mHeight)-0.02f, 5.8f,ARGB(150,20,20,20));
+1
View File
@@ -21,6 +21,7 @@ const string Options::optionNames[] = {
"optimizedhand", "optimizedhand",
"cheatmodedecks", "cheatmodedecks",
"displayOSD", "displayOSD",
"BlackBorder",
"closed_hand", "closed_hand",
"hand_direction", "hand_direction",
"mana_display", "mana_display",
+1
View File
@@ -56,6 +56,7 @@ void GameStateOptions::Start()
optionsList = NEW WGuiList("Game"); optionsList = NEW WGuiList("Game");
optionsList->Add(NEW WGuiHeader("Interface Options")); optionsList->Add(NEW WGuiHeader("Interface Options"));
optionsList->Add(NEW OptionInteger(Options::BLKBORDER, "All Black Border"));
optionsList->Add(NEW WDecoEnum(NEW OptionInteger(Options::CLOSEDHAND, "Closed hand", 1, 1, 0))); optionsList->Add(NEW WDecoEnum(NEW OptionInteger(Options::CLOSEDHAND, "Closed hand", 1, 1, 0)));
optionsList->Add(NEW WDecoEnum(NEW OptionInteger(Options::HANDDIRECTION, "Hand direction", 1, 1, 0))); optionsList->Add(NEW WDecoEnum(NEW OptionInteger(Options::HANDDIRECTION, "Hand direction", 1, 1, 0)));
optionsList->Add(NEW WDecoEnum(NEW OptionInteger(Options::MANADISPLAY, "Mana display", 3, 1, 0))); optionsList->Add(NEW WDecoEnum(NEW OptionInteger(Options::MANADISPLAY, "Mana display", 3, 1, 0)));