Login to TechLifeForum X
Board Index Go to Reboot.Pro
  • Account Login
  • Register
TechLifeForum
  • Home
  • Members
  • Awards
  • Rules
  • Help
  • Donate
  • Live IRC
TechLifeForum / Programming and Development / .Net Framework Programming v
« Previous 1 ... 17 18 19 20 21 ... 46 Next »
/  RPG Kit (Dynamically create menus)[Advanced Search]
Reply to thread
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

[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.)
Post: #1
KoBE Offline
¯\_(ツ)_/¯
*******
Administrators
Posts: 4,197
Joined: Jun 2011
Reputation: 47
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.

-> TechLifeForum on Facebook<- 
-> TechLifeForum on YouTube<-
-> TechLifeForum on Twitter<-

Tech.Reboot.Pro
WWW Find
Reply
06-28-2012, 04:11 PM
Post: #2
Xavy01 Offline
ლ(ಠ▿ಠლ)
**
Posts: 54
Joined: Jun 2012
Reputation: 3
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!

Find
Reply
06-28-2012, 04:14 PM (This post was last modified: 06-28-2012 04:14 PM by KoBE.)
Post: #3
KoBE Offline
¯\_(ツ)_/¯
*******
Administrators
Posts: 4,197
Joined: Jun 2011
Reputation: 47
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.

-> TechLifeForum on Facebook<- 
-> TechLifeForum on YouTube<-
-> TechLifeForum on Twitter<-

Tech.Reboot.Pro
WWW Find
Reply
06-28-2012, 04:51 PM
Post: #4
Xavy01 Offline
ლ(ಠ▿ಠლ)
**
Posts: 54
Joined: Jun 2012
Reputation: 3
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!

Find
Reply
06-28-2012, 09:01 PM
Post: #5
AceInfinity Offline
∞ IҊϜIɴITϵ ☭
*****
Microsoft MVP
Posts: 8,696
Joined: Jun 2011
Reputation: 61
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
WWW Find
Reply
06-29-2012, 09:49 AM
Post: #6
KoBE Offline
¯\_(ツ)_/¯
*******
Administrators
Posts: 4,197
Joined: Jun 2011
Reputation: 47
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?

-> TechLifeForum on Facebook<- 
-> TechLifeForum on YouTube<-
-> TechLifeForum on Twitter<-

Tech.Reboot.Pro
WWW Find
Reply
06-29-2012, 07:49 PM
Post: #7
AceInfinity Offline
∞ IҊϜIɴITϵ ☭
*****
Microsoft MVP
Posts: 8,696
Joined: Jun 2011
Reputation: 61
RE: RPG Kit (Dynamically create menus)
(06-29-2012 09:49 AM)KoBE Wrote:  
(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?
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?



Microsoft MVP .NET Programming - (2012 - Present)
®Crestron DMC-T Certified Automation Programmer


Development Site: aceinfinity.net
WWW Find
Reply
06-29-2012, 08:19 PM
Post: #8
KoBE Offline
¯\_(ツ)_/¯
*******
Administrators
Posts: 4,197
Joined: Jun 2011
Reputation: 47
RE: RPG Kit (Dynamically create menus)
Yea, I have it build dynamically, so if 3 items are added.. F1-F3 are options.

-> TechLifeForum on Facebook<- 
-> TechLifeForum on YouTube<-
-> TechLifeForum on Twitter<-

Tech.Reboot.Pro
WWW Find
Reply
Reply to thread


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

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:


Users browsing this thread
1 Guest(s)
Youtube Facebook Twitter Digg
Return to Top
All content © copyright TechLifeForum
Powered By MyBB, © 2002-2013 MyBB Group
Designed by ThemeFreak
Mobile Version