Jump to content
LovePlay

interface [KillGui] New Design + (Hide-Show)

Recommended Posts

Hola, antes que nada queria pedir a todos por si ofendi a alguien.. 

 

Tambien pedir perdon a Shakelum.., supongo que me deje llevar un poco ..

 

Espero que me perdonen por estos ultimos momentos mios.

 

 

Hoy os draigo un KillGui, diseñado por mi, python por DeuS, y mejorado por Felipe Ard.

 

 

Imagen enviada

 

Imagen enviada

 

- Como implementarlo -

 

 

Vamos a game.py y debajo de :
 

class GameWindow(ui.ScriptWindow):	def __init__(self, stream):		ui.ScriptWindow.__init__(self, "GAME")		self.SetWindowName("game")		net.SetPhaseWindow(net.PHASE_WINDOW_GAME, self)		player.SetGameWindow(self)		self.quickSlotPageIndex = 0		self.lastPKModeSendedTime = 0		self.pressNumber = None		self.guildWarQuestionDialog = None		self.interface = None		self.targetBoard = None		self.console = None		self.mapNameShower = None		self.affectShower = None		self.playerGauge = None		self.petInventoryWnd = None		self.petButtonWnd = None		self.stream=stream		self.interface = interfaceModule.Interface()		self.interface.MakeInterface()		self.interface.ShowDefaultWindows()		self.curtain = uiPhaseCurtain.PhaseCurtain()		self.curtain.speed = 0.03		self.curtain.Hide()		self.targetBoard = uiTarget.TargetBoard()		self.targetBoard.SetWhisperEvent(ui.__mem_func__(self.interface.OpenWhisperDialog))		self.targetBoard.Hide()		self.console = consoleModule.ConsoleWindow()		self.console.BindGameClass(self)		self.console.SetConsoleSize(wndMgr.GetScreenWidth(), 200)		self.console.Hide()

Ponemos esto:

		##START_KILLGUI		KillGuiBg = ui.ImageBox()		KillGuiBg.LoadImage("d:/ymir work/ui/v1.dds")		self.KillGuiBg = KillGuiBg				self.KillGuiBg.SetPosition(-166,465)		self.KillGuiBg.Show()				self.KillGuiBg_open = ui.Button()		self.KillGuiBg_open.SetPosition(+11,570)		self.KillGuiBg_open.SetUpVisual('d:/ymir work/ui/abrir_kg.tga')		self.KillGuiBg_open.SetOverVisual('d:/ymir work/ui/abrir_raton_kg.tga')		self.KillGuiBg_open.SetDownVisual('d:/ymir work/ui/abrir_pulsado_kg.tga')		self.KillGuiBg_open.SetEvent(self.__OpenKillGui)		self.KillGuiBg_open.Show()						self.KillGuiBg_close = ui.Button()		self.KillGuiBg_close.SetPosition(+178,570)		self.KillGuiBg_close.SetUpVisual('d:/ymir work/ui/cerrar_kg.tga')		self.KillGuiBg_close.SetOverVisual('d:/ymir work/ui/cerrar_raton_kg.tga')		self.KillGuiBg_close.SetDownVisual('d:/ymir work/ui/cerrar_pulsado_kg.tga')		self.KillGuiBg_close.SetEvent(self.__CloseKillGui)		self.KillGuiBg_close.Hide()							self.KillBlauReich = ui.TextLine()		self.KillBlauReich.SetDefaultFontName()		self.KillBlauReich.SetPosition(40,535)		self.KillBlauReich.SetText("Jinno: ")		self.KillBlauReich.SetFontColor(253,250,5)		self.KillBlauReich.SetOutline()		#self.KillBlauReich.SetEvent(self.__KillBlauReich)		self.KillBlauReich.Hide()				self.KillGelbReich = ui.TextLine()		self.KillGelbReich.SetDefaultFontName()		self.KillGelbReich.SetPosition(40, 565)		self.KillGelbReich.SetText("Chunjo: ")		self.KillGelbReich.SetFontColor(17,5,253)		self.KillGelbReich.SetOutline()		#self.KillGelbReich.SetEvent(self.__KillGelbReich)		self.KillGelbReich.Hide()				self.KillRotReich = ui.TextLine()		self.KillRotReich.SetDefaultFontName()		self.KillRotReich.SetPosition(40, 595)		self.KillRotReich.SetText("Shinsoo: ")		self.KillRotReich.SetFontColor(50,0,0)		self.KillRotReich.SetOutline()		#self.KillRotReich.SetEvent(self.__KillRotReich)		self.KillRotReich.Hide()			self.KillMob = ui.TextLine()		self.KillMob.SetDefaultFontName()		self.KillMob.SetPosition(40, 625)		self.KillMob.SetText("Mounstruos: ")		self.KillMob.SetOutline()		#self.KillMob.SetEvent(self.__KillMob)		self.KillMob.Hide()

Debajo de :

		app.HideCursor()

Ponemos: 

		self.KillGuiBg.Hide()		self.KillBlauReich.Hide()		self.KillGelbReich.Hide()		self.KillRotReich.Hide()		self.KillMob.Hide()		self.KillGuiBg_close.Hide()

Debajo de:

		self.interface.BUILD_OnUpdate()

Ponemos :

	def __hidekillgui(self):		self.KillGuiBg.Hide()		self.KillBlauReich.Hide()		self.KillGelbReich.Hide()		self.KillRotReich.Hide()		self.KillMob.Hide()			def __showkillgui(self):		self.KillGuiBg.Show()		self.KillBlauReich.Show()		self.KillGelbReich.Show()		self.KillRotReich.Show()		self.KillMob.Show()			def __KillBlauReich(self, KillBlauReich):		self.KillBlauReich.SetText("Jinno:  " + KillBlauReich)		def __KillGelbReich(self, KillGelbReich):		self.KillGelbReich.SetText("Chunjo:  " + KillGelbReich)		def __KillRotReich(self, KillRotReich):		self.KillRotReich.SetText("Shinsoo:  " + KillRotReich)			def __KillMob(self, KillMob):		self.KillMob.SetText("Monster:    " + KillMob)			def __OpenKillGui(self):		self.KillGuiBg_open.Hide()		self.KillBlauReich.Show()		self.KillGelbReich.Show()		self.KillRotReich.Show()		self.KillMob.Show()		self.KillGuiBg.SetPosition(+1,465)		self.KillGuiBg_close.Show()			def __CloseKillGui(self):		self.KillGuiBg_close.Hide()		self.KillBlauReich.Hide()		self.KillGelbReich.Hide()		self.KillRotReich.Hide()		self.KillMob.Hide()		self.KillGuiBg.SetPosition(-166,465)		self.KillGuiBg_open.Show()	

Debajo de:

			# ITEM_MALL			"CloseMall"				: self.CommandCloseMall,			"ShowMeMallPassword"	: self.AskMallPassword,			"item_mall"				: self.__ItemMall_Open,			# END_OF_ITEM_MALL

Ponemos:

			##KILLGUI			"ShowKillGui"			: self.__showkillgui,			"HideKillGui"			: self.__hidekillgui,			"KillBlauReich"			: self.__KillBlauReich,			"KillGelbReich"			: self.__KillGelbReich,			"KillRotReich"			: self.__KillRotReich,			"KillMob"				: self.__KillMob,			##END_KILLGUI

Y aqui os dejo los .tga, si quereis tambien os dejo el psd, me lo pediis y os lo adjunto.

 

Se coloca en ETC/ ymir work / ui/

 

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

 

La quest : 

(Tambien la hizo DeuS)

quest killgui begin     state start begin         when kill begin             if npc.is_pc() then                 local new_point = pc.getqf("empire"..npc.get_empire())+1                 pc.setqf("empire"..npc.get_empire(), new_point)                 cmdchat("KillRotReich "..pc.getqf("empire1"))                 cmdchat("KillGelbReich "..pc.getqf("empire2"))                 cmdchat("KillBlauReich "..pc.getqf("empire3"))             else                 local new_point = pc.getqf("mob")+1                 pc.setqf("mob", new_point)                 cmdchat("KillMob "..pc.getqf("mob"))             end         end         when login begin             cmdchat("KillRotReich "..pc.getqf("empire1"))             cmdchat("KillGelbReich "..pc.getqf("empire2"))             cmdchat("KillBlauReich "..pc.getqf("empire3"))             cmdchat("KillMob "..pc.getqf("mob"))         end     end end 

Y vuelvo a pedir perdona a todos

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

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


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...