Coder Social home page Coder Social logo

Multicolored Comments about scratchaddons HOT 17 OPEN

BlueDome77 avatar BlueDome77 commented on June 21, 2024
Multicolored Comments

from scratchaddons.

Comments (17)

CubesterYT avatar CubesterYT commented on June 21, 2024 2

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.

WorldLanguages avatar WorldLanguages commented on June 21, 2024 2

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.

mxmou avatar mxmou commented on June 21, 2024 2

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.

Samq64 avatar Samq64 commented on June 21, 2024 1

The customizable block colours addon already has an option to change the colour of comments, but not individually.

from scratchaddons.

DNin01 avatar DNin01 commented on June 21, 2024 1

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:

  1. 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

  1. 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.

DNin01 avatar DNin01 commented on June 21, 2024

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.

WorldLanguages avatar WorldLanguages commented on June 21, 2024

No one wants to say where the color would be stored?

from scratchaddons.

DNin01 avatar DNin01 commented on June 21, 2024

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.

DNin01 avatar DNin01 commented on June 21, 2024

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.

Secret-chest avatar Secret-chest commented on June 21, 2024

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.

BroJac5246 avatar BroJac5246 commented on June 21, 2024

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.

Secret-chest avatar Secret-chest commented on June 21, 2024

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.

WorldLanguages avatar WorldLanguages commented on June 21, 2024

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.

BlueDome77 avatar BlueDome77 commented on June 21, 2024

Maybe this extension by SharkPool could spark some new ideas

from scratchaddons.

Secret-chest avatar Secret-chest commented on June 21, 2024

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.

Secret-chest avatar Secret-chest commented on June 21, 2024

If the palette index is too large (palette is too small), they should either repeat or use the default colour.

from scratchaddons.

ajskateboarder avatar ajskateboarder commented on June 21, 2024

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 :shipit:

from scratchaddons.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.