Discuss Scratch
- eoeoeoeoeoeoeoeoe
- Scratcher
99 posts
A Random Pen OS: Devlog
For every function you implement that's about touching the window's parts, you will need to look at the “Input: Check Windows” function. Mostly… I was going to start working on diagonal resizing, but I discovered the mess known as “Input: Check Windows” so I guess refactoring is now high-priority T-T
After I finished working on that function I hoped I'd never have to look at it again…but here I am.
Last edited by eoeoeoeoeoeoeoeoe (Aug. 20, 2023 21:01:18)
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
The cloud/Scratchattach stuff sounds cool, maybe I'll do that after I finish the WMTo-Do List
Highest Priority
- Credit as many people as possible
- Use scratcchattach and scratchconnect to install wifi and internet drivers ( that would be really really cool! )
- Build web apps ( also i'm making my second browser and my goal is to be able to play a simple scratch game eg cloud pong )
⚜ TeenySpoon ⚜ Alt: TeenyTea ⚜
⚜ An absent-minded programmer/artist ⚜
A Random Pen Window Manager
⚜ Me ⚜ TeenyFork ⚜ TeenyKnife ⚜
“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
⚜ An absent-minded programmer/artist ⚜
A Random Pen Window Manager
⚜ Me ⚜ TeenyFork ⚜ TeenyKnife ⚜
“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
Widgets (change of plans)
After discovering the mess of the Input functions, I've decided to put of diagonal resizing and the other stuff so that I can work on reusable widgets.
That way, I can define stuff like buttons and create one function to handle the mouse detection for each widget.
(Also, I'm talking about something like Tkinter widgets, where I got the inspiration for this)
⚜ TeenySpoon ⚜ Alt: TeenyTea ⚜
⚜ An absent-minded programmer/artist ⚜
A Random Pen Window Manager
⚜ Me ⚜ TeenyFork ⚜ TeenyKnife ⚜
“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
⚜ An absent-minded programmer/artist ⚜
A Random Pen Window Manager
⚜ Me ⚜ TeenyFork ⚜ TeenyKnife ⚜
“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
3.1.1: Widgets: Overview
I created rectangle detection last week.
Today, I moved all the IcthusWidget stuff to the main IcthusWM project because it was easier (I had all the encode/decode blocks and things there).
I probably won't have time today, but I plan on creating all the encode/decode widget functions soon.
Here's the plan:
- encode/decode functions
- create widget function
- circle detection function
- change the input action variable and list
- rewrite Input functions to utilize widgets
After all that, I'll work on making the actual “widgets”:
- frame (doesn't do much except organize the widgets)
- text (single line and multiline)
- image
- button (text and image)
- switch
- slider
- menu
- dropdown menu
- dropdown options
- progress bar
- user input
Then I will completely rewrite most of the Input functions to use the widget functions.
And that brings us back to…
diagonal resizing, (and all the other original To Do list items)
the problem I was having in the first place!
Last edited by TeenySpoon (Aug. 30, 2023 14:05:47)
⚜ TeenySpoon ⚜ Alt: TeenyTea ⚜
⚜ An absent-minded programmer/artist ⚜
A Random Pen Window Manager
⚜ Me ⚜ TeenyFork ⚜ TeenyKnife ⚜
“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
⚜ An absent-minded programmer/artist ⚜
A Random Pen Window Manager
⚜ Me ⚜ TeenyFork ⚜ TeenyKnife ⚜
“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
very cool
Hey.
when this sprite clicked
say [I feel good to be alive]
die :: motion
“Have you ever just?” - important quote
- leGuyW0hasremixs4evr
- Scratcher
100+ posts
A Random Pen OS: Devlog
suggestions:
Hope you didnt get disturbed by the imagineMy Suggestions!
- 1. maybe make one program the notepad! dunno how you would write the text though…
- 2. when your programs minimize, you should make the programs
go to here:- 3. Allow yourself to see the System information
- 4. A tab for all apps? most wont work lol
- 5. Add a secret easter egg hehe like somehow you can get a bluescreen of death
That is all
Last edited by leGuyW0hasremixs4evr (Aug. 26, 2023 21:31:49)
when green flag clicked
forever
if ((...) + (...)) then
...
else
if ((...) - (...)) then
...
else
if ((...) * (...)) then
...
else
if ((...) / (...)) then
...
else
if (pick random (...) to (...)) then
...
else
if <[...] < [...]> then
...
else
if <[...] = [...]> then
...
else
if <[...] > [...]> then
...
else
if <User has an "a" on about me?> then
...
...
...
end
end
- chriscreators14
- Scratcher
500+ posts
A Random Pen OS: Devlog
See that line over there? Everything below it is my signature. You can advertise here.
Ctrl+Alt+Down or thingo do NOT ask to scroll
(/) // This is Kumqa, who sends evil kumquats back to their camp.
<[<>]::sound> // This is Orba, who dizzies enemies by rotating.
[hi] \/\/ This is Glitchya, who glitches thingos. // Oh, I fixed the comment bug now.
block haven {block gun (ammo::grey) (ammo::grey)::sensing} <true :: operators> // This is Signa, which makes letter guns.
define block haven (block thingo) <auto fire?>
forever
if <enemies? :: sensing> then
if <not <auto fire?>> then
if <key [space v] pressed> then
set [fire? v] to <true :: operators>
else
set [fire? v] to <true :: operators>
end
else
set [fire? v] to <true :: operators>
end
else
set [fire? v] to <false :: operators>
end
if <fire? :: variables> then
repeat (10)
create clone of [signa blocks]
end
broadcast (fire signa blocks v)
end
- TeenySpoon
- Scratcher
500+ posts
A Random Pen OS: Devlog
Good idea, I have seen examples of text input so I kinda have an idea of how I'll do that. maybe make one program the notepad! dunno how you would write the text though…
Very cool concept, I was thinking you could retrieve minimized windows using the taskbar icons, but I'll consider your idea too. when your programs minimize, you should make the programs
go to here
- image snip -
One thing to consider:
What if there are lots of minimized windows? Wouldn't that section get cluttered? Anyway, nice idea!
Lol, that would be funny. Idk about a blue screen of death but I'm into 5. Add a secret easter egg hehe like somehow you can get a bluescreen of deathColossal Cave Adventure rn (not the fake ones with graphics, I mean the real one from 1970-something) so I'm going to add an XYZZY easter egg.
Overall, interesting suggestion list. Thanks for your ideas!
Last edited by TeenySpoon (Aug. 29, 2023 19:49:45)
⚜ TeenySpoon ⚜ Alt: TeenyTea ⚜
⚜ An absent-minded programmer/artist ⚜
A Random Pen Window Manager
⚜ Me ⚜ TeenyFork ⚜ TeenyKnife ⚜
“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
⚜ An absent-minded programmer/artist ⚜
A Random Pen Window Manager
⚜ Me ⚜ TeenyFork ⚜ TeenyKnife ⚜
“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
Thanks! Any widgets that I missed? very cool
⚜ TeenySpoon ⚜ Alt: TeenyTea ⚜
⚜ An absent-minded programmer/artist ⚜
A Random Pen Window Manager
⚜ Me ⚜ TeenyFork ⚜ TeenyKnife ⚜
“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
⚜ An absent-minded programmer/artist ⚜
A Random Pen Window Manager
⚜ Me ⚜ TeenyFork ⚜ TeenyKnife ⚜
“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
- leGuyW0hasremixs4evr
- Scratcher
100+ posts
A Random Pen OS: Devlog
Very cool concept, I was thinking you could retrieve minimized windows using the taskbar icons, but I'll consider your idea too. when your programs minimize, you should make the programs
go to here
- image snip -
One thing to consider:
What if there are lots of minimized windows? Wouldn't that section get cluttered? Anyway, nice idea!
Hm.. Maybe you could make it smaller, or maybe add them on top of the ones that are already there.
Also, new suggestions lol
- add a task manager, in which if you open it, it prompts you to say -help (and you have a limited amount of commands such as close computer)
- thats all lol
Please do not overwork yourself, and hope you can get this whole thing done!
Last edited by leGuyW0hasremixs4evr (Aug. 27, 2023 03:08:34)
when green flag clicked
forever
if ((...) + (...)) then
...
else
if ((...) - (...)) then
...
else
if ((...) * (...)) then
...
else
if ((...) / (...)) then
...
else
if (pick random (...) to (...)) then
...
else
if <[...] < [...]> then
...
else
if <[...] = [...]> then
...
else
if <[...] > [...]> then
...
else
if <User has an "a" on about me?> then
...
...
...
end
end
- eoeoeoeoeoeoeoeoe
- Scratcher
99 posts
A Random Pen OS: Devlog
Oh my. The widgets are going to take a while…
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
You have really good ideas; I'm really sorry but I might not be able to use all of them due to the time involved. Thanks for your input though! Hm.. Maybe you could make it smaller, or maybe add them on top of the ones that are already there.
Also, new suggestions lol
- add a task manager, in which if you open it, it prompts you to say -help (and you have a limited amount of commands such as close computer)
- thats all lol
Please do not overwork yourself, and hope you can get this whole thing done!
I know… Oh my. The widgets are going to take a while…
I'll probably do the frame, label, and buttons, because those are the primitive widgets and I'm pretty sure I can just combine them to create most of the other ones. Besides, I'm going to need to finish my original to-do list, including diagonal resizing, so I'll just create the widgets that I need and add the extras as I go.
Last edited by TeenySpoon (Aug. 28, 2023 00:33:59)
⚜ TeenySpoon ⚜ Alt: TeenyTea ⚜
⚜ An absent-minded programmer/artist ⚜
A Random Pen Window Manager
⚜ Me ⚜ TeenyFork ⚜ TeenyKnife ⚜
“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
⚜ An absent-minded programmer/artist ⚜
A Random Pen Window Manager
⚜ Me ⚜ TeenyFork ⚜ TeenyKnife ⚜
“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
3.1.2: Widgets: Encode/Decode
Today I overcame procrastination and worked on the encode/decode functions. They're all rectangle-specific even though I also made one for circle detection.
One thing I did differently was split up the encode function into two (there is still one decode function though). I did this because there was an awful lot of parameters so I thought it was better to have one for the widget data and one for the mouse data (this will change the mouse properties list).
⚜ TeenySpoon ⚜ Alt: TeenyTea ⚜
⚜ An absent-minded programmer/artist ⚜
A Random Pen Window Manager
⚜ Me ⚜ TeenyFork ⚜ TeenyKnife ⚜
“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
⚜ An absent-minded programmer/artist ⚜
A Random Pen Window Manager
⚜ Me ⚜ TeenyFork ⚜ TeenyKnife ⚜
“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
Activity
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
Something that this project needs right now… Activity
⚜ TeenySpoon ⚜ Alt: TeenyTea ⚜
⚜ An absent-minded programmer/artist ⚜
A Random Pen Window Manager
⚜ Me ⚜ TeenyFork ⚜ TeenyKnife ⚜
“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
⚜ An absent-minded programmer/artist ⚜
A Random Pen Window Manager
⚜ Me ⚜ TeenyFork ⚜ TeenyKnife ⚜
“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
YesSomething that this project needs right now… Activity
Hey.
when this sprite clicked
say [I feel good to be alive]
die :: motion
“Have you ever just?” - important quote
- TeenyTea
- Scratcher
3 posts
A Random Pen OS: Devlog
3.1.3: Widgets: Check Each Widget
After months of inactivity, I finally took some time to work on this again!!
I'm currently building a function that checks a specific widget and changes the mouse property list to show this.
It's not a huge development, but eoeoeoeoeoeoeoeoe has been asking for
and here it is. Activity
Hopefully, after encapsulating these widget functions, the other code, especially for detecting windows, buttons, etc. will become a lot cleaner.
OOP concepts have been really helpful in this project, even though Scratch is arguably not an OOP language.
The alt of TeenySpoon
- TeenySpoon
- Scratcher
500+ posts
A Random Pen OS: Devlog
And if anyone's wondering why this project had a bit of a dormant period, you can blame upcoming admissions exams.
⚜ TeenySpoon ⚜ Alt: TeenyTea ⚜
⚜ An absent-minded programmer/artist ⚜
A Random Pen Window Manager
⚜ Me ⚜ TeenyFork ⚜ TeenyKnife ⚜
“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
⚜ An absent-minded programmer/artist ⚜
A Random Pen Window Manager
⚜ Me ⚜ TeenyFork ⚜ TeenyKnife ⚜
“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
- leGuyW0hasremixs4evr
- Scratcher
100+ posts
A Random Pen OS: Devlog
upcoming admissions exams.This is very true. School is usually around 8 am to 2pm, which would be a 6 hour loss. oof. Atleast you dont have saturday school And if anyone's wondering why this project had a bit of a dormant period, you can blame like me
when green flag clicked
forever
if ((...) + (...)) then
...
else
if ((...) - (...)) then
...
else
if ((...) * (...)) then
...
else
if ((...) / (...)) then
...
else
if (pick random (...) to (...)) then
...
else
if <[...] < [...]> then
...
else
if <[...] = [...]> then
...
else
if <[...] > [...]> then
...
else
if <User has an "a" on about me?> then
...
...
...
end
end
- eoeoeoeoeoeoeoeoe
- Scratcher
99 posts
A Random Pen OS: Devlog
ok
Hey.
when this sprite clicked
say [I feel good to be alive]
die :: motion
“Have you ever just?” - important quote