Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Making a "Hold Shift For Info" function for item tooltips [UNSOLVED] [1.7.10]


TheEpicTekkit
 Share

Recommended Posts

Hello, I am trying to figure out how to make a 'Hold Shift for Info" function for a tooltip, but I cant seem to find any info about this on the internet, so my last resource is here... I already have the tooltip done, but I only want it to show when I press shift.

 

Thanks for the help.

I ask complicated questions, and apparently like to write really long detailed posts. But I also help others when I can.

Link to comment
Share on other sites

Okay, so I do want the info button to be the sneak key, so if the player changes it, that is the new button to hold, so I don't want to do the keyboard.isKeyDown thing.

 

But I have a problem; player.isSneaking() doesn't work.... I am using the EntityPlayer in the addInformation() method. I am assuming that the isSneaking() method doesn't work in inventories, because, I guess that it was never intended to be used in guis.

I ask complicated questions, and apparently like to write really long detailed posts. But I also help others when I can.

Link to comment
Share on other sites

There is no keyBindSneak method in gemeRegistry.... after I type the "." and eclipse brings up a list of methods, if I press k, it disappears, so there isn't even a method that starts with k.

I ask complicated questions, and apparently like to write really long detailed posts. But I also help others when I can.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.