What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Dynamically created UI if anyone is interested (CC / plugin developers only)

fpsware

Community Developer
Joined
Jan 15, 2010
Messages
5,287
Reaction score
133
I've been working on a way to dynamically create my UI for a while now. Given that I've been trying to create a CC for every class, logically, I have to create a UI for every CC.

After manually codeing a UI for each CC, and all the backing code I decided to make things a lot easier on myself and use reflection to cut down on the UI to Settings coding. It worked beautifully!

But, as is the way of progress I want more! I wanted to cut down on modifying the UI form 100%. After a few hours of messing around and lots of frustration I've come up with a way to create a UI (for a CC or a plugin) without doing ANY coding on the UI form. There is no need to create / copy + paste any controls, there is no need to rename any labels or controls etc, no need to create group boxes to make everything look nice and tidy.

All you need to do is modify a few lines in some XML files (3 files to be exact) and the CC / plugin will automatically do the UI for you. Of cause, there is a bit of code you need to throw in behind it but a simple copy'n'paste will get that out of the way for you.

For those only developing a single CC or plugin this may not be of any use. But for those constantly developing it may be a viable option. If anyone is interested send me a PM.

Again, this is only useful for CC / plugin developers, and not really suitable for beginners.



EDIT: Yes, it will look like that. No, you can not change the way it looks
 
Last edited:
This UI is created dynamically using this method.

Rogue UI 28 03 11.webp
 
THIS looks awesome. But I'm a noob in coding so I have to wait for the dev's to implement it in their CC's ^^
 
Back
Top