deffn_getFileName
local ok% : ok% = 1
local Quit% : Quit% = 2
local Edit% : Edit% = 100
local Static% : Static% = 101
local click% , a$ , b$
local message$
if Pointer% = 1 then
message$ = "Enter a filename for this video"
else
message$ = "Enter a name for this collection of videos"
endif
proc_showdialog(NAME%)
proc_setDialogText(NAME%, Static%, message$)
click% = fn_click(str$(ok%)+","+str$(Quit%))
case true of
when click% = ok%
b$ = fn_getEdit(NAME%, Edit%)
if b$<>"" then
a$ = DOC$+"\"+b$+".html"
else
a$ = DOC$+"\default.html"
endif
otherwise
a$ = ""
endcase
proc_closedialog(NAME%)
= a$
defproc_checkSetup
rem checks that the user has a folder in my documents
DOC$ = fn_specialFolder(5)
if fn_folderExists( DOC$+"\My_"+GAME_NAME$+"_Projects" ) then
rem do nothing
else
rem make projects folder
oscli "MKDIR """+DOC$+"\My_"+GAME_NAME$+"_Projects"+""""
rem inform user
proc_OK("It looks like you are running "+GAME_NAME$+" for the first time on this computer. I have created"\
\+" a new folder:"+LF$+LF$+DOC$+"\My_"+GAME_NAME$+"_Projects"+LF$+LF$+"I will save your embedded video files there.")
endif
endproc