Page 1 of 2

Editing interface graphic

Posted: Fri Mar 01, 2024 1:37 pm
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 1283 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

Re: Editing interface graphic

Posted: Fri Mar 01, 2024 1:48 pm
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 1279 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 1272 times

Re: Editing interface graphic

Posted: Fri Mar 01, 2024 3:25 pm
by micmac
Wow, Tom...

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

Thanks
Mic

Re: Editing interface graphic

Posted: Tue Mar 05, 2024 3:57 am
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.

Re: Editing interface graphic

Posted: Tue Mar 05, 2024 9:07 am
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

Re: Editing interface graphic

Posted: Fri Mar 08, 2024 2:44 am
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.

Re: Editing interface graphic

Posted: Mon Apr 22, 2024 11:40 am
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 1091 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 1085 times

Re: Editing interface graphic

Posted: Mon Apr 22, 2024 12:37 pm
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 . . .

Re: Editing interface graphic

Posted: Mon Apr 22, 2024 12:52 pm
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.

Re: Editing interface graphic

Posted: Mon Apr 22, 2024 12:57 pm
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.

Re: Editing interface graphic

Posted: Mon Apr 22, 2024 1:18 pm
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.

Re: Editing interface graphic

Posted: Mon Apr 22, 2024 1:28 pm
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.

Re: Editing interface graphic

Posted: Mon Apr 22, 2024 1:33 pm
by richmond62
Certainly brush tool does not save in LC 8.1.10 (oldest version I have got here on MacOS Sonoma).

Re: Editing interface graphic

Posted: Mon Apr 22, 2024 1:39 pm
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 1052 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 5 times

Re: Editing interface graphic

Posted: Mon Apr 22, 2024 1:41 pm
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 1045 times

Re: Editing interface graphic

Posted: Mon Apr 22, 2024 1:50 pm
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.

Re: Editing interface graphic

Posted: Mon Apr 22, 2024 1:52 pm
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-)

Re: Editing interface graphic

Posted: Mon Apr 22, 2024 2:34 pm
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 1043 times

Re: Editing interface graphic

Posted: Mon Apr 22, 2024 2:38 pm
by micmac
It works if you first insert an image area

Mic

Re: Editing interface graphic

Posted: Mon Apr 22, 2024 2:46 pm
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.