Jump to content
  • We need you!

    You must register to discover all the features of our community!

  • 0

[BUG]Render Target + Compare Item Tooltip


Karbust

Question

  • VIP
Posted (edited)

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 Karbust (see edit history)

QJ0orbR.png

Logo M2IconDB

Link to post

2 answers to this question

Recommended Posts

  • 0

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

Link to post

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


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