Jump to content

Button MouseOverIn Event


Go to solution Solved by ѕeмa™,

Recommended Posts

Hey,

I am making making a python system in metin2, and i wanted to execute a function when you put your mouse over a button. 

I tried using this code:

for i in range(3):  #i am using multiple buttons
     self.Button[i].OnMouseOverIn = lambda: self.__OverInEffect(i)
     self.Button[i].OnMouseOverOut = lambda: self.__OverOutEffect(i)

But i can´t make it work... does anyone have an idea to make a Button MouseOverIn event working?

 

Thanks a lot for the attention,

Kind Regards,

Frozen

  • Love 1
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.