Jump to content
For maintenance and updates, the community will be offline on 31 December 2022 ×
  • 0

ShopEX editing price tooltip



Hi all, wish you all a great day. I have installed ShopEX Renewal by Mali and I would like to ask some silly questions. As you can see in the screenshot the item picture is not centered. Why could that be?

Also I would like to edit the tooltip in a way that everything show up in a single line like on Aeldra. How may I do that.

How it is now:



How I want it to be:



My uitooltip for ShopEX

		def SetShopItemByShopEx(self, slotIndex, type):
			itemVnum = shop.GetItemID(slotIndex)
			PriceVnum = shop.GetItemPriceVnum(slotIndex)
			if itemVnum == 0 or (PriceVnum == 0 and type == shop.SHOPEX_ITEM):
			price = shop.GetItemPrice(slotIndex)
			self.isShopItem = True
			metinSlot = []
			for i in xrange(player.METIN_SOCKET_MAX_NUM):
				metinSlot.append(shop.GetItemMetinSocket(slotIndex, i))
			attrSlot = []
			for i in xrange(player.ATTRIBUTE_SLOT_MAX_NUM):
				attrSlot.append(shop.GetItemAttribute(slotIndex, i))
			self.AddItemData(itemVnum, metinSlot, attrSlot)
			if type == shop.SHOPEX_ITEM:
				self.AddSHOPEXItem(PriceVnum, price)
				self.AppendTextLine(localeInfo.TOOLTIP_BUYPRICE  % (localeInfo.NumberToShopEXP(price)), self.GetPriceColor(price))

		def AddSHOPEXItem(self, itemVnum, price):
			name = "%dx %s" % (price, item.GetItemName())
			self.AutoAppendTextLine(name, self.NORMAL_COLOR)
			itemImage = ui.ImageBox()
			itemImage.SetPosition(75, self.toolTipHeight)
			self.toolTipHeight += itemImage.GetHeight() - 10


Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • Answers 0
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Activity

    1. 1

      Costume shining/costume effect system

    2. 992

      [40250] Reference Serverfile + Client + Src [15 Available Languages]

    3. 3

      Biologist Manager (C++ & LUA)

    4. 3

      Visual studio 2022 compiling issue

    5. 63

      Metin2 | Mount System Renewal

    6. 58

      Metin2 2004 Beta Client

    7. 0

      🔥Paradise2 PVP SERVER GLOBAL!! EN-ES-PT 🕐📢Apertura 11 de diciembre 21 horas de España!

  • Recently Browsing

    • No registered users viewing this page.
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.