Jump to content

Recommended Posts

Hello,

I'm trying to call the tabs of new pet window.

 

	window["children"] = window["children"] + [						
		{
			"name" : "PetAttrChange_Page",
			"type" : "window",
			"style" : ("attach",),
			
			"x" : 0,
			"y" : 0,
			
			"width" : 352,
			"height" : 408,
			
			"children" :
			[
				## Pet Attr Change UI BG
				{ "name" : "PetAttrChangeUIBG", "type" : "expanded_image", "style" : ("attach",), "x" : 0, "y" : 0, "image" : "d:/ymir work/ui/pet/res/Pet_UI_bg2.tga" },
				
				## Pet Information Title
				{ 
					"name" : "TitleAttrChangeWindow", "type" : "window", "x" : 10, "y" : 10, "width" : PET_UI_BG_WIDTH-10-15, "height" : 15, "style" : ("attach",),
					"children" :
					(
						{"name":"TitleName", "type":"text", "x":0, "y":0, "text":uiScriptLocale.PET_INFORMATION_TITLE, "all_align" : "center"},
					),	
				},
				
				## Close Button
				{ 
					"name" : "ClosePetChangeWndButton", 
					"type" : "button", 
					"x" : PET_UI_BG_WIDTH -10-15, 
					"y" : 10, 
					"tooltip_text" : uiScriptLocale.CLOSE, 
					"default_image" : "d:/ymir work/ui/public/close_button_01.sub",	
					"over_image" : "d:/ymir work/ui/public/close_button_02.sub",
					"down_image" : "d:/ymir work/ui/public/close_button_03.sub",
				},	

(...)


I did like this:
                wndPetInfoPage = self.GetChild("PetInfo_Page")
                wndPetAttrChange = self.GetChild("PetAttrChange_Page")

I have this syserr:
petInformationWindow.LoadWindow.BindObject - <type 'exceptions.KeyError'>:'PetAttrChange_Page'

Someone know why?

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

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.