• Dear Cerberus X User!

    As we prepare to transition the forum ownership from Mike to Phil (TripleHead GmbH), we need your explicit consent to transfer your user data in accordance with our amended Terms and Rules in order to be compliant with data protection laws.

    Important: If you accept the amended Terms and Rules, you agree to the transfer of your user data to the future forum owner!

    Please read the new Terms and Rules below, check the box to agree, and click "Accept" to continue enjoying your Cerberus X Forum experience. The deadline for consent is April 5, 2024.

    Do not accept the amended Terms and Rules if you do not wish your personal data to be transferred to the future forum owner!

    Accepting ensures:

    - Continued access to your account with a short break for the actual transfer.

    - Retention of your data under the same terms.

    Without consent:

    - You don't have further access to your forum user account.

    - Your account and personal data will be deleted after April 5, 2024.

    - Public posts remain, but usernames indicating real identity will be anonymized. If you disagree with a fictitious name you have the option to contact us so we can find a name that is acceptable to you.

    We hope to keep you in our community and see you on the forum soon!

    All the best

    Your Cerberus X Team

DevLog 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...
 
I've completed implementing "mouseenter" and "mouseleave" events.
 
Thanks for posting your devlog. It is always great to read what the others are up to.
 
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
 
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:
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.
 
Back
Top Bottom