Posted April 3, 201510 yr I want to add my button a tooltip. (For display a recipe)The button's source code: https://github.com/laci200270/Minecraft-Modular-Suits-mod/blob/master/src/main/java/hu/laci200270/mods/modularsuits/client/gui/ModuleAddButton.java Sorry for my English
April 3, 201510 yr There is a class called HoverChecker for checking if mouse is hovering an area. You can create it using a GuiButton, and in the method 'drawScreen' check for hovering using the class, and draw the tooltip there using the method: GuiScreen#func_146283_a(List strings, int x, int y). I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP) II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.
April 3, 201510 yr Author GuiScreen#func_146283_a(List strings, int x, int y). Eclipse can't find this method: func_146283_a(List strings, int x, int y) Sorry for my English
April 3, 201510 yr Author There is a class called HoverChecker for checking if mouse is hovering an area. You can create it using a GuiButton, and in the method 'drawScreen' check for hovering using the class, and draw the tooltip there using the method: GuiScreen#func_146283_a(List strings, int x, int y). drawHoveringText works. Thanks! Sorry for my English
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.