Posted April 22, 20205 yr Hi, I've got some arrows in an ImageButton made from a ResourceLocation. Is there a way to rotate them - either at creation or rendering (it doesn't matter)? I am using the constructor public ImageButton(int xIn, int yIn, int widthIn, int heightIn, int xTexStartIn, int yTexStartIn, int yDiffTextIn, ResourceLocation resourceLocationIn, Button.IPressable onPressIn) Is there a different constructor that I could use? Or some way of modifying the ResourceLocation? They are just rendered with super.render(...). Thanks in advance. If it came to it, I could rotate the arrows on the file but it would be useful if I could do it dynamically.
April 22, 20205 yr Author Update: I've been looking at the Texture class and think I should use that - but I can't find a transformer for it
April 22, 20205 yr Why not use a separate area of the texture? Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
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.