Jump to content
  • We need you!

    You must register to discover all the features of our community!

  • 0

Exit Button


ilovegreendays

Question

My client in login phase dont have exit button, i added the button but dont know how to put the function for exit game on it. I tryed taking code of intrologin.py of exit button function of another client but give me error...

https://imgur.com/a/B0I7Zny

 

Code of button i created

                {
                    "name" : "LoginExitButton",
                    "type" : "button",

                    "x": 27,
                    "y": SCREEN_HEIGHT-90,

                    "default_image": kiro_interface.PATCH + "buttons/btn_normal.png",
                    "over_image": kiro_interface.PATCH + "buttons/btn_active.png",
                    "down_image": kiro_interface.PATCH + "buttons/btn_hover.png",
                    "disable_image": kiro_interface.PATCH + "buttons/btn_disabled.png",
                    "children" :
                    (
                        {
                            "name": "fontButton",
                            "type": "text",

                            "x": -25,
                            "y": 7,
                    
                            "fontname" : "Tahoma Bold:16.5",
                            "horizontal_align": "center",
                            "text" : localeInfo.SIGN_OFF,
                            "color" : 0xffa3c7c1,

                        },
                    ),
                },

 

https://imgur.com/a/B0I7Zny

Link to post

1 answer 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


  • Current Donation Goals

  • Activity

    1. 11

      Mysql56 to Mysql8

    2. 0

      Does anyone have Kami-Sama's Contact?

    3. 1

      [Trailer][1/3]NerviL2 The return of the Legend

    4. 0

      Won " price" change

    5. 10

      Inferna - The new "metin3"?

    6. 6

      We need you!

    7. 2

      Highlight system bug

  • Recently Browsing

    No registered users viewing this page.

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