This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-03-01 20:19:25

funelephant
Scratcher
Registered: 2010-07-02
Posts: 1000+

Dialog at Startup

How do you make a dialog show up right when you open scratch?

(Like in Panther, the Panther News)


nicki begs to differ
http://24.media.tumblr.com/ab0e6e8fd347c5e39c2821bcab9d16e6/tumblr_mgu35sui1L1rfb7aqo2_500.gif

Offline

 

#2 2012-03-01 21:24:49

funelephant
Scratcher
Registered: 2010-07-02
Posts: 1000+

Re: Dialog at Startup

Bumpppppppppppppp


nicki begs to differ
http://24.media.tumblr.com/ab0e6e8fd347c5e39c2821bcab9d16e6/tumblr_mgu35sui1L1rfb7aqo2_500.gif

Offline

 

#3 2012-03-01 21:29:52

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: Dialog at Startup

Just rip another mod, that's what I did.


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#4 2012-03-01 22:14:55

trinary
Scratcher
Registered: 2012-01-29
Posts: 1000+

Re: Dialog at Startup

Look at the code for Panther.


http://trinary.tk/images/signature_.php

Offline

 

#5 2012-03-01 22:24:47

funelephant
Scratcher
Registered: 2010-07-02
Posts: 1000+

Re: Dialog at Startup

trinary wrote:

Look at the code for Panther.

Where is the code in the browser?


nicki begs to differ
http://24.media.tumblr.com/ab0e6e8fd347c5e39c2821bcab9d16e6/tumblr_mgu35sui1L1rfb7aqo2_500.gif

Offline

 

#6 2012-03-02 11:18:12

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Dialog at Startup

jvvg wrote:

Just rip another mod, that's what I did.

Yeah, you did didn't you  tongue
**

Bingo has a dialog, and the way I did it was to add code in the "startup" method of ScratchFrameMorph to make a DialogBoxMorph show.

It's actually called startup, and it does all sorts of things like resetting categories and opening projects if needed. So just add a line somewhere in the code that looks a bit like this:

DialogBoxMorph inform: 'hey guys!' title: 'news'.

Offline

 

Board footer