# =====================================================================
# WIKI SYSTEM - modificari in: uitooltip.py
# SetItemToolTipWiki + AppendWikiTooltip + linia "Shift+H".
# Fiecare bloc de mai jos are cateva linii de context (deasupra / dedesubt)
# ca sa gasesti locul. Liniile sunt numerotate dupa fisierul original din Valiant2.
# =====================================================================

# ---------- [1] liniile 894-895 (context 892-897) ----------
			self.AppendTextLine(localeInfo.SHOP_SEARCH_SHORTCUT_SEARCH, centerAlign = False)
			self.AppendSpace(5)
			self.AppendTextLine(localeInfo.WIKI_SEARCH_SHORTCUT_SEARCH, centerAlign = False)
			self.AppendSpace(5)

			if self.interface:

# ---------- [2] liniile 1314-1338 (context 1312-1340) ----------
		self.AddItemData(itemVnum, metinSlot, attrSlot)

	if app.ENABLE_WIKI:
		def SetItemToolTipWiki(self, itemVnum):
			self.itemVnum = itemVnum
			item.SelectItem(itemVnum)
			metinSlot = [0 for i in xrange(player.METIN_SOCKET_MAX_NUM)]
			attrSlot = [(0,0) for i in xrange(player.ATTRIBUTE_SLOT_MAX_NUM)]
			for i in xrange(item.LIMIT_MAX_NUM):
				(limitType, limitValue) = item.GetLimit(i)
				if item.LIMIT_TIMER_BASED_ON_WEAR == limitType:
					metinSlot[0] = limitValue
				elif item.LIMIT_REAL_TIME == limitType or item.LIMIT_REAL_TIME_START_FIRST_USE == limitType:
					metinSlot[0] = app.GetGlobalTimeStamp()+limitValue
			self.SetTitle(item.GetItemName())
			self.AppendDescription(item.GetItemDescription(), 26)
			self.AppendDescription(item.GetItemSummary(), 26, self.CONDITION_COLOR)
			self.__AppendAffectInformation()
			self.__AppendAttributeInformation(attrSlot)
			self.AppendWearableInformation()
			for i in xrange(item.LIMIT_MAX_NUM):
				(limitType, limitValue) = item.GetLimit(i)
				if item.LIMIT_REAL_TIME == limitType:
					if metinSlot[0] > 0:
						self.AppendMallItemLastTime(metinSlot[0])
					break
			self.ShowToolTip()

	def SetItemToolTip(self, itemVnum):

# ---------- [3] liniile 2710-2713 (context 2708-2715) ----------


	def AppendWikiTooltip(self):
		self.AppendSpace(5)
		if app.ENABLE_HIDE_TOOLTIP_EMOJI and systemSetting.GetEmojiStatus():
			self.AppendTextLine(localeInfo.WIKI_SEARCH_SHORTCUT_SEARCH, centerAlign = False)

	def __AppendHairIcon(self, itemVnum):
