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.
136 lines
2.7 KiB
Plaintext
136 lines
2.7 KiB
Plaintext
#include "Content\\ShellScripts\\stddefs.h"
|
|
#include "Content\\ShellScripts\\ScriptStrings.h"
|
|
#include "Content\\ShellScripts\\buttons.script"
|
|
#include "Content\\ShellScripts\\common_shell.script"
|
|
#include "Content\\ShellScripts\\ShellFunctionHeaders.hpp"
|
|
#include "Content\\ShellScripts\\MechLabHeaders.h"
|
|
|
|
main
|
|
{
|
|
GUI_CREATE
|
|
{
|
|
object screen = o_Cinema_Credits_Screen
|
|
initialize(screen)
|
|
focus(screen)
|
|
}
|
|
}
|
|
|
|
o_Cinema_Credits_Screen
|
|
{
|
|
GUI_CREATE
|
|
{
|
|
@SHELL@bkg = GPATH "CC_Background.tga"
|
|
|
|
object o_frame = frame
|
|
o_frame.location = 0, 0, 100
|
|
o_frame.screen_name = localize$(IDS_MM_CINEMACREDITS)
|
|
initialize(o_frame)
|
|
|
|
object o_mouselines = mouselines
|
|
o_mouselines.location = 0, 0, o_frame.location.z - 1
|
|
|
|
int iloop
|
|
int twidth
|
|
int num_of_buttons = 2
|
|
object mbutton[num_of_buttons]
|
|
for iloop = 0; iloop < num_of_buttons; iloop++
|
|
{
|
|
mbutton[iloop] = s_textbutton
|
|
mbutton[iloop].textcolor = 0xffffffff
|
|
mbutton[iloop].textsize = 1
|
|
mbutton[iloop].id = iloop
|
|
}
|
|
|
|
mbutton[0].text = localize$(IDS_CC_CREDITS)
|
|
mbutton[1].text = localize$(IDS_CC_MAINMENU)
|
|
|
|
for iloop = 0; iloop < num_of_buttons; iloop++
|
|
{
|
|
initialize(mbutton[iloop])
|
|
}
|
|
|
|
mbutton[0].location = (getresx() / 2) - (getprint3dwidth(localize$(IDS_CC_CREDITS)) /2), 375, 10
|
|
mbutton[1].location = (getresx() / 2) - (getprint3dwidth(localize$(IDS_CC_MAINMENU)) /2), 475, 10
|
|
|
|
int i
|
|
for i = 0; i < num_of_buttons; i++
|
|
{
|
|
initialize(mbutton[i])
|
|
}
|
|
|
|
String closing_movie
|
|
int play_closing
|
|
play_closing = callback($$Shell_CallbackHandler$$, ShellGetClosingCinema, closing_movie)
|
|
|
|
framerate = 10
|
|
|
|
sound btnTriggeredSound = SPATH "sfx_button5.wav"
|
|
}
|
|
|
|
GUI_INIT
|
|
{
|
|
@SHELL@bkg = GPATH "CC_Background.tga"
|
|
|
|
}
|
|
|
|
GUI_DRAW
|
|
{
|
|
render @SHELL@bkg,@SHELL@location
|
|
}
|
|
|
|
GUI_MAILBOX
|
|
{
|
|
if (sender == mbutton[0])
|
|
{
|
|
play btnTriggeredSound,1
|
|
unfocus
|
|
script_pause //"Cinema_Credits",2
|
|
script_run "Content\\ShellScripts\\CreditsCinema.script", 0x1100
|
|
initialize(this)
|
|
}
|
|
if (sender == mbutton[1])
|
|
{
|
|
play btnTriggeredSound,1
|
|
unfocus
|
|
@SHELL@lastScreenDepth++
|
|
@SHELL@lastScreen[@SHELL@lastScreenDepth] = CINEMAOPTIONS
|
|
@SHELL@currentScreen = MAINMENU
|
|
}
|
|
}
|
|
|
|
GUI_DESTROY
|
|
{
|
|
unfocus
|
|
}
|
|
|
|
GUI_CONTINUE
|
|
{
|
|
initialize(this)
|
|
spew"Got Continue"
|
|
}
|
|
|
|
GUI_PAUSE
|
|
{
|
|
spew"Got Pause"
|
|
}
|
|
}
|
|
|
|
region_block
|
|
{
|
|
GUI_CREATE
|
|
{
|
|
int region_width
|
|
int region_height
|
|
int block
|
|
|
|
region = 0,0 to 0,0
|
|
}
|
|
|
|
GUI_EXECUTE
|
|
{
|
|
if block == true
|
|
{
|
|
region = 0, 0 to region_width,region_height
|
|
}
|
|
}
|
|
} |