guiBasic module

Memzen

New member
3rd Party Module Dev
Joined
Dec 26, 2018
Messages
18
This is a GUI module converted from Monkey X to Cerberus X.


screenshot of examples.jpg

Get the fontmachine module by downloading fontmachine.zip at the end of the first post here:

https://www.cerberus-x.com/community/threads/cerberus-x-v2017-10-24-released.205/
 

Attachments

  • guiBasic_2019-02-08.zip
    1.3 MB · Views: 297
Last edited:

Memzen

New member
3rd Party Module Dev
Joined
Dec 26, 2018
Messages
18
The bottom and right lines of the outline around the Label element did not draw when running the Glfw3 target. Does anyone know how this can this be fixed?
 

MikeHart

Administrator
Joined
Jun 19, 2017
Messages
2,815
Hu? Never heard about that module. Will ckeck it out.
 
Last edited:

magic

New member
3rd Party Module Dev
3rd Party Tool Dev
Joined
Mar 5, 2018
Messages
158
Seem like a nice GUI. I tryed it but
cannot run.. need fontmachine! which I don't have ;(
so I download at https://github.com/ziggybcn/fontmachine but
got this error
Duplicate identifier "Font" ...
Class BitmapFont Implements Font
 

MikeHart

Administrator
Joined
Jun 19, 2017
Messages
2,815
Since we implemented our own font class, you need to change the fontclass name in fontmachine to something else.
 
Last edited:

MikeHart

Administrator
Joined
Jun 19, 2017
Messages
2,815
That is MyGui. Challenger Gui was the first GUI Christopher published. Where did you find it?
 

Memzen

New member
3rd Party Module Dev
Joined
Dec 26, 2018
Messages
18
I downloaded it in 2014 from challenger-arts.com which no longer exists. There are many apps named MyGui so I made up a name. I went through my Monkey X archive from 2015 and this looked like a module worth converting.
 

magic

New member
3rd Party Module Dev
3rd Party Tool Dev
Joined
Mar 5, 2018
Messages
158
Test it! Wow.. good looking GUI. Thanks @Memzen
 

MikeHart

Administrator
Joined
Jun 19, 2017
Messages
2,815
While good looking, it suffers from blurry output. Imho a gui should always draw at integer coordinates.
 

Memzen

New member
3rd Party Module Dev
Joined
Dec 26, 2018
Messages
18
The download in the first post has been updated with a fix for the drawing problem with a Label. The Html5 and Glfw3 builds will not draw exactly the same but I don't know how to fix that problem. Concerning the fix see the large comment in the file gbLabels.cxs in the module folder. On a separate issue, anyone wanting to use this GUI should probably change the fonts in the module to use the font commands which are a part of Cerberus X. This GUI module uses a 1024 x 1024 image for a font. Not good.
 

Phil7

Administrator
CX Code Contributor
3rd Party Tool Dev
Joined
Jun 26, 2017
Messages
539
What are the downsides of using 1024x1024 images?
Do you suggest to replace the font files and also the font drawing commands from fontmachine to cerberus font?
Do you think cerberus font can replace fontmachine fully in functionality and usability?

Sorry for those stupid questions. It's been some time since I looked into that and it seems you did.
 
Top Bottom