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.
117 lines
2.9 KiB
Plaintext
117 lines
2.9 KiB
Plaintext
#include "Content\\ShellScripts\\stddefs.h"
|
|
#include "Content\\ShellScripts\\common_shell.script"
|
|
#include "Content\\ShellScripts\\ScriptStrings.h"
|
|
#include "Content\\ShellScripts\\ShellFunctionheaders.hpp"
|
|
|
|
#include "Content\\ShellScripts\\listboxes.script"
|
|
#include "Content\\ShellScripts\\mc_listboxes.script"
|
|
#include "Content\\ShellScripts\\buttons.script"
|
|
#include "Content\\ShellScripts\\c_Pane.script"
|
|
#include "Content\\ShellScripts\\c_MoviePlayer.script"
|
|
#include "Content\\ShellScripts\\c_Rollover.script"
|
|
#include "Content\\ShellScripts\\c_Text.script"
|
|
#include "Content\\ShellScripts\\c_Toggles.script"
|
|
#include "Content\\ShellScripts\\c_InfoRegion.script"
|
|
|
|
main
|
|
{
|
|
GUI_CREATE
|
|
{
|
|
int MAX_MCCB_COLUMNS = 4
|
|
int MAX_MCCB_ITEMS = 264
|
|
|
|
// use the whole region
|
|
location = 0, 0, 0
|
|
region = 0, 0 to getresx(), getresy()
|
|
|
|
object oRollover = s_HelpRegion
|
|
oRollover.location = 37,494,100//nZ_HELPREGION
|
|
oRollover.nWidth = 0
|
|
oRollover.nHeight = 0
|
|
initialize(oRollover)
|
|
|
|
object oPane = s_Pane
|
|
oPane.location = 0,0,0
|
|
oPane.szBitmap = GPATH "Pause_Control_Background.tga"
|
|
oPane.nFrames = 1
|
|
oPane.nCurrFrame = 0
|
|
oPane.nMode = 0
|
|
oPane.fVolatile = 0
|
|
oPane.fRegion = 0
|
|
oPane.nHelpID = -1
|
|
initialize(oPane)
|
|
|
|
//Buttons
|
|
object o_mainmenu_button = s_multistatepane
|
|
o_mainmenu_button.file = WPATH "button_reg_200x27m_4state.tga"
|
|
o_mainmenu_button.total_states = 4
|
|
o_mainmenu_button.location = 572, 533, nZ_BUTTON
|
|
o_mainmenu_button.nRollover = 1
|
|
o_mainmenu_button.nHelpID = IDS_HELP_PAUSE_CLOSE
|
|
o_mainmenu_button.text = localize$(IDS_GN_CLOSE)
|
|
initialize (o_mainmenu_button)
|
|
|
|
sound btnTriggeredSound = SPATH "sfx_button5.wav"
|
|
object pointer = o_MousePointer
|
|
pointer.showMousePointer = 1
|
|
}
|
|
|
|
GUI_EXECUTE
|
|
{
|
|
if (exists(@OM_Controls@) == 0)
|
|
mail(1000, this)
|
|
}
|
|
|
|
GUI_MAILBOX
|
|
{
|
|
if (getmessage() == 1000)
|
|
{
|
|
script_run "Content\\ShellScripts\\OM_Controls.script", 0x1000
|
|
|
|
@OM_Controls@oRollover.location = 41,497,100//nZ_HELPREGION
|
|
@OM_Controls@oRollover.nWidth = 522
|
|
@OM_Controls@oRollover.nHeight = 67
|
|
initialize(@OM_Controls@oRollover)
|
|
|
|
}
|
|
|
|
switch(sender)
|
|
{
|
|
case o_mainmenu_button:
|
|
{
|
|
play btnTriggeredSound,1
|
|
unfocus
|
|
mail(-1, @OM_Controls@)
|
|
if (exists(@PauseServer@))
|
|
activate(@PauseServer@screen)
|
|
if (exists(@PauseClient@))
|
|
activate(@PauseClient@screen)
|
|
callback($$SetShellCommand$$, UnsetPauseOptionResCommand)
|
|
}
|
|
break
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
// A utility class for showing the mouse pointer when the pause menu is active
|
|
o_MousePointer
|
|
{
|
|
GUI_CREATE
|
|
{
|
|
int showMousePointer = 1
|
|
|
|
pane p_pointer = GPATH "mouse_pointer.tga"
|
|
alphamode(p_pointer) = am_alpha_alphainvalpha
|
|
origin(p_pointer) = 0, 0
|
|
location.z = 255
|
|
}
|
|
|
|
GUI_DRAW
|
|
{
|
|
if (showMousePointer != 0)
|
|
{
|
|
render p_pointer, mouse.x, mouse.y
|
|
}
|
|
}
|
|
} |