Discuss Scratch
- Discussion Forums
- » Developing Scratch Extensions
- » Remove check boxes?
- EDO2012
- Scratcher
100+ posts
Remove check boxes?
(function(ext) {
ext._shutdown = function() {};
ext._getStatus = function() {
return {status: 2, msg: 'Ready'};
};
ext.user = function(a) {
return Scratch.INIT_DATA.LOGGED_IN_USER.model.username;
};
ext.teacher = function(a) {
return Scratch.INIT_DATA.LOGGED_IN_USER.model.is_educator;
};
ext.student = function(a) {
return Scratch.INIT_DATA.LOGGED_IN_USER.model.is_student;
};
ext.pic = function(a) {
return Scratch.INIT_DATA.LOGGED_IN_USER.model.thumbnail_url;
};
ext.picOpen = function(a) {
window.open(Scratch.INIT_DATA.LOGGED_IN_USER.model.thumbnail_url);
};
ext.id = function(a) {
return Scratch.INIT_DATA.LOGGED_IN_USER.model.id;
};
ext.profileOpen = function(a) {
window.open(Scratch.INIT_DATA.LOGGED_IN_USER.model.profile_url);
};
ext.profile = function(a) {
return Scratch.INIT_DATA.LOGGED_IN_USER.model.profile_url;
};
var descriptor = {
blocks: [
['r', 'username', 'user'],
['r', 'user ID', 'id'],
['b', 'is teacher?', 'teacher'],
['b', 'is student?', 'student'],
['r', 'profile pic URL', 'pic'],
[' ', 'open profile pic', 'picOpen'],
['r', 'profile URL', 'profile'],
[' ', 'open profile', 'profileOpen'],
],
};
ScratchExtensions.register("User Information", descriptor, ext);
})({});
- _nix
- Scratcher
1000+ posts
Remove check boxes?
Why would you want to get rid of them?
As far as I know adding an input to a reporter block will get rid of its checkbox. But that's the only way.
As far as I know adding an input to a reporter block will get rid of its checkbox. But that's the only way.
══ trans autistic lesbian enbydoggirls // 16 17 18 19 20, she/they ════
sparrows one word to the paragraph // <3 // ~(quasar) nebula
- savaka
- Scratcher
1000+ posts
Remove check boxes?
Yes, just add an input, for example: Why would you want to get rid of them?
As far as I know adding an input to a reporter block will get rid of its checkbox. But that's the only way.
['r', 'profile pic URL', 'pic', '']
- _nix
- Scratcher
1000+ posts
Remove check boxes?
Oh, that's clever!Yes, just add an input, for example: Why would you want to get rid of them?
As far as I know adding an input to a reporter block will get rid of its checkbox. But that's the only way.I used an empty string and it won't show anywhere since the block doesn't actually have any inputs['r', 'profile pic URL', 'pic', '']
══ trans autistic lesbian enbydoggirls // 16 17 18 19 20, she/they ════
sparrows one word to the paragraph // <3 // ~(quasar) nebula
- EDO2012
- Scratcher
100+ posts
Remove check boxes?
That's smart. ThanksYes, just add an input, for example: Why would you want to get rid of them?
As far as I know adding an input to a reporter block will get rid of its checkbox. But that's the only way.I used an empty string and it won't show anywhere since the block doesn't actually have any inputs['r', 'profile pic URL', 'pic', '']
- ShiranC
- New to Scratch
3 posts
Remove check boxes?
What is it for? I don't know. Probably nothing will happen, but I still doesn't know the use of it. Maybe try ticking it when you are using it. Just ignore it. You'd better go to scratch wiki.
- _nix
- Scratcher
1000+ posts
Remove check boxes?
hey there! this is a quite old topic youve come across—take a look at the date at the top left of the first post. it was already resolved back in 2016, and its generally considered good forum etiquette not to post on old threads (called What is it for? I don't know. Probably nothing will happen, but I still doesn't know the use of it. Maybe try ticking it when you are using it. Just ignore it. You'd better go to scratch wiki.“necroposting”—click for more info) unless you have something important and relevant to add today. just so youre aware for the future
══ trans autistic lesbian enbydoggirls // 16 17 18 19 20, she/they ════
sparrows one word to the paragraph // <3 // ~(quasar) nebula
- Zebmag
- Scratcher
49 posts
Remove check boxes?
he hehow do you understand all of this can somebody teach me
'Landfil does not mean Rubbish. its precious you never know what you'll find in it'-Zebmag
I go bin diving. try it bc it's fun. more than you think actually…
i find cool things, once i found an amethyst necklace i washed it and wear it every day now
- -MyNewAccount-
- Scratcher
1000+ posts
Remove check boxes?
Please make your own topics; if you have questions, I recommend creating a topic here.he hehow do you understand all of this can somebody teach me
cami ~ she-her
Raise a glass to freedom, something they can never take away, no matter what they tell you. • John Laurens
Raise a glass to freedom, something they can never take away, no matter what they tell you. • John Laurens
- Discussion Forums
- » Developing Scratch Extensions
- » Remove check boxes?