Discuss Scratch

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);
})({});
I was making this extension and I noticed that there are check boxes by each of these reporter blocks. How do I get rid of these?


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

══ 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?

_nix wrote:

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.
Yes, just add an input, for example:
['r', 'profile pic URL', 'pic', '']
I used an empty string and it won't show anywhere since the block doesn't actually have any inputs
_nix
Scratcher
1000+ posts

Remove check boxes?

savaka wrote:

_nix wrote:

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.
Yes, just add an input, for example:
['r', 'profile pic URL', 'pic', '']
I used an empty string and it won't show anywhere since the block doesn't actually have any inputs
Oh, that's clever!

══ 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?

savaka wrote:

_nix wrote:

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.
Yes, just add an input, for example:
['r', 'profile pic URL', 'pic', '']
I used an empty string and it won't show anywhere since the block doesn't actually have any inputs
That's smart. Thanks


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?

ShiranC wrote:

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.
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 “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 he
how 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?

Zebmag wrote:

he he
how do you understand all of this can somebody teach me
Please make your own topics; if you have questions, I recommend creating a topic here.

cami ~ she-her
Raise a glass to freedom, something they can never take away, no matter what they tell you. • John Laurens

Powered by DjangoBB