Complete disaster-recovery snapshot: engine/game source, game data assets, VC6 toolchain + DX SDKs, build outputs, deployed game, and _UNUSED archive. Large binaries in Git LFS; text preserved byte-for-byte (core.autocrlf=false, no eol attributes). See RECOVERY.md for the one-clone rebuild procedure.
105 lines
1.5 KiB
Plaintext
105 lines
1.5 KiB
Plaintext
#include "Content\\ShellScripts\\stddefs.h"
|
|
#define nMSG_StopMovie 69
|
|
#define nMSG_MovieStop 70
|
|
|
|
main
|
|
{
|
|
GUI_CREATE
|
|
{
|
|
object o_cinema = cinema_script
|
|
focus(o_cinema)
|
|
}
|
|
|
|
GUI_DRAW
|
|
{
|
|
setpencolor(0,0,0,255)
|
|
drawrect 0,0 to getresx(),74
|
|
drawrect 0,(getresy() - 74) to getresx(), getresy()
|
|
}
|
|
|
|
}
|
|
|
|
cinema_script
|
|
{
|
|
GUI_CREATE
|
|
{
|
|
@mouse@pointer.showMousePointer = 0
|
|
|
|
stop 0
|
|
|
|
location = 0, 73, 0
|
|
|
|
movie cinema = szPATH_MOVIES "Gameopen.mpg"
|
|
scale (cinema) = 167, 167, 100
|
|
play cinema
|
|
region = 0,0 to 800,600
|
|
|
|
framerate = 10
|
|
|
|
int mstop
|
|
}
|
|
|
|
LBUTTON_UPDATE
|
|
{
|
|
if (mouse.left == BUTTON_PRESSED)
|
|
{
|
|
mail(nMSG_StopMovie,this)
|
|
}
|
|
}
|
|
|
|
GUI_DRAW
|
|
{
|
|
render cinema, location
|
|
}
|
|
|
|
GUI_MAILBOX
|
|
{
|
|
if(mstop ==1)
|
|
{
|
|
return
|
|
}
|
|
if (getmessage() == nMSG_StopMovie || getmessage() == nMSG_MovieStop)
|
|
{
|
|
mstop = 1
|
|
stop cinema
|
|
unfocus
|
|
|
|
if (getvolume(0))
|
|
loop @SHELL@music, 0
|
|
|
|
if(exists(@CampaignScreen@))
|
|
{
|
|
script_continue @CampaignScreen@
|
|
}
|
|
|
|
if(exists(@Cinema_Credits@))
|
|
{
|
|
script_continue @Cinema_Credits@
|
|
}
|
|
script_end
|
|
|
|
@mouse@pointer.showMousePointer = 1
|
|
}
|
|
}
|
|
|
|
GUI_EXECUTE
|
|
{
|
|
if (getstatus(cinema) == 3)
|
|
{
|
|
mail(nMSG_MovieStop,this)
|
|
}
|
|
}
|
|
GUI_CHAR
|
|
{
|
|
int ch = getchar()
|
|
|
|
if (ch == char(" ")) // only escape or space exit the cinema
|
|
{
|
|
mail(nMSG_StopMovie,this)
|
|
}
|
|
if (ch == 27)
|
|
{
|
|
mail(nMSG_StopMovie,this)
|
|
}
|
|
}
|
|
} |