richmond62 wrote: ↑Wed May 22, 2024 9:14 pm
So . . . we bottom feeders (i.e.me) are slobbering over all the jazzy things you say you are putting into OXT Heavy, but unless you make an
"RC 57" available we have no chance of getting our sweaty paws on them.
I do usually try to put up stacks of what I'm working on so people can try out and explore ideas along with me if they so choose. I didn't for this particular exploration because it involved modifying multiple files in the IDE. This Star' object was sort of a side-trip off the larger goal of building a new more-malleable Tools palette. I hand drew the points so the stars are not even symmetrical.
I can totally explain how to do it, it wasn't at all difficult.
Lots of graphics objects with custom properties pre-set could be added to the graphics tab of new-Tools palette.
You can start by making an icon for your new object, you can duplicate an existing icon from the IDE theme to use as template like: com.livecode.interface.classic.OvalGraphic.icon.png copied to:
com.livecode.interface.classic.StarGraphic.icon.png
Then copy one of the graphics object's property files from:
/OXTIDE/Tools/Toolset/resources/supporting_files/property_definitions/
Like this one:
https://github.com/OpenXTalk-org/OpenXt ... raphic.tsv
Rename it to com.livecode.interface.classic.StarGraphic.tsv
The first line in that file is the column headers like a lot of TSV files have.
The next two lines have to do with the Tools palette:
'type' could be a 'graphic tool' or just 'graphic' depending on how you want it to behave in the Tools palette.
'title' is what new instances of the control will have as their name, and is also what will appear as tooltip & label by default.
Change the row in that file that is its 'points' properties initial value.
The trick is, because its a line and tab-delimited file, you have to use \n in place of 'return' or cr/lf in your points list.
As seen in that file where looks like: 0,0\n100,100 which I replaced with the points of my hand-drawn 'Star'.
You can change a bunch of other properties in that file too if you like. I was thinking it would be nice to have a Graphic Object that already has a nice gradient fill set on it.
Just be careful not to delete any invisible tab characters in that file. You might be able to use a spreadsheet app to edit it.
If it wasn't for those second and third lines, it would've displayed as a table n github, like this one does:
https://github.com/OpenXTalk-org/OpenXt ... wnMenu.tsv
And that's it!
Restart the IDE and you will have a 'new-Classic' star object in your tools palette that you can drag-drop into your stacks just like the rounded rect, oval, etc.