Game Engine Forum - Grit Open Source Streaming Game Engine
Site Header
It is currently Thu Jun 20, 2013 12:45 am

All times are UTC




Post new topic Reply to topic  [ 17 posts ] 
Author Message
 Post subject: Grit now have Simple Menu
PostPosted: Wed May 30, 2012 5:30 pm 
Offline
Newbie
User avatar

Joined: Mon Feb 20, 2012 9:31 am
Posts: 12
Hey all.
There is a Simple Menu now in grit. It was inspired by that Counter Strike menus...

The menu can be accessed by pressing tilda (~)
Default keybindings for entries map for numeric keys (1-0)
Keybindings can be customized in the file user_menu_keybinds.lua
Which can be found at
Quote:
gritengine/grit_core/media/user_menu_keybinds.lua

Note that "gritengine" is the base folder of the grit repository...



This is how it looks like:
Spoiler: show
Image
Image
Image


Newly added features (as requested):
    "Go back" functionality
    Some more stuff to the developers submenu
    Background... :3



HELP TO IMPROVE IT:
Post here what entries do you want to see in the menu? (Which actions you do often, which stuff you load often and etc.)
Your feedback will be used to improve the menu by adding missing entries to improve comfort and use-ability :)


Last edited by Razzeeyy on Mon Jun 11, 2012 9:18 am, edited 2 times in total.

Top
 Profile  
 
 Post subject: Re: Grit now have Simple Menu
PostPosted: Wed May 30, 2012 7:51 pm 
Offline
Newbie

Joined: Sat Mar 27, 2010 6:26 pm
Posts: 51
Location: Belgium
Looks awesome! (alltough your pictures are blocked at work so i can't see them :Aw: ) Have a salad, good sir! :letucce: Keep it up.

_________________


Top
 Profile  
 
 Post subject: Re: Grit now have Simple Menu
PostPosted: Wed May 30, 2012 8:12 pm 
Offline
Site Admin
Site Admin
User avatar

Joined: Fri Mar 26, 2010 2:13 pm
Posts: 294
Location: Spain
we love you <3

The things i told you on irc: the 0 could be 'back' instead of 'exit' (you can exit with the tilde button)

the developer menu is lonely, some functionality for those useful-but-long console commands: show normals/collision/lights/ all the debug info that is useful would be awesome

_________________
oh yeahh


Top
 Profile  
 
 Post subject: Re: Grit now have Simple Menu
PostPosted: Thu May 31, 2012 8:42 am 
Offline
Newbie

Joined: Sat Mar 27, 2010 6:58 pm
Posts: 91
This is awesome! Btw what map is it in the screenshots?


Top
 Profile  
 
 Post subject: Re: Grit now have Simple Menu
PostPosted: Thu May 31, 2012 9:40 am 
Offline
Site Admin
Site Admin
User avatar

Joined: Fri Mar 26, 2010 2:13 pm
Posts: 294
Location: Spain
thats Project sir

_________________
oh yeahh


Top
 Profile  
 
 Post subject: Re: Grit now have Simple Menu
PostPosted: Thu May 31, 2012 5:48 pm 
Offline
Moderator
Moderator
User avatar

Joined: Sun Apr 04, 2010 3:59 pm
Posts: 57
Excellent, I suggest making a dark semi-transparent background to be able too see it more clearly. Like so:
Image

_________________
Image


Top
 Profile  
 
 Post subject: Re: Grit now have Simple Menu
PostPosted: Wed Jun 06, 2012 9:45 pm 
Offline
Newbie
User avatar

Joined: Mon Feb 20, 2012 9:31 am
Posts: 12
Kimd41 wrote:
Excellent, I suggest making a dark semi-transparent background to be able too see it more clearly.


Sure.


Top
 Profile  
 
 Post subject: Re: Grit now have Simple Menu
PostPosted: Sun Jun 10, 2012 12:30 pm 
Offline
Newbie
User avatar

Joined: Mon Feb 20, 2012 9:31 am
Posts: 12
Note to self: implement splitting submenu into pages if it's longer than 9 entries


Top
 Profile  
 
 Post subject: Re: Grit now have Simple Menu
PostPosted: Sun Jun 10, 2012 5:48 pm 
Offline
Newbie

Joined: Sat Mar 27, 2010 6:26 pm
Posts: 51
Location: Belgium
Doesnt work for me yet, i tried reassigning the keys (i used verbose to check what keys i was hitting), but that doesnt seem to work..
Code:
simple_menu.Entries = {
   [0] = "+à";
   [1] = "+&";
   [2] = "+é";
   [3] = "+\"";
   [4] = "+'";
   [5] = "+(";
   [6] = "+§";
   [7] = "+è";
   [8] = "+!";
   [9] = "+ç";
}


Edit: Problem was the double " (fix this with \") now 1, 3,4,5,8 work, the rest doesnt.

_________________


Top
 Profile  
 
 Post subject: Re: Grit now have Simple Menu
PostPosted: Fri Aug 24, 2012 2:01 pm 
Offline
Newbie
User avatar

Joined: Sun Dec 12, 2010 7:32 pm
Posts: 27
I like this! Nice to be using a menu and no longer have to write in the console each time (like include "playground/init.lua"). Only issue is that having more than 9 entries is a bit problematic, since you can't tap 10 or two numbers (but you could allow letters as well).

I imagine this is temporary though, since eventually I'm hoping for a full menu... skinned and with sub-menus and click / selection support. GTA IV's menu system is nicely tabbed and sorted so I'd consider that a nice example. I hope menus will also be defined in LUA and not hard-coded... wonder if this is possible already.


Top
 Profile  
 
 Post subject: Re: Grit now have Simple Menu
PostPosted: Fri Aug 24, 2012 2:11 pm 
Offline
Newbie
User avatar

Joined: Mon Feb 20, 2012 9:31 am
Posts: 12
MirceaKitsune wrote:
Only issue is that having more than 9 entries is a bit problematic, since you can't tap 10 or two numbers (but you could allow letters as well).


Nested menus pretty much solve that problem :) And yeah ofc this is a temporary (I've written it because I'm to lazy to type again and again, lol), unless grit has a full featured GUI system :) Then this menu will be rewritten for new GUI, and lots of new GUI control stuff will be done :)


Top
 Profile  
 
 Post subject: Re: Grit now have Simple Menu
PostPosted: Fri Aug 24, 2012 2:38 pm 
Offline
Newbie
User avatar

Joined: Sun Dec 12, 2010 7:32 pm
Posts: 27
Razzeeyy wrote:
Nested menus pretty much solve that problem :) And yeah ofc this is a temporary (I've written it because I'm to lazy to type again and again, lol), unless grit has a full featured GUI system :) Then this menu will be rewritten for new GUI, and lots of new GUI control stuff will be done :)


The nesting works to some extent. This system actually reminds me of my mobile phone settings... where you call a number for your provider, and listen to a recorded voice describing which number keys to press for entering the next menu :P

What I was curious about is if the code would already support a full skinned GUI, or if changes are needed in GRIT before LUA can do that. For starters, I imagine it would mainly need to render text and images directly on the screen, then detect clicking them with the mouse.


Top
 Profile  
 
 Post subject: Re: Grit now have Simple Menu
PostPosted: Fri Aug 24, 2012 3:00 pm 
Offline
Newbie
User avatar

Joined: Mon Feb 20, 2012 9:31 am
Posts: 12
MirceaKitsune wrote:
What I was curious about is if the code would already support a full skinned GUI, or if changes are needed in GRIT before LUA can do that. For starters, I imagine it would mainly need to render text and images directly on the screen, then detect clicking them with the mouse.


Actually it is possible to build full featured menus/controls even with the current GUI system. But that is in very uncomfortable and unfriendly way and it's pain in the ass :D, so the GUI system worth a rewrite. (though there was theme around about GUI system rewrite too)


Top
 Profile  
 
 Post subject: Re: Grit now have Simple Menu
PostPosted: Mon Aug 27, 2012 5:30 am 
Offline
Site Admin
Site Admin
User avatar

Joined: Fri Mar 26, 2010 10:06 am
Posts: 352
What about that? Same license as grit.

http://librocket.com/

A post about lua:

http://forums.librocket.com/viewtopic.php?f=2&t=874

lua manual:

http://librocket.com/wiki/documentation/LuaManual

There are more good reasons to use this than just taking a short cut - people already know how to use this.


Top
 Profile  
 
 Post subject: Re: Grit now have Simple Menu
PostPosted: Thu Aug 30, 2012 8:15 am 
Offline
Newbie

Joined: Fri Aug 24, 2012 3:46 pm
Posts: 6
I found http://www.ogre3d.org/tikiwiki/MyGUI while trying to package grit-ogre.


Top
 Profile  
 
 Post subject: Re: Grit now have Simple Menu
PostPosted: Thu Aug 30, 2012 2:38 pm 
Offline
Newbie
User avatar

Joined: Sun Dec 12, 2010 7:32 pm
Posts: 27
Matt wrote:
I found http://www.ogre3d.org/tikiwiki/MyGUI while trying to package grit-ogre.


My knowledge is little, but I approve of using this.


Top
 Profile  
 
 Post subject: Re: Grit now have Simple Menu
PostPosted: Wed Sep 05, 2012 2:09 am 
Offline
Newbie

Joined: Wed Sep 05, 2012 2:07 am
Posts: 1
Nice,


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 17 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Localized by Maël Soucaze © 2010 phpBB.fr