Jump to content

[NUEVO]Inventario Guapo! :D


Nolberto

Mensajes recomendados

Bueno hola amigos de MZ les traigo un inventario muy diferente a los tradicionales, bueno eso creo yo  :D, para cualquier reclamo u otra cosa, este inventario NO LO HE CREADO YO, como repito solo lo estoy trayendo al foro para que lo disfruteis y bueno si no les gusta, aya ustedes  :)

Ahi les va algunas fotillos :D

Imagen enviada

Imagen enviada

Imagen enviada

BUSCAN EN UI.PY:
def SetCloseEvent(self, event):
self.btnClose.SetEvent(event)


Imagen enviada

Y AGREGAN:

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)



DESPUÉS BUSCAN:
elif Type == "titlebar"
Y AGREGAN:

elif Type == "titlebar2":
parent.Children[index] = TitleBar2()
parent.Children[index].SetParent(parent)
self.LoadElementTitleBar(parent.Children[index], ElementValue, parent)



Imagen enviada
 
 
LUEGO BUSCAR
def LoadElementTitleBar(self, window, value, parentWindow):
Y AGREGAR:

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



Imagen enviada

AHORA LO QUE TANTO ESPERABAN
DESCARGA:

Debes iniciar sesión para ver el contenido del enlace en esta publicación.



EL RAR CONTIENE: LOCALE, ROOT Y UN DIFF PARA EL GAME
 

CRÉDITOS:

maxmi1297

 

;)UN GRACIAS NO LE :lol:HACE MAL A NADIE ¬¬

Enlace para comentar
Compartir en otros sitios

  • 6 years later...

Unirse a la conversación

Puedes publicar ahora y registrarte más tarde. Si tienes una cuenta, regístrate para publicar con su cuenta.

Guest
Responder a este tema...

×   Has pegado contenido con formato .   Eliminar formato

  Only 75 emoji are allowed.

×   Tu enlace se ha incorporado automáticamente.   Mostrar un enlace en su lugar

×   Se ha restaurado el contenido anterior. .   Borrar editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recientemente navegando por este tema   0 miembros

    • No hay usuarios registrados visitando esta página.
×
×
  • Crear nuevo...