Jump to content

PurePlugins

Members
  • Posts

    9
  • Joined

  • Last visited

PurePlugins's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. you mean like 10% from the top, 15% from the right? would that work? how would I go about doing that with the scaling
  2. I'm not sure how else to do it, any ideas?
  3. the way I understand it is when initGui is called the buttons are reconstructed with the new scaled height and width. but how can I do this in my case when the components are constructed once? https://a.pomf.cat/uismzl.mp4
  4. I guess I'm just not sure how to scale it at all
  5. The code I sent is only used to position the components at first launch, the user can move any component on the screen to their liking, I'm unsure how to scale the X & Y when I have no idea where it will be.
  6. I'm not sure how to change the topic on this forum, this mod is not strictly for 1.7.10 it's for 1.7.10 - 1.11.2 And yes, it's not the regular gui, it's a custom component system. The question I have is how can I scale an x and y position on the screen without having access to the original equation that was used to place it where it is. (if that makes sense)
  7. It's funny you say that, I actually do let the initGui handle the initial construction, but I can assure you it does nothing more, here is the code for the initial construction. https://hastebin.com/uhovimadul.scala
  8. Alright that is fine, This issue is not just with the version I am currently at, this mod is for all Minecraft versions.
  9. Hello all, I'm currently working on a GuiDesigner mod, it's working but I am having an issue with the components scaling. Normally the Minecraft GUI will re-construct the buttons in the initGui method the initGui method gets called when the screen in reconstructed. The screen is reconstructed if you scale up or down the Minecraft window and of course when you enter that screen. My GuiDesigner mod saves and loads the components to and from JSON, so they are never reconstructed. How would I go about scaling all the components to the screen width and height? any help is greatly appreciated. here is a video of the GUI in action https://a.pomf.cat/ifzyma.mp4 Thanks in advance, Marshall.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.