Jump to content

Ceettosa

Inactive Member
  • Posts

    27
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by Ceettosa

  1. class MallPageDialog(ui.ScriptWindow):
    	def __init__(self):
    		ui.ScriptWindow.__init__(self)
    
    	def __del__(self):
    		ui.ScriptWindow.__del__(self)
    
    	def Destroy(self):
    		self.ClearDictionary()
    
    	def Open(self):
    		#scriptLoader = ui.PythonScriptLoader()
    		#scriptLoader.LoadScriptFile(self, "uiscript/mallpagedialog.py")
    
    		self.GetChild("titlebar").SetCloseEvent(ui.__mem_func__(self.Close))
    		
    		(x, y)=self.GetGlobalPosition()
    		x+=10
    		y+=30
    		
    		MALL_PAGE_WIDTH = 600
    		MALL_PAGE_HEIGHT = 480
    		
    		app.ShowWebPage(
    			"https://www.google.com/", 
    			(x, y, x+MALL_PAGE_WIDTH, y+MALL_PAGE_HEIGHT))
    
    		self.Lock()
    		self.Show()
    		
    	def Close(self):			
    		app.HideWebPage()
    		self.Unlock()
    		self.Hide()
    		
    	def OnPressEscapeKey(self):
    		self.Close()
    		return True

     

    https://metin2.download/picture/ecoYjwpw3QFFCzAu0XzQdIhvr154sC12/.png

    But somehow it is looking for (ishop) instead of google.com. Can someone tell me where i have to make other changes? Im using the files from @ TMP4

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