Skip to content

Client: clickmanager, maplebutton, maplestancebutton, mapleframebutton#7

Open
sedyn wants to merge 2 commits intojohncintron:masterfrom
sedyn:click_manager
Open

Client: clickmanager, maplebutton, maplestancebutton, mapleframebutton#7
sedyn wants to merge 2 commits intojohncintron:masterfrom
sedyn:click_manager

Conversation

@sedyn
Copy link
Contributor

@sedyn sedyn commented May 29, 2018

I implement new features.

  • MapleButton
  • MapleStanceButton: Class for button like loginButton which uses stance for drawing.
  • MapleFrameButton: Class for button like dice which uses frame for drawing.
  • ClickManager: Manage the click of button.

return;
}

for (let button of buttons) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should use for (const. This also applies to lines 46 and 58.

Copy link
Owner

@johncintron johncintron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does this PR break the login button? By that I mean hovering over it or clicking it has no effect.

Hint: there's something wrong with MapleStanceButton and getRect.

@sedyn
Copy link
Contributor Author

sedyn commented Jun 11, 2018

@johncintron Thank you for review. I fixed problem.
Also, did I use maplebutton class correctly for inheritance?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants