Personal Libraries | Dev-log & announcements

This is a dev-log for my Snap! mod, Personal Library. I've been working in it since December or so, and so far it's worked for everyone. This mod is available to anyone, and if you come across a problem, please do let me know. Thank you. :slight_smile:

Release log:

PL 1.0_b (Public build 1) Changes:

  • The mod was published

PL 1.1_b (Public build 2) Changes:

  • Some code edits
  • Added multi-mod support
  • Library loading error was altered for ease of access (copy button top right)
  • \colorbox{white}{\textsf{\color{#004080}About PL mod...}} was changed to \colorbox{white} {\textsf{\color{#000}About \textbf{\color{#c000c0}Personal \color{#00c0c0}Library}}}
  • Also the About dialog has been changed. Credits can be seen by shift-clicking the About button
  • Thanks/info dialog will show up upon activation
  • Import/export added! Users can now create .spl files and send them to their friends. :wink:
    • Import allows .txt, .text, and .spl files. Files are formatted in this way:
      name=Library name
      description=This is my cool library!
      xml=<blocks><!-- xml --></blocks>
      
      but files are always saved as an .spl file. They can be renamed. Every file extension is treated the same.

Original post... or in other words, the earliest mod screenshot ;)

3 words: already on it.

I am not sure... how?

nice! can you make a PR?

Of course, once I'm finished with it. :slight_smile:

I was working on the mod when I noticed that the input fields look like the darker part of cooked chicken :frowning: I don't quite understand how this happened but it's probably going to stay like this until I find a fix.

Edit: nevermind, found it out. The input field object inherits the color of the container, when the aligner had the default morph color. If you don't understand, don't worry I don't either.

I'm in a predicament right now... in a bit of a pickle, maybe. In a sticky situation, one may call it. Maybe in... I'll stop.

Anyway, before creating the library, the user will see this, right?

And after clicking OK, it sends the XML to the other dialog (that's not the problem right now! that was fairly easy to do) and (here's the problem) it's supposed to show the blocks to the right of the create library dialog. But I don't know how to do that.


The new dialog is like watching your kid grow up. Makes me happy.
I searched for the library's display block code and I didn't find anything I think would help me. I really don't want to have to ditch the preview display. Please, does anyone know what to do here?

No worries, it's all fixed! I could definitely see this being released soon. :slight_smile:

Mod's almost done. I just need to let the personal libraries take in XML code instead of library files. This will be great... File:MOREmoji squee.svg

Looks good! How would the personal libraries be sorted though?

Would adore for this to be officially part of vanilla Snap!, like the developers did with Snap Dark Flat Theme.

I haven't added sorting yet. I haven't even added deleting yet! I totally forgot about that. Yeah, alright right now libraries are sorted by newest last.

If you do, please add the ability to add a "space above" (or maybe sections).

yeah, maybe you could copy the third section of this custom block dialogue:

Why do you want to duplicate libraries? Can't you just load a library, edit it, the save as a new library?

yeah, that's what I meant. nvm.

I've looked at the code for this before and it just changes variables to change the order of blocks specifically in the pallet, so maybe it should'nt be that hard to incorporate?

oh, that's good.

My honest thought was that it could be added post- or during resorting. It would probably be a separate option to arrange them, and it would not be a right click user menu thing.

Would you guys like me making a personal library dev log forum post?

any updates on this?

Beta soon

Beta released!

It may be a bit broken but it sure as heck is better than nothing.

plib

Drag this little cutie into an active Snap! window, activate JavaScript extensions, and activate the script. Your personal libraries can be found in :file_icon: > Personal libraries.

Have fun and report bugs. :slight_smile: