Reloaded-Project / Reloaded-II

Universal .NET Core Powered Modding Framework for any Native Game X86, X64.
GNU General Public License v3.0
615 stars 83 forks source link

Request: Please add the ability to add a seperate display name argument for the enumarable type in config.cs #385

Closed TheBestAstroNOT closed 6 months ago

TheBestAstroNOT commented 6 months ago

In the configuration part of the mod please add an option to add a seperate display argument while rn it directly displays the name of the ENUM itself. like this: - image It would be better if with an argument you can add a prettier better looking version of the enum

Sewer56 commented 6 months ago

I'd gladly take a PR for it, however, I'm not planning on adding any non-trivial functionality to R2 myself for now. All of my focus is on Reloaded3, which I'm spending 25-30 hours a week on after work. (Pretty much, I don't have a life)

You'd need to do the following:

TheBestAstroNOT commented 6 months ago

umm this is a bit out of my league, i found the file related to the propertygrid but i dont know where to start

TheBestAstroNOT commented 6 months ago

@Sewer56 Do you know if there is a way we can call functions from other files in config.cs. That way i can fix this issue

Sewer56 commented 6 months ago

Do you mean:

  1. Call a function based on what the enum is set to?
  2. Set a function to determine the member name?

1. Call function based on Value

You can make a method which checks your config, and then runs some code based on the values. Put that in a separate method that takes the config as a parameter.

Then:

2. Set function to determine member name

Not currently possible, hence why this issue is open.

TheBestAstroNOT commented 6 months ago

I am basically making a application to act as an interface between the reloaded II config and the user. Basically u can add options to the application and images,videos and stuff and it will interact with the config directly. I just need to either detect when the configure mod button is pressed or i need to directly call a function/exe via the config.cs file. If i can do that i can easily make it much better.

Sewer56 commented 6 months ago

This link may help https://github.com/Reloaded-Project/Reloaded-II/discussions/379#discussioncomment-9461136

TheBestAstroNOT commented 6 months ago

Ok thanks