Editing interface graphic

Organizing tasks to work on, New Features Ideas, Building LCS & LCB Libraries & Widgets, Redecorating and Modifying the IDE, Hacking / Editing Tools, Compiling the Engine from Source, etc.
micmac
Posts: 123
Joined: Mon Sep 13, 2021 9:46 pm
Contact:

Editing interface graphic

Post by micmac »

Skærmbillede 2024-03-01 kl. 14.21.32.jpg
Skærmbillede 2024-03-01 kl. 14.21.32.jpg (45.85 KiB) Viewed 401 times
Maybe the paintbrush use these graphics to make its strokes

How can I edit the sizes and maybe make them anti-aliased.

Thanks Mic
User avatar
tperry2x
Posts: 1533
Joined: Tue Dec 21, 2021 9:10 pm
Location: Britain (Previously known as Great Britain)
Contact:

Re: Editing interface graphic

Post by tperry2x »

This is in the 'revBrushPopup' stack, in a card called 'Brushes Card'
Each one of them are separate buttons, each with their own icon.
Screenshot at 2024-03-01 13-43-55.png
Screenshot at 2024-03-01 13-43-55.png (51.85 KiB) Viewed 397 times
You could set alternative icons there, then save the 'revBrushpopup' stack (located at [location of your OXT install] /Toolset/palettes/tools/revBrushpopup.livecode')

To expand upon my answer above:
If you look in the stack "revCompatibilityBrushes1", all the cards in there are where these icons are pulled from:
Screenshot at 2024-03-01 14-29-58.png
Screenshot at 2024-03-01 14-29-58.png (83.34 KiB) Viewed 390 times
micmac
Posts: 123
Joined: Mon Sep 13, 2021 9:46 pm
Contact:

Re: Editing interface graphic

Post by micmac »

Wow, Tom...

To take your time to give me such a detailed guide!!!

Thanks
Mic
User avatar
OpenXTalkPaul
Posts: 1574
Joined: Sat Sep 11, 2021 4:19 pm
Contact:

Re: Editing interface graphic

Post by OpenXTalkPaul »

I've previously altered these with varying degrees of usefulness.
If I recall correctly you can use grayscale images as brushes (just like you can in PhotoShop) which could give a sort-of antialias / soften edge effect, but the normal brushes are 1-bit images so you won't get any soft edges from those.
micmac
Posts: 123
Joined: Mon Sep 13, 2021 9:46 pm
Contact:

Re: Editing interface graphic

Post by micmac »

Thank you Paul

I stalled because I couldn't figure out how to actually replace the graphics.
Maybe you can give a hint.

Thanks
Mic
User avatar
OpenXTalkPaul
Posts: 1574
Joined: Sat Sep 11, 2021 4:19 pm
Contact:

Re: Editing interface graphic

Post by OpenXTalkPaul »

micmac wrote: Tue Mar 05, 2024 9:07 am Thank you Paul

I stalled because I couldn't figure out how to actually replace the graphics.
Maybe you can give a hint.

Thanks
Mic
Open that stack from the 'Application Browser', then you can change the stack mode to topLevel and edit the graphics (using external Image Editor by right-clicking).

I did a little bit of work on a tool intended to (eventually) do copy images data, replace Images as data, export images, etc. including in the IDE stacks. But there's more work to do to there. I posted it on the forums here.
User avatar
tperry2x
Posts: 1533
Joined: Tue Dec 21, 2021 9:10 pm
Location: Britain (Previously known as Great Britain)
Contact:

Re: Editing interface graphic

Post by tperry2x »

micmac wrote: Fri Mar 01, 2024 3:25 pm Wow, Tom...
To take your time to give me such a detailed guide!!!
Thanks
Mic
Just going back over things (stuff I intend to put in v1.04 of OXT lite).

I replaced the brushes (see attached stack).
brush-result.png
brush-result.png (18.41 KiB) Viewed 209 times
The end result is that there's antialiasing on the brush icons on the palette, and when you use the brushes - you get antialiased pixels at the end of the brush trail, but not along the path of the brush. (magnified to show you what I mean)

It's weird, it kind of sometimes does and sometimes doesn't:
antialiasing-kindof.png
antialiasing-kindof.png (31.23 KiB) Viewed 203 times
Attachments
revicons.rev.7z
(565.15 KiB) Downloaded 6 times
User avatar
richmond62
Posts: 2767
Joined: Sun Sep 12, 2021 11:03 am
Location: Bulgaria
Contact:

Re: Editing interface graphic

Post by richmond62 »

So . . .

I opened a new stack and drew a squiggle on it and saved it.

Quit OXTL 1.04.

I then swapped in your new revIcons stack.

Reopened my stack, at which point the squiggle I had drawn previously was not present . . .
https://richmondmathewson.owlstown.net/
User avatar
tperry2x
Posts: 1533
Joined: Tue Dec 21, 2021 9:10 pm
Location: Britain (Previously known as Great Britain)
Contact:

Re: Editing interface graphic

Post by tperry2x »

It gets better than that. Draw a squiggle with the antialiased version.
Save the stack.
Quit OXT.

Reopen OXT.
Reopen the stack.

No Squiggle.
(it's not just when you swap the file), it's all the time with the antialiased one.
It doesn't seem to be able to cope with antialiasing.
User avatar
tperry2x
Posts: 1533
Joined: Tue Dec 21, 2021 9:10 pm
Location: Britain (Previously known as Great Britain)
Contact:

Re: Editing interface graphic

Post by tperry2x »

Edit 2:
Ah, no - it's not as simple as that.
None of the painted on brush marks are saving in the stack.... even with the original non-antialiased version...so that's weird.
I'm now off to test this in Livecode 9.6.3...

Edit: doesn't retain my splodges in Livecode 9.6.3 either :?
This is if you save the stack and "close and remove from memory" then open the stack.
User avatar
richmond62
Posts: 2767
Joined: Sun Sep 12, 2021 11:03 am
Location: Bulgaria
Contact:

Re: Editing interface graphic

Post by richmond62 »

That makes the paint tools effectively useless.

However: Totally Mental as it may seem (mind you, I think most teachers did mental things during the COVID lockdown) I used a screen-size LiveCode stack and the brush tool as a virtual whiteboard with ZOOM to draw things during my online ESL classes.
https://richmondmathewson.owlstown.net/
User avatar
tperry2x
Posts: 1533
Joined: Tue Dec 21, 2021 9:10 pm
Location: Britain (Previously known as Great Britain)
Contact:

Re: Editing interface graphic

Post by tperry2x »

richmond62 wrote: Mon Apr 22, 2024 1:18 pm That makes the paint tools effectively useless.
It does.
I wonder at what point that got broken... perhaps somewhere before 9.6.3?
I'll try and test that this evening. Glad we found this bug.
User avatar
richmond62
Posts: 2767
Joined: Sun Sep 12, 2021 11:03 am
Location: Bulgaria
Contact:

Re: Editing interface graphic

Post by richmond62 »

Certainly brush tool does not save in LC 8.1.10 (oldest version I have got here on MacOS Sonoma).
https://richmondmathewson.owlstown.net/
User avatar
tperry2x
Posts: 1533
Joined: Tue Dec 21, 2021 9:10 pm
Location: Britain (Previously known as Great Britain)
Contact:

Re: Editing interface graphic

Post by tperry2x »

Wow! it's been broken for a long time then.
I honestly never used it :lol:
Screenshot at 2024-04-22 14-37-41.png
Screenshot at 2024-04-22 14-37-41.png (59.81 KiB) Viewed 170 times
Just tried this as a test.
The image exports fine, so that's one way of 'saving it' - but it becomes read-only.
It just won't load back in an object that's been painted in.
splodge.livecode
(10.17 KiB) Downloaded 2 times
User avatar
richmond62
Posts: 2767
Joined: Sun Sep 12, 2021 11:03 am
Location: Bulgaria
Contact:

Re: Editing interface graphic

Post by richmond62 »

Well, as explained earlier, I have only ever used it for drawing 3-eyed cats during the COVID lockdown to keep kiddos focused. 8-)

Hmm: 'Humpy-Humpy': LC 8.0 crashes on MacOS Sonoma. Trying hard to care: although backwards compatibility would suddenly make MacOS about 1000 times better.
-
snore.png
snore.png (315.6 KiB) Viewed 163 times
https://richmondmathewson.owlstown.net/
User avatar
tperry2x
Posts: 1533
Joined: Tue Dec 21, 2021 9:10 pm
Location: Britain (Previously known as Great Britain)
Contact:

Re: Editing interface graphic

Post by tperry2x »

It does make me wonder what else is left to discover that isn't working.
I just checked, and at least the 'graphics' objects save, such as ovals and things. It's just the 'paint' ones as far as I can tell so far.
User avatar
richmond62
Posts: 2767
Joined: Sun Sep 12, 2021 11:03 am
Location: Bulgaria
Contact:

Re: Editing interface graphic

Post by richmond62 »

It does make me wonder what else is left to discover that isn't working.
That is a moot point in light of some people's behaviour over the last 20+ years.

I must remember to pay £500 for that bike with no brakes! 8-)
https://richmondmathewson.owlstown.net/
User avatar
tperry2x
Posts: 1533
Joined: Tue Dec 21, 2021 9:10 pm
Location: Britain (Previously known as Great Britain)
Contact:

Re: Editing interface graphic

Post by tperry2x »

As soon as we post about this, the server cacks the bed again:
not-again-50p-in-the-meter-2.png
not-again-50p-in-the-meter-2.png (13.09 KiB) Viewed 161 times
micmac
Posts: 123
Joined: Mon Sep 13, 2021 9:46 pm
Contact:

Re: Editing interface graphic

Post by micmac »

It works if you first insert an image area

Mic
User avatar
tperry2x
Posts: 1533
Joined: Tue Dec 21, 2021 9:10 pm
Location: Britain (Previously known as Great Britain)
Contact:

Re: Editing interface graphic

Post by tperry2x »

micmac wrote: Mon Apr 22, 2024 2:38 pm It works if you first insert an image area
Oh yeah, indeed it does. How odd. It's like the image it originally creates when initially painting isn't a valid image object or something. Nobody is going to know to do that first unfortunately, so I wonder upon choosing the tool if it should create a blank image first which covers the entire card, or a simpler option is to stop it creating the invalid image object somehow... hmmm.
Post Reply

Who is online

Users browsing this forum: No registered users and 18 guests