A Menu System & Some Other GUI Components

SimonVD

New member
Tutorial Author
Joined
Dec 22, 2019
Messages
39
I'm working on a GUI system and using Mojo2 DrawLists...

I draw the GUI in real-time without using any pre-baked bitmaps.

I will implement functionality as I needed.

My first milestone is to complete an application menu system.

I like Apple's UI very much, so I'm going to mimic it.

The below is where I was two days ago. Just a rounded rectangle to be used as menu background.

CerberusGame 2020-05-29 09-43-55.png




The below is where I am today...

CerberusGame 2020-05-31 05-50-13.png



Next... I'm going to implement a menu separator...
 

SimonVD

New member
Tutorial Author
Joined
Dec 22, 2019
Messages
39
I've completed implementing "mouseenter" and "mouseleave" events.
 

MikeHart

Administrator
Joined
Jun 19, 2017
Messages
3,035
Thanks for posting your devlog. It is always great to read what the others are up to.
 

SimonVD

New member
Tutorial Author
Joined
Dec 22, 2019
Messages
39
I'm almost done with the menu tree system.

Menu background, fonts, colors, corner radius, paddings... It's completely themeable, even the triangle...

Next, I'll implement a menu bar.

2020-06-10 16-24-59.2020-06-10 16_29_55.gif
 

SimonVD

New member
Tutorial Author
Joined
Dec 22, 2019
Messages
39
Currently I'm working on scroll view.

scrollview-2020-06-30 22-37-21.2020-06-30 22_41_58.gif


I target GLFW Desktops and HTML5 here. I can get deltaY values from HTML5 and MouseZ values from GLFW. That's all good and working fine. Now I'd like to implement horizontal scrolling but I cannot find a ready to use way to receive deltaX values from GLFW. I feel that this is possible but how? I don't know.

Any help would be greatly appreciated.
 
Last edited:

MikeHart

Administrator
Joined
Jun 19, 2017
Messages
3,035
but I cannot find a ready to use way to receive deltaX values from GLFW
Not sure if you already found a solution but I would store the difference between MouseX reads. This way you have a delta value.
 
Top Bottom