Comments (17)
It could be a JSON tag stored in the comment text field. Non addon users would see that tag, addon users won't see the tag, but a colored comment.
from scratchaddons.
It could be a JSON tag stored in the comment text field. Non addon users would see that tag, addon users won't see the tag, but a colored comment.
Those comments would be quite hard (unpleasant) to read by non addon users.
from scratchaddons.
It could be a JSON tag stored in the comment text field. Non addon users would see that tag, addon users won't see the tag, but a colored comment.
Those comments would be quite hard (unpleasant) to read by non addon users.
Why not just add the hex color code to the comment text (no JSON)?
from scratchaddons.
The customizable block colours addon already has an option to change the colour of comments, but not individually.
from scratchaddons.
Also, instead of using a color picker, we could show a palette of preset colors to choose from
I'm fine with there not being a picker, as long as we're not storing the hex code but a palette index. That would make it very hard to change the colours
Not to say that customization is a bad thing, but this is one reason having only predetermined colors to choose from can be simpler to design and a nicer user experience.
Or, some ways to keep the color picker and make it easy to change all occurrences of a color could be:
- There are a few (maybe 8) preset colors to choose from, but you can change them. This palette would be global, so changing any one of these colors would update it across all comments.
or
- You can pick your own, custom colors to add to the palette, which could either start empty or have a few preset colors to start with. The palette would be global, so changing any one of these colors would update it across all comments. To change the color of a single comment, you would just add a new color to assign.
from scratchaddons.
Also note that the border of comments that are attached to blocks inherit the color of the block, so, for example, if a comment is attached to a motion block, its border will be colored blue.
But I don't think that would be a big problem.
from scratchaddons.
No one wants to say where the color would be stored?
from scratchaddons.
Would it hurt to store color data internally in the project file? That wouldn't corrupt anything, right?
We could also store the data in a configuration comment in the stage (much like we do with Gamepad support). Every comment has an invisible ID, so this comment could contain key-value pairs, with the color associated with each comment by ID.
from scratchaddons.
Also, instead of using a color picker, we could show a palette of preset colors to choose from, or we could do both. It just means you could select colors faster.
from scratchaddons.
Also, instead of using a color picker, we could show a palette of preset colors to choose from, or we could do both. It just means you could select colors faster.
If we store the full RGB code then we could do both. I'd like to have a customisable palette of 8 or so colours which would apply to each comment (changing colour 1 changes all comments with it)
from scratchaddons.
It could be a JSON tag stored in the comment text field. Non addon users would see that tag, addon users won't see the tag, but a colored comment.
Those comments would be quite hard (unpleasant) to read by non addon users.
Why not just add the hex color code to the comment text (no JSON)?
Would that be more vulnerable to false positives? Maybe it could be preceded by a zero-width-space to help verify we added it?
from scratchaddons.
Also, instead of using a color picker, we could show a palette of preset colors to choose from
I'm fine with there not being a picker, as long as we're not storing the hex code but a palette index. That would make it very hard to change the colours
from scratchaddons.
Would it hurt to store color data internally in the project file? That wouldn't corrupt anything, right?
I think in general the guideline we use is that if it can be done with the backpack, then it can be done with an addon. For example, the debugger blocks (log, breakpoint, etc.) do not have any definitions within the same sprite, but you can also achieve that in vanilla Scratch by using the backpack, you just need to define those custom blocks in some other project and drag the custom block calls to the backpack.
from scratchaddons.
Maybe this extension by SharkPool could spark some new ideas
from scratchaddons.
There are a few (maybe 8) preset colors to choose from, but you can change them. This palette would be global, so changing any one of these colors would update it across all comments.
That's what I was trying to say. Instead of storing the RGB value we store an index of the palette.
from scratchaddons.
If the palette index is too large (palette is too small), they should either repeat or use the default colour.
from scratchaddons.
Would it hurt to store color data internally in the project file? That wouldn't corrupt anything, right?
Nope, storing it in the JSON is doable
from scratchaddons.
Related Issues (20)
- Hover over a custom block input to see the name of it as a tooltip HOT 1
- Legal: Should the licenses page include the author and copyright year? HOT 1
- An extension to clear certain lists on save HOT 5
- Interpolation HOT 3
- Finding the root cause of the constant log-outs HOT 12
- Invalid addon.json causes error page to repeatedly open
- Addons turning off automatically maybe because of synchronization HOT 2
- `turbowarp-player`: gamepad, fullscreen and player options do not follow darkmode scheme HOT 1
- "Add this project" button in cloud games popup is not centered
- variables on the variables tab for this sprite only are showing variables from different sprites
- `editor-compact`: costume number clips into preview HOT 3
- hi-res-thumbnails: cat thumbnail bug HOT 7
- `sprite-properties` + `editor-compact`: sprite pane gets cut off HOT 3
- Improve the flow of host permission granting HOT 9
- `collapse-footer` addon description has a typo HOT 1
- Better types for userscript addons HOT 8
- Link to other scripts from editor comments HOT 4
- Go into project without triggering save project button to appear HOT 10
- Customizable Block Shape: Flat hat blocks HOT 2
- transition to scratch.org HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scratchaddons.