loginwindow.py
PHP Code:
## RegisterBoard
{
"name" : "RegisterBoard",
"type" : "thinboard",
"x" : (SCREEN_WIDTH - 208) / 2,
"y" : (SCREEN_HEIGHT - 410 - 93),
"width" : 208,
"height" : 55,
"children" :
(
{
"name" : "Register",
"type" : "text",
"x" : 50,
"y" : -10,
"vertical_align" : "center",
"text_vertical_align" : "center",
"text" : uiScriptLocale.LOGIN_REGISTER_MESSAGE,
},
{
"name" : "RegisterButton",
"type" : "button",
"x" : 15,
"y" : 10,
"vertical_align" : "center",
"default_image" : "d:/ymir work/ui/public/xlarge_button_01.sub",
"over_image" : "d:/ymir work/ui/public/xlarge_button_02.sub",
"down_image" : "d:/ymir work/ui/public/xlarge_button_03.sub",
"text" : uiScriptLocale.LOGIN_REGISTER_BUTTON,
"text_color" : 0xffF8BF24,
},
),
},
PHP Code:
def __OnClickRegisterButton(self):
self.wndWeb = uiWeb.WebWindow()
self.wndWeb.LoadWindow()
self.wndWeb.Hide()
self.wndWeb.Open("http://site.com/reg_page.php")
self.wndChat.CloseChat()