• 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 Gui module

Rich

Well-known member
CX Code Contributor
3rd Party Module Dev
Tutorial Author
3rd Party Tool Dev
Joined
Sep 9, 2017
Messages
451
Thinking about drop down lists in for the next version of my Gui Module
 
Sadly I never looked into your module. So please excuse my questions:
  1. Is it skinnable? If yes, with graphics and/oder colors?
  2. I noticed a tabbed interface in your font editor. It that the main way to build an UI with your module, that you need a tabbed widget as a base?
 
Sadly I never looked into your module. So please excuse my questions:
  1. Is it skinnable? If yes, with graphics and/oder colors?
  2. I noticed a tabbed interface in your font editor. It that the main way to build an UI with your module, that you need a tabbed widget as a base?
1) Yes for both. The format for each skin file could do wih a revamp into json or something and you can quickly recolor each skin using Gui.SetColor(r,g,b). The demo on itch.io does both. Also the module comes with 2 themes.
2) I supose it is. Each "gui" can be a series of tabs. You can have more than one gui on the screen at once. A gui doesnt have to have tabs. these can be turned off. Thinking back, a "gui" is a window that could have mulitple tabs, but i didnt want to call it a Window as that suggests dragging and minimising etc
 
A few things I noticed so far:

1) Line 519 should look like this, or?

Cerberus:
Method AddCheckbox:GuiCheckbox(x:int,y:Int,w:Int,h:Int,[B]selected[/B]:Bool)

2) I have attached a modified help file, yours gave some errors.

3) I think the example misses some graphics regarding the neon theme.
 

Attachments

  • cerberusdoc.zip
    3.2 KB · Views: 194
Looks like I rushed the Checkbox code out. Silly mistakes.
and thank you for fixing the capitalisation in the docs too, I didnt realise that had to match CX.

Regarding the neon theme, I dont think ive populated all the gfx and it falls back on the previouly loaded theme if files cannot be loaded.
I might make an effort and finish it off.

This backlog of mine is getting larger... ;-)
 
@MikeHart oh and as you can see, I had good intentions for converting it all to mojo1 but never got round to it.
 
Regarding the neon theme, I dont think ive populated all the gfx and it falls back on the previouly loaded theme if files cannot be loaded.
In the version i downloaded it doesn't fall back but crashes
 
ok . I might have a look tonight
 
Downloaded it again, and it works, in Release mode. In Debug mode it crashes on HTML5

Code:
Error - Unable to load image frames: neon-theme/../gui_default_slider.png
Error - Unable to load image: neon-theme/../gui_default_slider_back.png
slider image not available
slier back image not available
Cerberus Runtime Error : Error loading theme. Check log
C:/Users/MikeHart/Desktop/CerberusX/Cerberus/modules_ext/gui/m2.cxs<173>
C:/Users/MikeHart/Desktop/CerberusX/Cerberus/modules_ext/examples/gui_m2.cxs<144>
C:/Users/MikeHart/Desktop/CerberusX/Cerberus/modules/mojo/app.cxs<113>
 
Downloaded it again, and it works, in Release mode. In Debug mode it crashes on HTML5

Code:
Error - Unable to load image frames: neon-theme/../gui_default_slider.png
Error - Unable to load image: neon-theme/../gui_default_slider_back.png
slider image not available
slier back image not available
Cerberus Runtime Error : Error loading theme. Check log
C:/Users/MikeHart/Desktop/CerberusX/Cerberus/modules_ext/gui/m2.cxs<173>
C:/Users/MikeHart/Desktop/CerberusX/Cerberus/modules_ext/examples/gui_m2.cxs<144>
C:/Users/MikeHart/Desktop/CerberusX/Cerberus/modules/mojo/app.cxs<113>
Interesting. I'll check
 
lol - it errors because Ive put error checking in
Cerberus:
#If CONFIG="debug"
        If CheckTheme() = False Then Error("Error loading theme. Check log")
#End
the theme needs fixing though as its a demo theme. I'll crack on with that
 
Getting there...
font6.gif
 
0.6.0 has now been released with Pulldown option boxes.
Code:
Local menu:GuiOption = tab.AddOptions(100,100,200,20)
menu.SetOptions(["Option 1","Option 2","Option 3","Option 4"])

This will be expanded soon to allow for multi-select options.
 
Will check it out asap. Also will try to create my own theme.
 
Back
Top Bottom