Jump to content

Recommended Posts

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

 

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,

                        },
                    ),
                },

 

Spoiler

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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.