Jump to content

BOARD DE TIENDA PRIVADA


Meet

Recommended Posts

Buenas tardes comunidad, estoy con un problema que no puedo solucionar.

Todo parece marchar bien, pongo una tienda, muestra su nombre en la pizarra, viajo de mapa en mapa, vuelvo al mapa comercio, sigue la tienda todo normal... puedo ocultar los carteles de tiendas todo sin problemas. Pero al cerrar el cliente y volverlo a abrir, entro al mapa de comercio o si ya estoy ahi lo que sucede es que desaparecen todas las pizarras como si las ocultara. Pero no estan ocultas, y si toco los botones de mostrar tiendas no tiene ningun efecto. Ahora si, si alguien pone una tienda dps de que yo ya tengo el cliente abierto, ningun problema.

UpdateADBoard <--- este def actualiza la pizarra haciendola visible e invisible, coloque una llamada en el game.py

 

Perdón mi ignorancia pero a este archivo lo tengo con el nombre en minuscula uiOfflineShopBuilder en el root, creo que no lo afecta o si.

uiOfflineShopBuilder.UpdateADBoard(), dejo mi df OnRender(self):

	def OnRender(self):
		app.RenderGame()
		
		if self.console.Console.collision:
			background.RenderCollision()
			chr.RenderCollision()

		(x, y) = app.GetCursorPosition()

		########################
		# Picking
		########################
		textTail.UpdateAllTextTail()

		if TRUE == wndMgr.IsPickedWindow(self.hWnd):

			self.PickingCharacterIndex = chr.Pick()

			if -1 != self.PickingCharacterIndex:
				textTail.ShowCharacterTextTail(self.PickingCharacterIndex)
			if 0 != self.targetBoard.GetTargetVID():
				textTail.ShowCharacterTextTail(self.targetBoard.GetTargetVID())

			# ADD_ALWAYS_SHOW_NAME
			if not self.__IsShowName():
				self.PickingItemIndex = item.Pick()
				if -1 != self.PickingItemIndex:
					textTail.ShowItemTextTail(self.PickingItemIndex)
			# END_OF_ADD_ALWAYS_SHOW_NAME
			
		## Show all name in the range

		if app.ENABLE_GRAPHIC_NAME:
		# ADD_ALWAYS_SHOW_NAME
			if self.__IsShowName():
				textTail.ShowAllTextTail()
				self.PickingItemIndex = textTail.Pick(x, y)
			if self.__IsShowNameItem():
				textTail.ShowJustItemTextTail()
				self.PickingItemIndex = textTail.Pick(x, y)
		# END_OF_ADD_ALWAYS_SHOW_NAME
		else:
		# ADD_ALWAYS_SHOW_NAME
			if self.__IsShowName():
				textTail.ShowAllTextTail()
				self.PickingItemIndex = textTail.Pick(x, y)
		# END_OF_ADD_ALWAYS_SHOW_NAME

		if app.ENABLE_GRAPHIC_ON_OFF:
			if systemSetting.IsShowSalesText():
				uiPrivateShopBuilder.UpdateADBoard()

				if app.ENABLE_OFFLINE_PRIVATE_SHOP_SYSTEM:
					uiOfflineShopBuilder.UpdateADBoard()

		textTail.UpdateShowingTextTail()
		textTail.ArrangeTextTail()
		if -1 != self.PickingItemIndex:
			textTail.SelectItemName(self.PickingItemIndex)

		grp.PopState()
		grp.SetInterfaceRenderState()

		textTail.Render()
		textTail.HideAllTextTail()

gracias comunidad, desde ya.

Link to comment
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...