Rename Button to ButtonPressed
This commit is contained in:
@@ -39,7 +39,7 @@ public:
|
|||||||
|
|
||||||
virtual void Render() = 0;
|
virtual void Render() = 0;
|
||||||
virtual MTGCard * Click(int x, int y) = 0;
|
virtual MTGCard * Click(int x, int y) = 0;
|
||||||
bool Button(Buttons button);
|
bool ButtonPressed(Buttons button);
|
||||||
virtual MTGCard *getActiveCard() = 0;
|
virtual MTGCard *getActiveCard() = 0;
|
||||||
virtual void changePosition(int offset) = 0;
|
virtual void changePosition(int offset) = 0;
|
||||||
virtual void changeFilter(int offset) = 0;
|
virtual void changeFilter(int offset) = 0;
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ void DeckView::Update(float dt)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool DeckView::Button(Buttons button)
|
bool DeckView::ButtonPressed(Buttons button)
|
||||||
{
|
{
|
||||||
switch(button)
|
switch(button)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -424,7 +424,7 @@ void GameStateDeckViewer::Update(float dt)
|
|||||||
case JGE_BTN_DOWN:
|
case JGE_BTN_DOWN:
|
||||||
if(last_user_activity > 0.2)
|
if(last_user_activity > 0.2)
|
||||||
{
|
{
|
||||||
mView->Button(button);
|
mView->ButtonPressed(button);
|
||||||
last_user_activity = 0;
|
last_user_activity = 0;
|
||||||
mStage = STAGE_WAITING;
|
mStage = STAGE_WAITING;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user