Inventar nou metin2

Închis
Avatar utilizator
Lucian Hritcu
Mister Just4Metin

Mister Just4Metin
Mesaje: 370
Membru din: 11 Dec 2013, 07:52
Server: ► #Sexolog
Regat: Jinno
Aprecieri: 32  
Mulţumiri: 61  
 Contact:
Medalii

Imagine Imagine Imagine Download:
Parola: ByAlaska32Work

Despachetati root si cautati ui.py apoi editatil cu notepad++
In el cautati

Cod: Selectaţi tot

def SetCloseEvent(self, event):
self.btnClose.SetEvent(event)
si adaugati:

Cod: Selectaţi tot

class TitleBar2(Window):

BLOCK_WIDTH = 32
BLOCK_HEIGHT = 23

def __init__(self):
Window.__init__(self)
self.AddFlag("attach")

def __del__(self):
Window.__del__(self)

def MakeTitleBar(self, width, color):

## ÇöŔç Color´Â »çżëÇϰí ŔÖÁö ľĘŔ˝

width = max(64, width)

imgLeft = ImageBox()
imgCenter = ExpandedImageBox()
imgRight = ImageBox()
imgLeft.AddFlag("not_pick")
imgCenter.AddFlag("not_pick")
imgRight.AddFlag("not_pick")
imgLeft.SetParent(self)
imgCenter.SetParent(self)
imgRight.SetParent(self)

if locale.IsARABIC():
imgLeft.LoadImage("locale/ae/ui/pattern/titlebar_left.tga")
imgCenter.LoadImage("locale/ae/ui/pattern/titlebar_center.tga")
imgRight.LoadImage("locale/ae/ui/pattern/titlebar_right.tga")
else:
imgLeft.LoadImage("locale/yang.tga")
imgCenter.LoadImage("locale/yang.tga")
imgRight.LoadImage("locale/yang.tga")

imgLeft.Show()
imgCenter.Show()
imgRight.Show()

btnClose = Button()
btnClose.SetParent(self)
btnClose.SetUpVisual("locale/1close.tga")
btnClose.SetOverVisual("locale/2close.tga")
btnClose.SetDownVisual("locale/1close.tga")
btnClose.SetToolTipText(locale.UI_CLOSE, 0, -23)
btnClose.Show()

self.imgLeft = imgLeft
self.imgCenter = imgCenter
self.imgRight = imgRight
self.btnClose = btnClose

self.SetWidth(width)
Imagine Tot in ui.py cautati :
search: elif Type == "titlebar":
si adaugati:

Cod: Selectaţi tot

elif Type == "titlebar2":
parent.Children[Index] = TitleBar2()
parent.Children[Index].SetParent(parent)
self.LoadElementTitleBar(parent.Children[Index], ElementValue, parent)
[img]http://i.imgur.com/UWSgFoE.png [/img]
Cautati:
Cautati:
def LoadElementTitleBar(self, window, value, parentWindow):
adaugati

Cod: Selectaţi tot

def LoadElementTitleBar2(self, window, value, parentWindow):

if FALSE == self.CheckKeyList(value["name"], value, self.TITLE_BAR_KEY_LIST):
return FALSE

window.MakeTitleBar(int(value["width"]), value.get("color", "red"))
self.LoadDefaultData(window, value, parentWindow)

return TRUE
Imagine[/font][/b]
Imagine
Afișează semnătura
Avatar utilizator
M. Andrei - Marian
Veteran

Veteran
Mesaje: 5692
Membru din: 05 Ian 2016, 15:30
Aprecieri: 302  
Mulţumiri: 958  
Medalii

Lucian Hritcu scrie:Imagine Imagine Imagine Download:
Parola: ByAlaska32Work

Despachetati root si cautati ui.py apoi editatil cu notepad++
In el cautati

Cod: Selectaţi tot

def SetCloseEvent(self, event):
self.btnClose.SetEvent(event)
si adaugati:

Cod: Selectaţi tot

class TitleBar2(Window):

BLOCK_WIDTH = 32
BLOCK_HEIGHT = 23

def __init__(self):
Window.__init__(self)
self.AddFlag("attach")

def __del__(self):
Window.__del__(self)

def MakeTitleBar(self, width, color):

## ÇöŔç Color´Â »çżëÇϰí ŔÖÁö ľĘŔ˝

width = max(64, width)

imgLeft = ImageBox()
imgCenter = ExpandedImageBox()
imgRight = ImageBox()
imgLeft.AddFlag("not_pick")
imgCenter.AddFlag("not_pick")
imgRight.AddFlag("not_pick")
imgLeft.SetParent(self)
imgCenter.SetParent(self)
imgRight.SetParent(self)

if locale.IsARABIC():
imgLeft.LoadImage("locale/ae/ui/pattern/titlebar_left.tga")
imgCenter.LoadImage("locale/ae/ui/pattern/titlebar_center.tga")
imgRight.LoadImage("locale/ae/ui/pattern/titlebar_right.tga")
else:
imgLeft.LoadImage("locale/yang.tga")
imgCenter.LoadImage("locale/yang.tga")
imgRight.LoadImage("locale/yang.tga")

imgLeft.Show()
imgCenter.Show()
imgRight.Show()

btnClose = Button()
btnClose.SetParent(self)
btnClose.SetUpVisual("locale/1close.tga")
btnClose.SetOverVisual("locale/2close.tga")
btnClose.SetDownVisual("locale/1close.tga")
btnClose.SetToolTipText(locale.UI_CLOSE, 0, -23)
btnClose.Show()

self.imgLeft = imgLeft
self.imgCenter = imgCenter
self.imgRight = imgRight
self.btnClose = btnClose

self.SetWidth(width)
Imagine Tot in ui.py cautati :
search: elif Type == "titlebar":
si adaugati:

Cod: Selectaţi tot

elif Type == "titlebar2":
parent.Children[Index] = TitleBar2()
parent.Children[Index].SetParent(parent)
self.LoadElementTitleBar(parent.Children[Index], ElementValue, parent)
[img]http://i.imgur.com/UWSgFoE.png [/img]
Cautati:
Cautati:
def LoadElementTitleBar(self, window, value, parentWindow):
adaugati

Cod: Selectaţi tot

def LoadElementTitleBar2(self, window, value, parentWindow):

if FALSE == self.CheckKeyList(value["name"], value, self.TITLE_BAR_KEY_LIST):
return FALSE

window.MakeTitleBar(int(value["width"]), value.get("color", "red"))
self.LoadDefaultData(window, value, parentWindow)

return TRUE
Imagine[/font][/b]
Mulțumim pentru postare, însă această resursă este postată încă din anul 2014.
Link: http://just4metin.ro/altele/inventar-nou-t4305.html

Acest subiect este arhivat!

[ Postat de pe Android ] Imagine
Închis
Răspunsuri
2
Vizualizări
256
Răspunsuri
4
Vizualizări
341
Răspunsuri
0
Vizualizări
135
Răspunsuri
2
Vizualizări
357

Înapoi la “Arhivă”

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 24 vizitatori