Jump to content
  • 0

Button MouseOverIn Event


Frozen

Question

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

3 answers to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • 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.