Discuss Scratch

TeenySpoon
Scratcher
500+ posts

A Random Pen OS: Devlog

Replaced some WM code with Shape Rect block

I replaced some of the WM rendering functions' code with the rect block I made (see Pen Shapes). I realized some of my earlier math was off and fixed it, which threw off header/resizing for the mouse detection.

Gotta fix that now…

⚜ TeenySpoon ⚜ Alt: TeenyTea
An absent-minded programmer/artist

A Random Pen Window Manager
⚜ Me ⚜ TeenyForkTeenyKnife

“We are pilgrims on the journey
We are travelers on the road
We are here to help each other
Walk the mile and bear the load”
- “The Servant Song”, David Haas
TeenySpoon
Scratcher
500+ posts

A Random Pen OS: Devlog

Fixed Border Detection (again)

After playing around with the numbers, I managed to get it to work again. There was also a bug in which the pixel inbetween the header and app portion was detected as a border. This was because of some code that checked which border it was depending on whether the mouse y was greater or less than the window center. It assumed that the header portion was filtered out by some previous if/else checks, but my < or > for the mouse-header check left out that pixel.

Finally, I can stop procrastinating and actually work on fullscreen…

⚜ TeenySpoon ⚜ Alt: TeenyTea
An absent-minded programmer/artist

A Random Pen Window Manager
⚜ Me ⚜ TeenyForkTeenyKnife

“We are pilgrims on the journey
We are travelers on the road
We are here to help each other
Walk the mile and bear the load”
- “The Servant Song”, David Haas
eoeoeoeoeoeoeoeoe
Scratcher
99 posts

A Random Pen OS: Devlog

TeenySpoon wrote:

Fixed Border Detection (again)

After playing around with the numbers, I managed to get it to work again. There was also a bug in which the pixel inbetween the header and app portion was detected as a border. This was because of some code that checked which border it was depending on whether the mouse y was greater or less than the window center. It assumed that the header portion was filtered out by some previous if/else checks, but my < or > for the mouse-header check left out that pixel.

Finally, I can stop procrastinating and actually work on fullscreen…
Well, the problem with your fullscreen is that you may want to drag the fullscreen window (which should disable fullscreen mode) or put smaller windows on top of the fullscreen window.

Hey.
when this sprite clicked
say [I feel good to be alive]
die :: motion


“Have you ever just?” - important quote
TeenySpoon
Scratcher
500+ posts

A Random Pen OS: Devlog

eoeoeoeoeoeoeoeoe wrote:

Well, the problem with your fullscreen is that you may want to drag the fullscreen window (which should disable fullscreen mode) or put smaller windows on top of the fullscreen window.
Oh alright, that's a good idea.

⚜ TeenySpoon ⚜ Alt: TeenyTea
An absent-minded programmer/artist

A Random Pen Window Manager
⚜ Me ⚜ TeenyForkTeenyKnife

“We are pilgrims on the journey
We are travelers on the road
We are here to help each other
Walk the mile and bear the load”
- “The Servant Song”, David Haas
2D4eter
Scratcher
100+ posts

A Random Pen OS: Devlog

Do you have like a method that will scale the content in the windows? If not you may want to start thinking about that before its too late.

(::#F80000) (::#F80000) (::#F89000) (::#F89000) (::#F8F800) (::#F8F800) (::#00F850) (::#00F850) (::#00F8F0) (::#00F8F0) (::#0038F0) (::#0038F0) (::#7800F0) (::#7800F0) (::#F800B0) (::#F800B0) :: #e0e0e0 reporter)
TeenySpoon
Scratcher
500+ posts

A Random Pen OS: Devlog

2D4eter wrote:

Do you have like a method that will scale the content in the windows? If not you may want to start thinking about that before its too late.
Thanks for the reminder, I'll think about that.
I might just make it specific for each app, because some will only work in fullscreen, but then again if I do a generalized method it will save me a lot of time.

⚜ TeenySpoon ⚜ Alt: TeenyTea
An absent-minded programmer/artist

A Random Pen Window Manager
⚜ Me ⚜ TeenyForkTeenyKnife

“We are pilgrims on the journey
We are travelers on the road
We are here to help each other
Walk the mile and bear the load”
- “The Servant Song”, David Haas
eoeoeoeoeoeoeoeoe
Scratcher
99 posts

A Random Pen OS: Devlog

when i receive [exist v]
if <working on window manager :: variables> then
say [AAAAAAAAAAAAAAAA]
self destruct :: motion
else
do not self destruct :: motion
end

Last edited by eoeoeoeoeoeoeoeoe (Aug. 2, 2023 23:14:40)


Hey.
when this sprite clicked
say [I feel good to be alive]
die :: motion


“Have you ever just?” - important quote
TeenySpoon
Scratcher
500+ posts

A Random Pen OS: Devlog

Update 1.4.2: Window Status: Exit Fullscreen

After procrastinating this addition for more than 2 weeks, I finally added it: the ability to exit fullscreen!!
(It wasn't as hard as I had been imagining, just an if-else block and a couple other blocks )

On a side note, I switched from stamped text to @-Rex-'s PTE++, using @DogCatPuppyLover's custom font “Interminable”.

⚜ TeenySpoon ⚜ Alt: TeenyTea
An absent-minded programmer/artist

A Random Pen Window Manager
⚜ Me ⚜ TeenyForkTeenyKnife

“We are pilgrims on the journey
We are travelers on the road
We are here to help each other
Walk the mile and bear the load”
- “The Servant Song”, David Haas
eoeoeoeoeoeoeoeoe
Scratcher
99 posts

A Random Pen OS: Devlog

TeenySpoon wrote:

Update 1.4.2: Window Status: Exit Fullscreen

After procrastinating this addition for more than 2 weeks, I finally added it: the ability to exit fullscreen!!
(It wasn't as hard as I had been imagining, just an if-else block and a couple other blocks )

On a side note, I switched from stamped text to @-Rex-'s PTE++, using @DogCatPuppyLover's custom font “Interminable”.

yas finaly

Hey.
when this sprite clicked
say [I feel good to be alive]
die :: motion


“Have you ever just?” - important quote
TeenySpoon
Scratcher
500+ posts

A Random Pen OS: Devlog

Update 1.2.4: Move Windows w/ Mouse

Before, the windows would jump a little when clicked on because it used the mouse x for the center and a quick approximation for the y.
Now, it follows mouse movement to the pixel! If you click and hold but don't drag, the window will stay in exactly the same place.

(This is yet another fix that I have procrastinated for so long…)

⚜ TeenySpoon ⚜ Alt: TeenyTea
An absent-minded programmer/artist

A Random Pen Window Manager
⚜ Me ⚜ TeenyForkTeenyKnife

“We are pilgrims on the journey
We are travelers on the road
We are here to help each other
Walk the mile and bear the load”
- “The Servant Song”, David Haas
TeenySpoon
Scratcher
500+ posts

A Random Pen OS: Devlog

Update 1.4.3: Window Status: Minimize

I added window minimize, which does not render the window but saves the window data in the list.
There isn't a way to get minimized windows back yet, but I'll work on it after I polish the fullscreen and make eoeoeoeoeoeoeoeoe happy…

Last edited by TeenySpoon (Aug. 4, 2023 18:45:42)


⚜ TeenySpoon ⚜ Alt: TeenyTea
An absent-minded programmer/artist

A Random Pen Window Manager
⚜ Me ⚜ TeenyForkTeenyKnife

“We are pilgrims on the journey
We are travelers on the road
We are here to help each other
Walk the mile and bear the load”
- “The Servant Song”, David Haas
eoeoeoeoeoeoeoeoe
Scratcher
99 posts

A Random Pen OS: Devlog

TeenySpoon wrote:

Update 1.4.3: Window Status: Minimize

I added window minimize, which does not render the window but saves the window data in the list.
There isn't a way to get minimized windows back yet, but I'll work on it after I polish the fullscreen and make eoeoeoeoeoeoeoeoe happy…

Precisely.

Hey.
when this sprite clicked
say [I feel good to be alive]
die :: motion


“Have you ever just?” - important quote
2D4eter
Scratcher
100+ posts

A Random Pen OS: Devlog

TeenySpoon wrote:

Update 1.4.3: Window Status: Minimize

I added window minimize, which does not render the window but saves the window data in the list.
There isn't a way to get minimized windows back yet, but I'll work on it after I polish the fullscreen and make eoeoeoeoeoeoeoeoe happy…
LOL

(::#F80000) (::#F80000) (::#F89000) (::#F89000) (::#F8F800) (::#F8F800) (::#00F850) (::#00F850) (::#00F8F0) (::#00F8F0) (::#0038F0) (::#0038F0) (::#7800F0) (::#7800F0) (::#F800B0) (::#F800B0) :: #e0e0e0 reporter)
eoeoeoeoeoeoeoeoe
Scratcher
99 posts

A Random Pen OS: Devlog

I, the one and only bug inspector appointed by @TeenyTea on August 5, 2023, presents the audience with the current Bug Report:
The Bug Report

Not fixed, yet:
  1. If you minimize all windows except one and then put the remaining window to fullscreen mode, un-fullscreening it will be buggy if you hold down the mouse. (Reported by me on August 4, 2023)

Fixed:
  1. Fullscreen window can be resized which is not what is supposed to happen in this pen window manager. (Fixed August 4, 2023, Reported by me on an unknown date)
  2. Dragging the header forcefully snaps window right on to the mouse cursor. (Fixed August 3, 2023, Reported by @TeenyTea on an unknown date)
  3. Resizing the window by dragging it on the top isn't working. (Fixed August 1 or 2, 2023, Reported by @TeenyTea on August 1 or 2, 2023)

Feel free to let me know if any of the information in the Bug Report is wrong or something needs to be added, removed, or changed. Note that suggestions for new features are NOT bugs.
And that, my friends, is the Bug Report.

Last edited by eoeoeoeoeoeoeoeoe (Aug. 6, 2023 17:18:38)


Hey.
when this sprite clicked
say [I feel good to be alive]
die :: motion


“Have you ever just?” - important quote
TeenySpoon
Scratcher
500+ posts

A Random Pen OS: Devlog

eoeoeoeoeoeoeoeoe wrote:

Dragging the header forcefully snaps window right on to the mouse cursor. (Fixed August 3, 2023, Reported by unknown (possibly me) on an unknown date)
Actually, I found that first (I knew it from the moment I made it).

eoeoeoeoeoeoeoeoe wrote:

And that, my friends, is the Bug Report.
Lol, thank you XD

⚜ TeenySpoon ⚜ Alt: TeenyTea
An absent-minded programmer/artist

A Random Pen Window Manager
⚜ Me ⚜ TeenyForkTeenyKnife

“We are pilgrims on the journey
We are travelers on the road
We are here to help each other
Walk the mile and bear the load”
- “The Servant Song”, David Haas
eoeoeoeoeoeoeoeoe
Scratcher
99 posts

A Random Pen OS: Devlog

TeenySpoon wrote:

eoeoeoeoeoeoeoeoe wrote:

Dragging the header forcefully snaps window right on to the mouse cursor. (Fixed August 3, 2023, Reported by unknown (possibly me) on an unknown date)
Actually, I found that first (I knew it from the moment I made it).

eoeoeoeoeoeoeoeoe wrote:

And that, my friends, is the Bug Report.
Lol, thank you XD
Ah ok.

Hey.
when this sprite clicked
say [I feel good to be alive]
die :: motion


“Have you ever just?” - important quote
josueart
Scratcher
100+ posts

A Random Pen OS: Devlog

So… ARPOS?


Check this Scratch status monitor I made with BetterStack: https://scratch.betteruptime.com
TeenySpoon
Scratcher
500+ posts

A Random Pen OS: Devlog

josueart wrote:

So… ARPOS?
Sorry, I’m not sure what that is?
(unless you mean Academic Research on Palm Oil Sustainability)

⚜ TeenySpoon ⚜ Alt: TeenyTea
An absent-minded programmer/artist

A Random Pen Window Manager
⚜ Me ⚜ TeenyForkTeenyKnife

“We are pilgrims on the journey
We are travelers on the road
We are here to help each other
Walk the mile and bear the load”
- “The Servant Song”, David Haas
TeenySpoon
Scratcher
500+ posts

A Random Pen OS: Devlog

TeenySpoon wrote:

josueart wrote:

So… ARPOS?
Sorry, I’m not sure what that is?
(unless you mean Academic Research on Palm Oil Sustainability)
Hold on, that’s the acronym for my project.
My brain sometimes lol

⚜ TeenySpoon ⚜ Alt: TeenyTea
An absent-minded programmer/artist

A Random Pen Window Manager
⚜ Me ⚜ TeenyForkTeenyKnife

“We are pilgrims on the journey
We are travelers on the road
We are here to help each other
Walk the mile and bear the load”
- “The Servant Song”, David Haas
josueart
Scratcher
100+ posts

A Random Pen OS: Devlog

TeenySpoon wrote:

Hold on, that’s the acronym for my project.
yep ;P


Check this Scratch status monitor I made with BetterStack: https://scratch.betteruptime.com

Powered by DjangoBB