[C#] RPG Kit (Dynamically create menus) |
|
06-28-2012, 04:07 PM
(This post was last modified: 06-29-2012 09:46 AM by KoBE.)
|
|||
|
|||
|
RPG Kit (Dynamically create menus)
This demonstration is kind of an advanced version of this thread here:
http://tech.reboot.pro/showthread.php?tid=813 The difference in this, is that the menu is created dynamically. The size of the menu is also adjusted depending on how many menu items you add. The reason I name this RPG kit, is because you can effectively build menu items on the fly, depending on what you have going on in the RPG. Here is a screen shot of two menus with the source code used to generate them: ![]() The MainMenu class isn't quite commented and pretty yet, but if anyone would like to see it. I'll post it. I just wanted to get this out and perhaps get some feedback on it. |
|||
|
06-28-2012, 04:11 PM
|
|||
|
|||
|
RE: RPG Kit (Dynamically create menus)
This is really cool, I created a very simple equivalent in VB.net as part of my hangman coursework (way more complex than it needed to be...).
Anyway, I didn't make a class for it (might now, having seen this), but my 'selected item' was highlighted in that green too! |
|||
|
06-28-2012, 04:14 PM
(This post was last modified: 06-28-2012 04:14 PM by KoBE.)
|
|||
|
|||
|
RE: RPG Kit (Dynamically create menus)
Yeah, in my previous version here: http://tech.reboot.pro/showthread.php?tid=813 I had reversed the colors instead of highlighting green. That version however wasn't a class either. With this new version, I've exposed properties to change the AltBackgrounColor, and AltForecolor.. that way, you can even change the colors dynamically while performing different functions.
|
|||
|
06-28-2012, 04:51 PM
|
|||
|
|||
|
RE: RPG Kit (Dynamically create menus)
Yeah, there seems to be a lot of options, but your current one looks by far the most professional and works best with the alt colours...
Noticed your ASCII art text on your old one! Is there anything similar which you have worked into this one? That looked awesome! |
|||
|
06-28-2012, 09:01 PM
|
|||
|
|||
|
RE: RPG Kit (Dynamically create menus)
Perhaps you could use a Dictionary instead of an array for the footer to hold a shortcut as well as the actual footer item? :)
![]() Microsoft MVP .NET Programming - (2012 - Present) ®Crestron DMC-T Certified Automation Programmer Development Site: aceinfinity.net |
|||
|
06-29-2012, 09:49 AM
|
|||
|
|||
RE: RPG Kit (Dynamically create menus)
(06-28-2012 04:51 PM)Xavy01 Wrote: Is there anything similar which you have worked into this one? That looked awesome!The ASCII Art? No, I didn't add any to this. It wouldn't be to hard though. (06-28-2012 09:01 PM)AceInfinity Wrote: Perhaps you could use a Dictionary instead of an array for the footer to hold a shortcut as well as the actual footer item? :)What do you mean by a shortcut? |
|||
|
06-29-2012, 07:49 PM
|
|||
|
|||
RE: RPG Kit (Dynamically create menus)
(06-29-2012 09:49 AM)KoBE Wrote:Shortcut as in the initiation key for a 'calling' a certain menu footer item. Right now, and I haven't looked at your code, but do you only have F1, F2, F3, etc?(06-28-2012 04:51 PM)Xavy01 Wrote: Is there anything similar which you have worked into this one? That looked awesome!The ASCII Art? No, I didn't add any to this. It wouldn't be to hard though. ![]() Microsoft MVP .NET Programming - (2012 - Present) ®Crestron DMC-T Certified Automation Programmer Development Site: aceinfinity.net |
|||
|
06-29-2012, 08:19 PM
|
|||
|
|||
|
RE: RPG Kit (Dynamically create menus)
Yea, I have it build dynamically, so if 3 items are added.. F1-F3 are options.
|
|||
Possibly Related Threads... |
| Thread: | Author | Replies: | Views: | Last Post | |
Create your own IRC Client [C#/VB.Net] |
KoBE | 79 | 13,091 |
04-22-2013 01:18 PM Last Post: gorfi |
|
Create a menu for a Console App (Source) |
KoBE | 31 | 3,192 |
01-28-2013 04:01 PM Last Post: KoBE |
|
Invoke (Public) Static Member Dynamically By MethodName String Identifier |
AceInfinity | 2 | 398 |
07-09-2012 09:56 PM Last Post: AceInfinity |
|
Create A Shortcut File |
AceInfinity | 0 | 629 |
04-27-2012 01:44 AM Last Post: AceInfinity |
|
[TuT] How to create a Text To Speech [Google API] |
ekrozzz | 5 | 1,253 |
11-18-2011 12:56 AM Last Post: Twisted-X |
|
| Users browsing this thread |
| 1 Guest(s) |

RPG Kit (Dynamically create menus)







