Jump to content

Matrix

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by Matrix

  1. Hey, I have created a Forge Mod, that uses a config file and the Configuration method from minecraftforge. The mod is client-side only, it has some visual features. The .cfg file exists and has every variable in it, almost correct. Now to the problem: Some of the variables are Lists of Integers and Booleans. But I can't save the variables in the file a proper way. A normal method call would be: this.config.get("category", "key", new Boolean[7]).set(this.key); The output in the config file would be something like: category { B:key< True True False > } The syntax of the IDE (IntelliJ) seams to be correct, it suggests to use (String, String, boolean[], optional others) but it only let me do: this.config.get("category", "key", new String[7]).set(this.key); A list of Strings works without a problem and but thats not what I want. I can only use Integers, Doubles and Booleans if they are not lists. Does someone has a solution or a guess? And before you say that I should use a toml, json, yaml... file: I've already integrated everything and it would be a lot of work. Besides that its the way you should do it according to Forge: Thanks, Matrix
  2. Hey, i'm currently developing a Minecraft PvP Mod with a bunch of features. Included are features like Hitbox colors. You should be able to modify the hitbox for each entity group individually. Now to the problem: I want to create a dropdown menu where you can select the group. There are 4 Sliders and 2 Buttons for each group so it would be too much for one site. I want to avoid a scrollable GUI because a dropdown menu would look cleaner. I've seen a option to create a "GuiListButton" and a "GuiPageButtonList" but idk what they are doing and how to use them. I already thought of a selection without scrolling (multiple-choice, implemented myself) or a slider to select the group but i'd prefer a dropdown menu. I've already seen some in a few mods but I don't remember where, else I could take a look at the code. It also helps to provide the name of a mod that includes such a feature. (Btw it should be a mod that uses Forge "Buttons", not self implemented ones, so don't include Badlion, Lunar or Labymod pls) Thanks for any help Matrix
×
×
  • Create New...

Important Information

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