Michael's dev log

PixelPaladin

New member
CX Code Contributor
3rd Party Module Dev
Joined
Aug 27, 2017
Messages
110
I experimented a little with the new Ted (seems to run on Linux). I also modified some icons and created a custom theme:
QOEWXZu.png
 

MikeHart

Administrator
Joined
Jun 19, 2017
Messages
3,210
I will make it possible. I would really like this feature and and your example looks great. It should become a theme that ships with CX.
I'll let oyu know when I have this implemented.
 

PixelPaladin

New member
CX Code Contributor
3rd Party Module Dev
Joined
Aug 27, 2017
Messages
110
I will make it possible. I would really like this feature and and your example looks great. It should become a theme that ships with CX.
I'll let oyu know when I have this implemented.
That would be absolutely awesome!
Edit: I used custom icons for disabled tools. Is it possible to handle them in the theme, too?
 
Last edited:

MikeHart

Administrator
Joined
Jun 19, 2017
Messages
3,210
Edit: I used custom icons for disabled tools. Is it possible to handle them in the theme, too?
How did you set the icon for disabled tools right now?

So far there is one set of Icons. QT can only set one icon, disabled ones get grayed out by default.

Edit: Looks like someone could set another icon for a different mode. Just that TED right now doesn't make use of it.
 
Last edited:

PixelPaladin

New member
CX Code Contributor
3rd Party Module Dev
Joined
Aug 27, 2017
Messages
110
How did you set the icon for disabled tools right now?
Icons can be changed in the ui designer (just click on ted/Formulardateien/mainwindow.ui):

fJg28Dp.png


The problem with the grayed out icons is, that white, black and all gray colors stay as they are. So if an icon is black or white (like in many monochrome themes) no one can tell if they are enabled or disabled.

Edit: Seems to be possible to change icons via Qaction.SetIcon:
https://doc.qt.io/qt-5/qaction.html#icon-prop
but I have no idea how to change the icon for disabled tools …

Edit2: okay, found it:
https://stackoverflow.com/questions/1358563/set-a-custom-icon-for-a-qaction-when-disabled
 
Last edited:

MikeHart

Administrator
Joined
Jun 19, 2017
Messages
3,210
Ok, I uploaded a new version to GitHub. icons need to be named like this...

New.png
New_off.png

If there is no OFF version, then TED behaves like before and just greys it out.

The icons in the treeview only change when source code is changed or a new file is opened. But I think that is ok, as you won't constantly change the theme.
 

MikeHart

Administrator
Joined
Jun 19, 2017
Messages
3,210
Ok, here is the plan. Before I tackle the bigger task of getting autocompletition for TED into it, I will add a small option regarding the line number color to TED, add the shared themes from @PixelPaladin and then create a new release for Windows and OSX of CX over the weekend. It is about time.
 

MikeHart

Administrator
Joined
Jun 19, 2017
Messages
3,210
Hi folks. Guess it is time for a new update. So what i have done for CX since its last release? 2 major things.
1# Ted: biggest thing is probably the highlighting and autocapitalization of the API. I have very basic autocomplete in but it is far from what you guys are used to. Plain listbox and no parameter hint.

2# AGK Windows target. The motivation behind this was and is personal. To learn on how to create a target and also being able to port my game to CX. It uses MSVC 2017 Express to compile. Omg. The compile times are awesome. And Android NDK target might follow for it.

Cross your fingers on the 9th very hard. I will have a talk with my bank. If everything goes well, i will be able to get a new Windows 10 computer.
 

MikeHart

Administrator
Joined
Jun 19, 2017
Messages
3,210
Damn details. I was so close to a new CX release but TED's auto capitalization of the CX API can cause some problems when you scroll through existing code via Key DOWN/UP/LEFT/RIGHT. I need to handle this properly before next release.

The AppGameKit target is done so far.
 

MikeHart

Administrator
Joined
Jun 19, 2017
Messages
3,210
Helllo hello!

Puh, it looks like I have finally beat this sucker called OSX and released a version for it that everyone can install and it runs without permission problems or missing QT frameworks. Well, you are never to old to learn... at least I am. ;)
Getting that new donated hardware for OSX was crucial to it. Now I can try to fix problems on that platform. Also I can try to get the AGK target for OSX desktop out. I know that Cube from the Syntaxbomb forum is waiting for it. And you should not let your supporters wait to long. But then I know that XCode can be a biatch, but lets hope it will be smooth sailing this time!

In the meantime I should get my new PC too. I will post a pic of it when it is there. With it I can tackle Windows 10 and Linux.

Before I had the Mac Mini set up, I was looking into TrueType font support for CX. I think it will be doable, just have to set on a lib/framework, port it to CX and then integrate it seemlessly into mojo/mojo2. Fun times ahead!!! :confused: If anyone wants to take on this part, I would marry him. If my wife gives permission to do so :D:p

And with TrueType font support in CX, then I can seriously think about a platform independent GUI module. I had my hands into on when I created my fantom frameworks, so this is not completely new to me.

And then there is sooooooo much to work on in CX, someone won't getting bored for sure.

Have a good weekend guys!
Michael
 

MikeHart

Administrator
Joined
Jun 19, 2017
Messages
3,210
Hi folks,

soooo. I was a little busy on the OSX/IOS front reagarding the AGK target. I know, not everyone uses that but some do (including myself) and I can report that the next release will include these two targets fully working. I needed to change the asset storage location to AGKs media folder but I think that is reasonable. After all we are talking about a different framework here.

The next days I will look into some outstanding OSX/IOS bugs reported in the past and try to fix them. Once that is done, I will make a new OSX release. And after this, I will turn my efforts into getting a Linux release out again.

I asked Martin if he could look into TrueType font loading integrated into mojo and/or mojo2. He agreed, but I hope he really has time for it. That would be a huge time saver for me and another stept to a platform independent UI module.

Again, have a good weekend!
Michael
 
Top Bottom