Skocz do zawartości

Szukam lepszego wyświetlania posiadanych ilości sztuk przedmiotu

Featured Replies

Rozwiązane przez Draha

Przejdź do rozwiązania
Opublikowano
  • Rozwiązanie

No to jazda.. (Nie testowałem, pisałem od buta ale powinno śmigać :)))



uiToolTip.py
 

Spoiler
Func: 

def SetInventoryItem(self, slotIndex, window_type = player.INVENTORY):
	...

	self.ClearToolTip()

	count = player.GetItemCount(window_type, slotIndex)


	...

	
	self.AddItemData(..., count = count)


Func:

	def SetExchangeOwnerItem(self, slotIndex):
		...

		self.ClearToolTip()

		count = exchange.GetItemCountFromSelf(slotIndex)

		self.AddItemData(..., count = count)

Func:

	def SetExchangeTargetItem(self, slotIndex):
		...

		self.ClearToolTip()

		count = exchange.GetItemMetinSocketFromTarget(slotIndex)

		self.AddItemData(..., count = count)

Func:

	def SetSafeBoxItem(self, slotIndex):
		...

		self.ClearToolTip()

		count = safebox.GetItemCount(slotIndex)

		self.AddItemData(..., count = count)

Func:

	def SetMallItem(self, slotIndex):
		...

		self.ClearToolTip()

		count = safebox.GetMallItemCount(slotIndex)

		self.AddItemData(..., count = count)

Func:

	def AddItemData(..., count = 1):
		..

		## Przed 
		self.ShowToolTip()

		## Dodaj
		self.AppendTextLine("Quantity:")
		self.AppendSpace(2)
		self.AppendTextLine("{}".format(count))
		
		
		
		

 

Edytowane przez Draha

Opublikowano
  • Autor
8 godzin temu, Draha napisał(a):

No to jazda.. (Nie testowałem, pisałem od buta ale powinno śmigać :)))



uiToolTip.py
 

  Pokaż ukrytą zawartość
Func: 

def SetInventoryItem(self, slotIndex, window_type = player.INVENTORY):
	...

	self.ClearToolTip()

	count = player.GetItemCount(window_type, slotIndex)


	...

	
	self.AddItemData(..., count = count)


Func:

	def SetExchangeOwnerItem(self, slotIndex):
		...

		self.ClearToolTip()

		count = exchange.GetItemCountFromSelf(slotIndex)

		self.AddItemData(..., count = count)

Func:

	def SetExchangeTargetItem(self, slotIndex):
		...

		self.ClearToolTip()

		count = exchange.GetItemMetinSocketFromTarget(slotIndex)

		self.AddItemData(..., count = count)

Func:

	def SetSafeBoxItem(self, slotIndex):
		...

		self.ClearToolTip()

		count = safebox.GetItemCount(slotIndex)

		self.AddItemData(..., count = count)

Func:

	def SetMallItem(self, slotIndex):
		...

		self.ClearToolTip()

		count = safebox.GetMallItemCount(slotIndex)

		self.AddItemData(..., count = count)

Func:

	def AddItemData(..., count = 1):
		..

		## Przed 
		self.ShowToolTip()

		## Dodaj
		self.AppendTextLine("Quantity:")
		self.AppendSpace(2)
		self.AppendTextLine("{}".format(count))
		
		
		
		

 

image.png.8c781660d5f4a473346db18e702a0b48.png

Działa! Dziękuję za kodzik.

Edytowane przez ExoCarossa