Hi, can you display the sprites name on 2 lines plz, 9-10 char isin't enough...
the names of these sprites are "visible button" and "submit button"
maybe display it like this:
visible
button
look at this project, it's not easy to find the right sprite with the name:
Maybe use short names.
btSave
Save
Submit
I feel like that could potentially lead to some super unreadable / ugly code.
dardoro
November 10, 2024, 12:48am
4
A visual clue about the sprite or Hungarian-like notation?
Booth seems to be practical and beneficial in the long run.
You can also reorder sprites to group them based on their purpose.
A single sprite with multiple costumes may handle similar use cases.
Of course, it's a matter of personal preferences...
dardoro
November 17, 2024, 2:47am
5
You may try this user script to display a sprite name as a hint (when you hover over sprite icon)
Summary
// ==UserScript==
// @name Snap! Sprite name hint
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Snap! Sprite name hint
// @author DarDoro@Snap || Snap
// @match https://snap.berkeley.edu/snap/snap.html
// @icon
// @grant none
// @run-at document-start
// ==/UserScript==
(function() {
'use strict';
SpriteIconMorph.prototype._init ||= SpriteIconMorph.prototype.init;
SpriteIconMorph.prototype.init = function( aSprite){
this._init( aSprite);
this.hint = () => {
let parent = '';
if( aSprite?.exemplar)
parent = '\n'+localize('parent') + ':\n' + aSprite.exemplar.name;
return aSprite.name+parent;
};
}
})();
system
Closed
December 17, 2024, 10:53am
7
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.