• 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

UI & Fonts

Amishara

New member
Joined
Jun 21, 2018
Messages
4
Hi.

After looking throught the modules, I can´t find any UI stuff, like buttons, radio buttons, etc... Any modules for UI in CX?
Also, not otf/ttf support is kind of a down. Can I create a bitmap font based on a ttf in runtime?

My goal is CX is PERFECT for apps, not just games. It´s lightweight, closs-platform, beautiful markdown module, and easy to work in general. But the lack of UI & dynamic fonts makes it hard to impossible.
Mobile games are a dying market for engines like this due to other engines been hijacking the scope, but apps should be a better, growing, profitable target. Just saying.
 
Can you create a bitmap font from ttf? I have a module for this but that doesn't work on mobile.

Is there a ui module for mobile that helps you creating mobile apps and is skinable? Not many to my knowledge. Well there I this GUIBasic thing but that is more looking like it is targeting desktop with its window approach. Then there is @Rich ui module. FantomCX has some UI elements and I heard ignition/Pyro as well. I am working on one that supposingly to ship with CX but as you might have noticed, i am being flooded with feature requests.

Which engines were you talking about? Please don't answer Unity, godot or UE as their methods and also userbase are not compareable to a coding tool like CX
.

As UIs can vary a lot, and each app in the market has a different look, what kind of look/methology are you looking for?

Do you know any native ttf solution/libs that supports Javascript (html5) , Java (Android) and C++ (Desktop, IOS) ?
 
@Phil7 reminded me of a TFont module from chrisc2977 which he posted on the old Monkey X forum back then.
It works well on Android and HTML but on Desktop the font drawing is very jagged if you don't use multisampling.
 
Here's simple source-code how to create a sprite-sheet if we just had the means to also draw individual chars somehow. It's written in Rust. https://github.com/zbidwell/ttf2png/blob/master/src/main.rs

EDIT

There's a library to convert ttf into beziers that could be rendered using OpenGL/WebGL.

Here they're showing it off using webgl.
 
Last edited:
I was not asking for a feature request, just thinking aloud. :) The ttf/otf -> bitmapfont approach was out of curiosity, to know if such a hack would be already in place. If it´s hard to get maybe, just maybe, is because it is not the way to go. Bitmapfonts was a clever trick back in the day but is not versatile enough anymore. Nowadays all targets are capable to load an otf/ttf and render glyphs from it, so might be code to do that in all of them. Perhaps the way to go is a new ttf/otf module. Again, not a feature request, just my thoughts.

Once you have the dynamic font feature solved, coded an own UI is´nt that hard for the user, is all about boxes, and circles and geometry to put your text & images inside it and make them behave properly.

You don´t want me to name those engines, so I don´t. But if you look at the jams, those three and a couple more are eating all the cake. People don´t see several boxes with tools to create little games separated by the methods they use, not anymore. They see a big box labeled "tools for making games" with all the avaliable tools in it and they gravitate to the few bigger ones, learning then how they work. The little ones don´t even get a try. That´s how it works, despite many think its not fair.
But making apps world don´t work that way. Newbies are frustated with crossplatform monsters such as flutter and alikes and something as light and efficient as CX would rock the scene. Again, just saying.
 
All valid and of course something to look into. Like I said, that Module I mention works fine. Just need to figure out why on desktop the fonts look fuzzy. Then we could implement it into CX.

As UIs can vary a lot, and each app in the market has a different look, what kind of look/methology are you looking for?
My question still stands.
 
I love simpleUI but it's rough and I can't remember who worked on it but it has smooth swipescrolling, buttons etc.

There's also SVG parser code somewhere I know which could get interesting also for fonts.
SimpleUI.png
 
Back
Top Bottom