Skip to content

Commit

Permalink
more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Alphalaneous committed Nov 19, 2024
1 parent 8e90f52 commit 56c7978
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/ui/nodes/MCButtonChild.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ void MCButtonChild::onHoverExit(){
}
}

void MCButtonChild::unselected(){
onHoverExit();
/*void MCButtonChild::unselected(){
//onHoverExit();
}
void MCButtonChild::doClick(){
Expand Down Expand Up @@ -169,7 +169,7 @@ void MCButtonChild::doClick(){
void MCButtonChild::selected(){
onHover();
//onHover();
#ifndef GEODE_IS_ANDROID
doClick();
Expand All @@ -180,7 +180,7 @@ void MCButtonChild::activate(){
#ifdef GEODE_IS_ANDROID
doClick();
#endif
}
}*/

void MCButtonChild::update(float dt) {

Expand Down
8 changes: 4 additions & 4 deletions src/ui/nodes/MCButtonChild.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@

using namespace geode::prelude;

class MCButtonChild : public CCMenuItemSprite
class MCButtonChild : public CCMenuItemSpriteExtra
{
public:
CCSprite* edgeTexture;
static MCButtonChild* create(gd::string text, float width, CCObject* target, SEL_MenuHandler selector);
void update(float dt);
void onHover();
void onHoverExit();
void selected();
void unselected();
void activate();
//void selected();
//void unselected();
//void activate();
void doClick();
void setInvisible();
void setVisibleFade();
Expand Down

0 comments on commit 56c7978

Please sign in to comment.