Jump to content

[BUG]Render Target + Compare Item Tooltip


Recommended Posts

  • Management

Sup bois

 

The other day I implemented the Compare Item Tooltip:

And today the Render Target:

 

I already new it would make some kind of problem, but wasn't sure how bad.

 

This is the result when using the ALT key:

 

When using ALT it shows me twice the equipped weapon. My idea would be not show the equipped weapon render and move the render target of the weapon I'm viewing the tooltip beside the equipped weapon tooltip, something like this bad preview:

 

SHvgPqI.jpg

 

Anyone knows how to solve it?

 

Thank you

 

EDIT: Solved a little bit, but still can't figure it out...

 

k6ybehX.gif

 

Search for: def SetInventoryItem(self, slotIndex, window_type = player.INVENTORY, CompareItem = True):

Replace: def SetInventoryItem(self, slotIndex, window_type = player.INVENTORY, CompareItem = True, preview = 1):


Search for (on SetInventoryItem function): self.AddItemData(itemVnum, metinSlot, attrSlot, 1)

Replace: self.AddItemData(itemVnum, metinSlot, attrSlot, preview)


Search for (on SetCompareItem function): self.CompareTooltip.SetInventoryItem(slotIndex, player.INVENTORY, False)

Replace: self.CompareTooltip.SetInventoryItem(slotIndex, player.INVENTORY, False, 0)

 

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 1

raw

raw

Link to comment
Share on other sites

  • 2 months later...

Change:

if app.__COMPARE_TOOLTIP__ and app.IsPressed(app.DIK_LSHIFT) and not slotIndex >= player.EQUIPMENT_SLOT_START and CompareItem:
			self.SetCompareItem(itemVnum)

to:

if app.__COMPARE_TOOLTIP__ and app.IsPressed(app.DIK_LSHIFT) and not slotIndex >= player.EQUIPMENT_SLOT_START and CompareItem:
			self.__ModelPreviewClose()
			self.SetCompareItem(itemVnum)

Notice: your default button may be different, mine is left shift.

Capture.png

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

  • 3 weeks later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 11

      Metin2 Closed Beta Content (2003-2004)

    2. 11

      Metin2 Closed Beta Content (2003-2004)

    3. 0

      Football Ground

    4. 11

      Metin2 Closed Beta Content (2003-2004)

    5. 0

      Error compile binary Zentoria2

    6. 11

      Metin2 Closed Beta Content (2003-2004)

  • 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.