Commit 4e937097 authored by mercury233's avatar mercury233

Merge branch 'master' of https://github.com/Fluorohydride/ygopro into link

parents 03cc48c7 94f7e54b
......@@ -65,6 +65,8 @@ void ClientField::Clear() {
overlay_cards.clear();
extra_p_count[0] = 0;
extra_p_count[1] = 0;
player_desc_hints[0].clear();
player_desc_hints[1].clear();
chains.clear();
activatable_cards.clear();
summonable_cards.clear();
......
......@@ -281,6 +281,20 @@ void Game::DrawCard(ClientCard* pcard) {
}
if(pcard->is_moving)
return;
if(pcard->is_selectable && (pcard->location & 0xe)) {
float cv[4] = {1.0f, 1.0f, 0.0f, 1.0f};
if((pcard->location == LOCATION_HAND && pcard->code) || ((pcard->location & 0xc) && (pcard->position & POS_FACEUP)))
DrawSelectionLine(matManager.vCardOutline, !pcard->is_selected, 2, cv);
else
DrawSelectionLine(matManager.vCardOutliner, !pcard->is_selected, 2, cv);
}
if(pcard->is_highlighting) {
float cv[4] = {0.0f, 1.0f, 1.0f, 1.0f};
if((pcard->location == LOCATION_HAND && pcard->code) || ((pcard->location & 0xc) && (pcard->position & POS_FACEUP)))
DrawSelectionLine(matManager.vCardOutline, true, 2, cv);
else
DrawSelectionLine(matManager.vCardOutliner, true, 2, cv);
}
irr::core::matrix4 im;
im.setTranslation(pcard->curPos);
driver->setTransform(irr::video::ETS_WORLD, im);
......@@ -301,20 +315,6 @@ void Game::DrawCard(ClientCard* pcard) {
driver->setMaterial(matManager.mTexture);
driver->drawVertexPrimitiveList(matManager.vNegate, 4, matManager.iRectangle, 2);
}
if(pcard->is_selectable && (pcard->location & 0xe)) {
float cv[4] = {1.0f, 1.0f, 0.0f, 1.0f};
if((pcard->location == LOCATION_HAND && pcard->code) || ((pcard->location & 0xc) && (pcard->position & POS_FACEUP)))
DrawSelectionLine(matManager.vCardOutline, !pcard->is_selected, 2, cv);
else
DrawSelectionLine(matManager.vCardOutliner, !pcard->is_selected, 2, cv);
}
if(pcard->is_highlighting) {
float cv[4] = {0.0f, 1.0f, 1.0f, 1.0f};
if((pcard->location == LOCATION_HAND && pcard->code) || ((pcard->location & 0xc) && (pcard->position & POS_FACEUP)))
DrawSelectionLine(matManager.vCardOutline, true, 2, cv);
else
DrawSelectionLine(matManager.vCardOutliner, true, 2, cv);
}
if(pcard->cmdFlag & COMMAND_ATTACK) {
matManager.mTexture.setTexture(0, imageManager.tAttack);
driver->setMaterial(matManager.mTexture);
......
textures/chaintarget.png

4.5 KB | W: | H:

textures/chaintarget.png

2.3 KB | W: | H:

textures/chaintarget.png
textures/chaintarget.png
textures/chaintarget.png
textures/chaintarget.png
  • 2-up
  • Swipe
  • Onion skin
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