Cod: Selectaţi tot
if miniMap.IsAtlas():
self.tooltipAtlasOpen.SetText(locale.MINIMAP_SHOW_AREAMAP)Cod: Selectaţi tot
self.VectorsF = MapTextToolTip()
self.VectorsF.SetText("xxMt2 Facebook Sayfasi")
self.VectorsF.Show()
self.VectorsT = MapTextToolTip()
self.VectorsT.SetText("xxMt2 Twitter Sayfasi")
self.VectorsT.Show()
self.VectorsY = MapTextToolTip()
self.VectorsY.SetText("xxMt2 Youtube Adresi")
self.VectorsY.Show()
self.VectorsS = MapTextToolTip()
self.VectorsS.SetText("xxMt2 Site Adresi")
self.VectorsS.Show()Cod: Selectaţi tot
self.serverInfo = NoneCod: Selectaţi tot
self.Facebook = 0
self.Twitter = 0
self.Youtube = 0
self.Site = 0
self.VectorsF = 0
self.VectorsT = 0
self.VectorsY = 0
self.VectorsS = 0Cod: Selectaţi tot
self.serverInfo = self.GetChild("ServerInfo")Cod: Selectaţi tot
self.Facebook = self.GetChild("Facebook")
self.Twitter = self.GetChild("Twitter")
self.Youtube = self.GetChild("Youtube")
self.Site = self.GetChild("Site")Cod: Selectaţi tot
self.MiniMapShowButton.SetEvent(ui.__mem_func__(self.ShowMiniMap))Cod: Selectaţi tot
self.Facebook.SetEvent(ui.__mem_func__(self.Vectors))
self.Twitter.SetEvent(ui.__mem_func__(self.Vectors1))
self.Youtube.SetEvent(ui.__mem_func__(self.Vectors2))
self.Site.SetEvent(ui.__mem_func__(self.Vectors3))Cod: Selectaţi tot
self.tooltipAtlasOpen.SetTooltipPosition(ButtonPosX, ButtonPosY)11.Caută :
Cod: Selectaţi tot
self.tooltipAtlasOpen.Hide()Cod: Selectaţi tot
if TRUE == self.Facebook.IsIn():
self.VectorsF.Show()
else:
self.VectorsF.Hide()
if TRUE == self.Twitter.IsIn():
self.VectorsT.Show()
else:
self.VectorsT.Hide()
if TRUE == self.Youtube.IsIn():
self.VectorsY.Show()
else:
self.VectorsY.Hide()
if TRUE == self.Site.IsIn():
self.VectorsS.Show()
else:
self.VectorsS.Hide()Cod: Selectaţi tot
def ToggleAtlasWindow(self):Cod: Selectaţi tot
def Vectors(self):
import os
os.startfile('http://www.facebook.com')
def Vectors1(self):
import os
os.startfile('http://www.twitter.com')
def Vectors2(self):
import os
os.startfile('http://www.youtube.com')
def Vectors3(self):
import os
os.startfile('http://www.site.com')16.Intrăm în : uiscript - minimap.py și căutăm :
Cod: Selectaţi tot
"name" : "MiniMapWindow",Cod: Selectaţi tot
{
"name" : "Facebook",
"type" : "button",
"x" : -3,
"y" : 45,
"default_image" : "Sosyal/face.tga",
"over_image" : "Sosyal/face1.tga",
"down_image" : "Sosyal/face.tga",
},
{
"name" : "Twitter",
"type" : "button",
"x" : -5,
"y" : 70,
"default_image" : "Sosyal/twit.tga",
"over_image" : "Sosyal/twit1.tga",
"down_image" : "Sosyal/twit.tga",
},
{
"name" : "Youtube",
"type" : "button",
"x" : 5,
"y" : 95,
"default_image" : "Sosyal/you.tga",
"over_image" : "Sosyal/you1.tga",
"down_image" : "Sosyal/you.tga",
},
{
"name" : "Site",
"type" : "button",
"x" : 23,
"y" : 110,
"default_image" : "Sosyal/site.tga",
"over_image" : "Sosyal/site1.tga",
"down_image" : "Sosyal/site.tga",
},







