-
-
Notifications
You must be signed in to change notification settings - Fork 375
Conversation
Why would people be renaming module names? If they are then they should rename all references themselves. This creates unreadable code, where you see something requesting a module "Spectator", you look for the spectator module, but then you cant find the spectator module. |
again, don't talk to me about this. @zeroeightysix made the modules renameable iirc |
Do you mean them being renamed in the code or is there some sort of runtime mechanism for updating their names? |
If its the case that people can rename them at runtime you should instead make it update the name that is displayed in the gui rather than the internal name. |
they're updated in Module.Info, config side, but for enabling modules by name it looks for literally their name |
I'm pretty sure it doesn't change the internal name? |
It is updated gui side and cli side, otherwise it's the same in code |
renamed during runtime. you could rename the modules using a command. There's a field called |
Why not create a method |
custom module names aren't known as compile-time, so if a user renamed "Freecam" to "Spectator", or something similar, the lookup map would surely map "Spectator" to the "Freecam" module, but the code still asks ModuleManager for "Freecam" regardless.