Commit f6865b73 authored by DailyShana's avatar DailyShana Committed by GitHub

Merge pull request #1819 from nekrozar/patch-1

add search filter OCG&TCG and Custom
parents 10209969 134ffcfa
...@@ -827,6 +827,10 @@ void DeckBuilder::FilterCards() { ...@@ -827,6 +827,10 @@ void DeckBuilder::FilterCards() {
continue; continue;
if(filter_lm == 5 && data.ot != 2) if(filter_lm == 5 && data.ot != 2)
continue; continue;
if(filter_lm == 6 && data.ot != 3)
continue;
if(filter_lm == 7 && data.ot != 4)
continue;
} }
if(pstr) { if(pstr) {
if(pstr[0] == L'$') { if(pstr[0] == L'$') {
......
...@@ -438,6 +438,8 @@ bool Game::Initialize() { ...@@ -438,6 +438,8 @@ bool Game::Initialize() {
cbLimit->addItem(dataManager.GetSysString(1318)); cbLimit->addItem(dataManager.GetSysString(1318));
cbLimit->addItem(dataManager.GetSysString(1240)); cbLimit->addItem(dataManager.GetSysString(1240));
cbLimit->addItem(dataManager.GetSysString(1241)); cbLimit->addItem(dataManager.GetSysString(1241));
cbLimit->addItem(dataManager.GetSysString(1242));
cbLimit->addItem(dataManager.GetSysString(1243));
env->addStaticText(dataManager.GetSysString(1319), rect<s32>(10, 22 + 50 / 6, 70, 42 + 50 / 6), false, false, wFilter); env->addStaticText(dataManager.GetSysString(1319), rect<s32>(10, 22 + 50 / 6, 70, 42 + 50 / 6), false, false, wFilter);
cbAttribute = env->addComboBox(rect<s32>(60, 20 + 50 / 6, 190, 40 + 50 / 6), wFilter, -1); cbAttribute = env->addComboBox(rect<s32>(60, 20 + 50 / 6, 190, 40 + 50 / 6), wFilter, -1);
cbAttribute->setMaxSelectionRows(10); cbAttribute->setMaxSelectionRows(10);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment