-
Notifications
You must be signed in to change notification settings - Fork 313
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use controllers in the menus #596
Comments
Hey, there. Certainly, I understand some more examples could be useful. What did you try so far? For that screenshot, let's say we have this conceptual RML code: <tab>Game</tab>
<tab id="video">Video</tab>
...
<panel>
<p>Fullscreen mode:</p><select id="fullscreen_mode">...</select>
<p>Gui scale:</p><input type="range"/>
<p>Last option</p><input type="text" id="last"/>
</panel>
<button id="ok">
<button id="cancel"> I would perhaps start with something like this: tab { nav: horizontal; }
tab#video { nav-down: #fullscreen; }
select, input { nav: vertical; }
#fullscreen_mode { nav-up: #video; }
#last { nav-down: #ok; }
button { nav: horizontal; }
button#ok { nav-up: #last; } How does that look to you? I'd be interested to see a fully operational example like in the screenshot. So please share how it works out for you. |
Well, I think that what I want is more difficult. look : in his screenshot you have some menus of the game. the ingame menu : http://51.178.51.166/grise/other/menu_ingame.rml the option menu : and the 'key bindings' menu : http://51.178.51.166/grise/other/options_keys.rml what i would like to do is : I'd like a "joy stick navigation" i mean: if I use the joystick for go At the top it goes at the top ect. Do you understand? |
Hm, first of all, I think you shouldn't shy away from scripting some of the behavior you want. Maybe you could use Be aware that the
Not sure I follow, can you rephrase this? |
Hello! What you mean is : for use the controller to menus, I can't have the menus in multiple files?
Well, I don't want that you are stuck with the menus. Do you understand? If you don't, I can make a little video for show you ;) with my current menu and the comportements :) If I understand correctly, currently you 'set' for example : this button go to this and this button is used for go to this... Well... I try to make this little example : 1️⃣ 2️ 3️⃣---------7️⃣ All this are buttons. For example, by default we are on the button '7'.if I want to go on the button '3' I use the joystick in the position 'left' now if I'm in another button like '7', '6', '8'and that I want to go in the buttons in the left, I just use the joystick in the position' left' and it go in the left position, At the nearest button. It is not like, for go in the button '1' and that currently I'm in the button '7' I have to go to the '6', and after the '8', and after it go in the '1' Is this explanation more... Comprehensive? |
I did this, for explain. Don't paid attention to the mouse |
Sure you can, but the I feel like you're making this more complicated than it is? Instead, I would suggest that you just try out different approaches, using Please experiment a bit with that, and maybe create some examples or prototypes. Once you have that, if there is some particular behavior you find unexpected or unable to make it work as desired, then let us know and post what you have so far. |
Hi and sorry for my last reply ( a lot of family problems)
Lol I agree. And my currents menus are pretty bad
OK! Menus like this. I think that this will be the better. I'm not sure to understand fully, do you think that if all the menus are in a same file, it would be better for controller navigation? Do you know if a game that use RmlUI can use controllers? I mean, do you know a game that I could see the code for make my menus? Be sure, @mikke89 If I manage to make menus that work well and don't have windows, I'll send you source code with screenshots so you can do documentation with examples! My current goal would be : have menus that can be used with a coutroller, that have a thing like a "screenmanager" I mean, no windows, like on the screenshot. I think that this would be more easy with examples XD Well something that could be for me, can you send me a link to the UI code of this game : https://mikke89.github.io/RmlUiDoc/pages/animations/game_main_menu.webm Aigain, I' really sorry for my last reply :/ |
Hello,
My question is : How can we use a controller with RmlUI?
I already readed this :
https://mikke89.github.io/RmlUiDoc/pages/rcss/user_interface.html#nav
#142
I'd like to do something like this too :
But, after reading, I don't understand how to use it...
Can I have examples of code please?
The text was updated successfully, but these errors were encountered: