Mouse support in graveyards an library browsing during battle

This commit is contained in:
Xawotihs
2010-10-13 22:28:19 +00:00
parent 4a0331cbb9
commit e8ecd74361
8 changed files with 125 additions and 48 deletions
+11
View File
@@ -80,6 +80,17 @@ bool GuiAvatars::CheckUserInput(JButton key){
return false;
}
bool GuiAvatars::CheckUserInput(int x, int y){
// if (self->CheckUserInput(key)) return true;
// if (opponent->CheckUserInput(key)) return true;
if (selfGraveyard->CheckUserInput(x, y)) return true;
if (opponentGraveyard->CheckUserInput(x, y)) return true;
if (opponentHand->CheckUserInput(x, y)) return true;
if (selfLibrary->CheckUserInput(x, y)) return true;
if (opponentLibrary->CheckUserInput(x, y)) return true;
return false;
}
void GuiAvatars::Update(float dt)
{
self->Update(dt);