Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
12
Task/Window-creation/Lingo/window-creation.lingo
Normal file
12
Task/Window-creation/Lingo/window-creation.lingo
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
win = window().new("New Window")
|
||||
w = 320
|
||||
h = 240
|
||||
firstScreen = _system.deskTopRectList[1]
|
||||
x = firstScreen.width/2 - w/2
|
||||
y = firstScreen.height/2- h/2
|
||||
win.rect = rect(x,y,x+w,y+h)
|
||||
-- Director needs a binary movie file (*.dir) for opening new windows. But this
|
||||
-- movie file can be totally empty, and if it's write protected in the filesystem,
|
||||
-- it can be re-used for multiple windows.
|
||||
win.filename = _movie.path & "empty.dir"
|
||||
win.open()
|
||||
Loading…
Add table
Add a link
Reference in a new issue