Initial full mirror of c:\VWE (source + assets + toolchain + outputs) via Git LFS

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.
This commit is contained in:
Cyd
2026-06-24 21:28:16 -05:00
commit 2b8ca921cb
66341 changed files with 7923174 additions and 0 deletions
@@ -0,0 +1,627 @@
#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_Text.script"
#include "Content\\ShellScripts\\c_Pane.script"
#include "Content\\ShellScripts\\c_StatLines.script"
#include "Content\\ShellScripts\\c_MoviePlayer.script"
#include "Content\\ShellScripts\\c_rollover.script"
main
{
GUI_CREATE
{
// use the whole region
location = 0, 0, 0
region = 0, 0 to getresx(), getresy()
// columns - operation, mission, save point
int max_mccb_columns = 3
// XXX jackyc - need maximum number of items
int max_mccb_items = 50
object oRollover = s_HelpRegion
oRollover.nFontID = IDS_F_ROLLOVER_INFO
oRollover.cTextColor= 0xFFff7200
oRollover.location = 12,500,nZ_HELPREGION
oRollover.nWidth = 575
oRollover.nHeight = 90
initialize(oRollover)
deactivate(oRollover)
object screen = o_CMWrapScreen
object pointer = o_MousePointer
pointer.showMousePointer = 1
focus(screen)
}
}
o_CMWrapScreen
{
GUI_CREATE
{
int i
int j
int s
int r
string mission_name
//BackGround Pane
object oBackground = s_Pane
oBackground.location = 0,0,0
oBackground.szBitmap = szPATH_GRAPHICS "debriefing_background.tga"
oBackground.nFrames = 1
oBackground.nMode = 0
oBackground.fVolatile = 0
oBackground.fRegion = 1
initialize(oBackground)
object oDavion = s_Pane
oDavion.location = 680,20,nZ_PANE
oDavion.szBitmap = szPATH_GRAPHICS "CM_Davion.tga"
oDavion.nFrames = 1
oDavion.nMode = 2
oDavion.fVolatile = 0
oDavion.fRegion = 0
initialize(oDavion)
//Text
//Page title
object oMStatusTitle = s_Text
oMStatusTitle.location = 21 ,21,nZ_TEXT
oMStatusTitle.nFontID = IDS_F_GEN_SCREEN_TITLE
oMStatusTitle.cTextColor = 0xFFff7200
oMStatusTitle.nJustify = 0
oMStatusTitle.nLayoutWidth = 205
oMStatusTitle.nLayoutHeight = 30
oMStatusTitle.nResID = IDS_CMW_TITLE
initialize(oMStatusTitle)
int nResults = 1
callback($$Shell_CallbackHandler$$, ShellCampaignGetCampaignResults,nResults)
callback($$Shell_CallbackHandler$$, ShellLoadMissionName, mission_name)
object oMissionTitle = s_Text
oMissionTitle.location = oMStatusTitle.location.x + oMStatusTitle.nLayoutWidth ,21,nZ_TEXT
oMissionTitle.nFontID = IDS_F_GEN_SCREEN_TITLE
oMissionTitle.cTextColor = 0xFFff7200
oMissionTitle.nJustify = 0
oMissionTitle.nLayoutWidth = 575
oMissionTitle.nLayoutHeight = 30
oMissionTitle.szText = mission_name
initialize(oMissionTitle)
object oResults = s_Text
oResults.location = 21 ,56,nZ_TEXT
oResults.nFontID = IDS_F_GEN_TEXTBUTTON
oResults.cTextColor = cWhite
oResults.nJustify = 0
oResults.nLayoutWidth = 400
oResults.nLayoutHeight = 150
if(nResults == 1)
{
oResults.nResID = IDS_CMW_FAIL
if (exists(@SHELL@))
@SHELL@campaignScreen.play_movie = 0
}
else
if(nResults == 2)
{
oResults.nResID = IDS_CMW_SUCCESS
if (exists(@SHELL@))
@SHELL@campaignScreen.play_movie = 1
}
initialize(oResults)
//LanceMate Section Titles
int nColumns = 4
int LM_X[nColumns]
int LM_Y = 390
int LM_YOff = 19
int LM_W = 110
int LM_H = 18
LM_X[0] = 21
LM_X[1] = 130
LM_X[2] = 240
LM_X[3] = 360
//Column 1
object oLanceTitle = s_Text
oLanceTitle.location = LM_X[0],LM_Y - 5 + (0 * LM_YOff),nZ_TEXT
oLanceTitle.nFontID = IDS_F_CM_LABEL
oLanceTitle.cTextColor = cWhite
oLanceTitle.nJustify = 0
oLanceTitle.nLayoutWidth = LM_W
oLanceTitle.nLayoutHeight = LM_H
oLanceTitle.nResID = IDS_CMW_LM_TITLE
initialize(oLanceTitle)
object oLance[3]
for (i=0;i<3;i++)
{
j = i + 1
oLance[i] = s_Text
oLance[i].location = LM_X[j],LM_Y - 5 + (0 * LM_YOff),nZ_TEXT
oLance[i].nFontID = IDS_F_CM_LABEL
oLance[i].cTextColor = cWhite
oLance[i].nJustify = 0
oLance[i].nLayoutWidth = LM_W
oLance[i].nLayoutHeight = LM_H
oLance[i].szText = conv$(j)
initialize(oLance[i])
}
object oNameTitle = s_Text
oNameTitle.location = LM_X[0],LM_Y + (1 * LM_YOff),nZ_TEXT
oNameTitle.nFontID = IDS_F_CM_LABEL
oNameTitle.cTextColor = cWhite
oNameTitle.nJustify = 0
oNameTitle.nLayoutWidth = LM_W
oNameTitle.nLayoutHeight = (LM_H * 2)
oNameTitle.nResID = IDS_CMW_LMNAME_TITLE
initialize(oNameTitle)
object oPStatusTitle = s_Text
oPStatusTitle.location = LM_X[0],LM_Y + (3 * LM_YOff),nZ_TEXT
oPStatusTitle.nFontID = IDS_F_CM_LABEL
oPStatusTitle.cTextColor = cWhite
oPStatusTitle.nJustify = 0
oPStatusTitle.nLayoutWidth = LM_W
oPStatusTitle.nLayoutHeight = LM_H
oPStatusTitle.nResID = IDS_CMW_LMSTATUS_TITLE
initialize(oPStatusTitle)
object oGSkillTitle = s_Text
oGSkillTitle.location = LM_X[0],LM_Y + (4 * LM_YOff),nZ_TEXT
oGSkillTitle.nFontID = IDS_F_CM_LABEL
oGSkillTitle.cTextColor = cWhite
oGSkillTitle.nJustify = 0
oGSkillTitle.nLayoutWidth = LM_W
oGSkillTitle.nLayoutHeight = LM_H
oGSkillTitle.nResID = IDS_CMW_GSKILL_TITLE
initialize(oGSkillTitle)
object oPSkillTitle = s_Text
oPSkillTitle.location = LM_X[0],LM_Y + (5 * LM_YOff),nZ_TEXT
oPSkillTitle.nFontID = IDS_F_CM_LABEL
oPSkillTitle.cTextColor = cWhite
oPSkillTitle.nJustify = 0
oPSkillTitle.nLayoutWidth = LM_W
oPSkillTitle.nLayoutHeight = LM_H
oPSkillTitle.nResID = IDS_CMW_PSKILL_TITLE
initialize(oPSkillTitle)
// object oSSkillTitle = s_Text
// oSSkillTitle.location = LM_X[0],LM_Y + (6 * LM_YOff),nZ_TEXT
// oSSkillTitle.nFontID = IDS_F_CM_LABEL
// oSSkillTitle.cTextColor = cWhite
// oSSkillTitle.nJustify = 0
// oSSkillTitle.nLayoutWidth = LM_W
// oSSkillTitle.nLayoutHeight = LM_H
// oSSkillTitle.nResID = IDS_CMW_SSKILL_TITLE
// initialize(oSSkillTitle)
// object oBSkillTitle = s_Text
// oBSkillTitle.location = LM_X[0],LM_Y + (7 * LM_YOff),nZ_TEXT
// oBSkillTitle.nFontID = IDS_F_CM_LABEL
// oBSkillTitle.cTextColor = cWhite
// oBSkillTitle.nJustify = 0
// oBSkillTitle.nLayoutWidth = LM_W
// oBSkillTitle.nLayoutHeight = LM_H
// oBSkillTitle.nResID = IDS_CMW_BSKILL_TITLE
// initialize(oBSkillTitle)
object oMechTitle = s_Text
oMechTitle.location = LM_X[0],LM_Y + (6 * LM_YOff),nZ_TEXT
oMechTitle.nFontID = IDS_F_CM_LABEL
oMechTitle.cTextColor = cWhite
oMechTitle.nJustify = 0
oMechTitle.nLayoutWidth = LM_W
oMechTitle.nLayoutHeight = LM_H
oMechTitle.nResID = IDS_CMW_LMMECH_TITLE
initialize(oMechTitle)
object oMechStatusTitle = s_Text
oMechStatusTitle.location = LM_X[0],LM_Y + (7 * LM_YOff),nZ_TEXT
oMechStatusTitle.nFontID = IDS_F_CM_LABEL
oMechStatusTitle.cTextColor = cWhite
oMechStatusTitle.nJustify = 0
oMechStatusTitle.nLayoutWidth= LM_W
oMechStatusTitle.nLayoutHeight= LM_H
oMechStatusTitle.nResID = IDS_CMW_LMMECHSTATUS_TITLE
initialize(oMechStatusTitle)
//Columns 1-3 Text
object oName[4]
object oPStatus[4]
object oMech[4]
object oMechStatus[4]
object oPilotstats[35]
object oPilotbase[35]
string szLanceNames[3]
int nLanceStatus[3]
int nGunBase[3]
int nGunNew[3]
int nPilotBase[3]
int nPilotNew[3]
string szMechName[3]
int nMechStatus[3]
int nNumLance
int pilot_stats[35]
int pilot_base[35]
string szPStatus[4]
szPStatus[0] = localize$(IDS_GN_OK)
szPStatus[1] = localize$(IDS_CMW_INJURED)
szPStatus[2] = localize$(IDS_CMW_MIA)
szPStatus[3] = localize$(IDS_CMW_KIA)
string szMStatus[3]
szMStatus[0] = localize$(IDS_CMW_READY)
szMStatus[1] = localize$(IDS_CMW_DAMAGED)
szMStatus[2] = localize$(IDS_CMW_DESTR0YED)
callback($$Shell_CallbackHandler$$, ShellCampaignGetLanceStatus,szLanceNames[],nLanceStatus[],nGunBase[],nGunNew[],nPilotBase[],nPilotNew[],szMechName[],nMechStatus[],nNumLance)
for (i=0;i<nNumLance;i++)
{
j = i + 1
oName[i] = s_Text
oName[i].location = LM_X[j],LM_Y + (1 * LM_YOff),nZ_TEXT
oName[i].nFontID = IDS_F_CM_LABEL
oName[i].nJustify = 0
oName[i].nLayoutWidth = LM_W
oName[i].nLayoutHeight = (LM_H * 2)
oName[i].szText = szLanceNames[i]
oName[i].cTextColor = cWhite
initialize(oName[i])
oPStatus[i] = s_Text
oPStatus[i].location = LM_X[j],LM_Y + (3 * LM_YOff),nZ_TEXT
oPStatus[i].nFontID = IDS_F_CM_LABEL
oPStatus[i].nJustify = 0
oPStatus[i].nLayoutWidth = LM_W
oPStatus[i].nLayoutHeight = LM_H
oPStatus[i].szText = szPStatus[nLanceStatus[i]]
if(nLanceStatus[i] == 0)
{
oPStatus[i].cTextColor = cWhite
}
else
if(nLanceStatus[i] == 1)
{
oPStatus[i].cTextColor = cYellow
}
else
if(nLanceStatus[i] == 2)
{
oPStatus[i].cTextColor = cOrange
}
else
if(nLanceStatus[i] == 3)
{
oPStatus[i].cTextColor = cRed
}
initialize(oPStatus[i])
pilot_stats[0] = nGunNew[i]
pilot_stats[1] = nPilotNew[i]
pilot_stats[2] = 50
pilot_stats[3] = 50
for s = 0; s < 2; s++
{
r=(i*10) + s
oPilotstats[r] = s_statlines
oPilotstats[r].nPixelWidth = 80
oPilotstats[r].location = LM_X[j],LM_Y + ((4+S) * LM_YOff), 10
oPilotstats[r].bar_height = 10
oPilotstats[r].stat_val = pilot_stats[s]
oPilotstats[r].nSolid = 1
oPilotstats[r].stat_color = packcolor (0,0,128,255)
if(s == 0)
{
oPilotStats[r].nHelpID = IDS_HELP_CM_P_GUN
}
else
if(s == 1)
{
oPilotStats[r].nHelpID = IDS_HELP_CM_P_PILOT
}
else
if(s == 2)
{
oPilotStats[r].nHelpID = IDS_HELP_CM_P_SENSOR
}
else
if(s == 3)
{
oPilotStats[r].nHelpID = IDS_HELP_CM_P_BLIND
}
initialize(oPilotstats[r])
}
//Pilots Stats
pilot_base[0] = nGunBase[i]
pilot_base[1] = nPilotBase[i]
pilot_base[2] = 50
pilot_base[3] = 50
for s = 0; s < 2; s++
{
r=(i*10) + s
oPilotbase[r] = s_statlines
oPilotbase[r].nPixelWidth = 80
oPilotbase[r].location = LM_X[j],LM_Y + ((4+S) * LM_YOff), 35
oPilotbase[r].bar_height = 10
oPilotbase[r].nSolid = 0
oPilotbase[r].stat_val = pilot_base[s]
if(s == 0)
{
oPilotbase[r].nHelpID = IDS_HELP_CM_P_GUN
}
else
if(s == 1)
{
oPilotbase[r].nHelpID = IDS_HELP_CM_P_PILOT
}
else
if(s == 2)
{
oPilotbase[r].nHelpID = IDS_HELP_CM_P_SENSOR
}
else
if(s == 3)
{
oPilotbase[r].nHelpID = IDS_HELP_CM_P_BLIND
}
initialize(oPilotbase[r])
}
oMech[i] = s_Text
oMech[i].location = LM_X[j],LM_Y + (6 * LM_YOff),nZ_TEXT
oMech[i].nFontID = IDS_F_CM_LABEL
oMech[i].cTextColor = cWhite
oMech[i].nJustify = 0
oMech[i].nLayoutWidth = LM_W
oMech[i].nLayoutHeight = LM_H
oMech[i].szText = szMechName[i]
initialize(oMech[i])
oMechStatus[i] = s_Text
oMechStatus[i].location = LM_X[j],LM_Y + (7 * LM_YOff),nZ_TEXT
oMechStatus[i].nFontID = IDS_F_CM_LABEL
oMechStatus[i].cTextColor = cWhite
oMechStatus[i].nJustify = 0
oMechStatus[i].nLayoutWidth = LM_W
oMechStatus[i].nLayoutHeight= LM_H
oMechStatus[i].szText = szMStatus[nMechStatus[i]]
if(nMechStatus[i] == 0)
{
oMechStatus[i].cTextColor = cWhite
}
else
if(nMechStatus[i] == 1)
{
oMechStatus[i].cTextColor = cYellow
}
else
if(nMechStatus[i] == 2)
{
oMechStatus[i].cTextColor = cRed
}
initialize(oMechStatus[i])
}
//Buttons
object o_Close_button = s_multistatepane
o_Close_button.file = WPATH "button_reg_200x27m_4state.tga"
o_Close_button.text = localize$(IDS_OM_VA_CLOSE)
o_Close_button.total_states = 4
o_Close_button.location = 560,555,nZ_BUTTON
initialize (o_Close_button)
sound btnTriggeredSound = SPATH "sfx_button5.wav"
//Drop Downs
int obj_size = 7
// Initialize the mc list box for pilot info
object oDPilot = s_mc_listbox
oDPilot.location = 21, 250, nZ_LISTBOX
oDPilot.itemWidth = 420
oDPilot.itemHeight = 1
oDPilot.itemHeight_padding = 0
oDPilot.list_size = obj_size
oDPilot.max_displayed = 120
oDPilot.top_of_list = 0
oDPilot.label = localize$(IDS_CMW_PILOT_TITLE)
oDPilot.offsetLabel = 0,-18
oDPilot.first_delay = 10
oDPilot.second_delay = 3
// Specify number of columns
oDPilot.num_of_columns = 2
oDPilot.column[0].location.x = 5
oDPilot.column[0].fontcolor = cWhite
oDPilot.offsetx[1] = 5
oDPilot.column[0].fontAlignment = just_left
oDPilot.column[1].location.x = 230
oDPilot.column[1].fontcolor = cWhite
oDPilot.column[1].fontAlignment = just_left
// Now store the pilot entries in the list box
string szPlayerMech
int nPMechStatus
callback($$Shell_CallbackHandler$$, ShellCampaignGetPlayerStatus,szPlayerMech,nPMechStatus)
oDPilot.column[0].list_item[0] = szPlayerMech
oDPilot.column[1].list_item[0] = szMStatus[nPMechStatus]
for (i = 1; i < obj_size; i++)
{
oDPilot.column[0].list_item[i] = ""
oDPilot.column[1].list_item[i] = ""
mail(i, this)
oDPilot.list_order[i] = i
}
initialize(oDPilot)
// Initialize the mc list box for Mech Salvage
string szMechSalvage[22]
int nMSalvageStatus[22]
int nMechNum
callback($$Shell_CallbackHandler$$, ShellCampaignGetMechSalvage,szMechSalvage[],nMSalvageStatus[],nMechNum)
object oDMechSalvage = s_mc_listbox
oDMechSalvage.location = 470, 250, nZ_LISTBOX
oDMechSalvage.itemWidth = 295
oDMechSalvage.itemHeight = 1
oDMechSalvage.itemHeight_padding = 1
oDMechSalvage.list_size = nMechNum
oDMechSalvage.column_header_height = 20
oDMechSalvage.max_displayed = 120
oDMechSalvage.uniform_item_height = 0
oDMechSalvage.arrowHeight = 20
oDMechSalvage.top_of_list = 0
oDMechSalvage.label = localize$(IDS_CMW_MECHSALVAGE_TITLE)
oDMechSalvage.offsetLabel = 0,-18
oDMechSalvage.buttonwidth = 16
oDMechSalvage.first_delay = 10
oDMechSalvage.second_delay = 3
// Specify number of columns
oDMechSalvage.num_of_columns = 2
oDMechSalvage.column[0].location.x = 5
oDMechSalvage.column[0].fontcolor = cWhite
oDMechSalvage.offsetx[1] = 5
oDMechSalvage.column[0].fontAlignment = just_left
oDMechSalvage.column[1].location.x = 170
oDMechSalvage.column[1].fontcolor = cWhite
oDMechSalvage.column[1].fontAlignment = just_left
// Now store the pilot entries in the list box
for (i = 0; i < nMechNum; i++)
{
oDMechSalvage.column[0].list_item[i] = szMechSalvage[i]
//oDMechSalvage.column[1].list_item[i] = szMStatus[nMSalvageStatus[i]]
oDMechSalvage.column[1].list_item[i] = conv$(nMSalvageStatus[i])
mail(i, this)
oDMechSalvage.list_order[i] = i
}
initialize(oDMechSalvage)
// Specify column headers
oDMechSalvage.column[0].o_header.s_text = localize$(IDS_CMW_LMNAME_TITLE)
oDMechSalvage.column[0].o_header.n_just = just_all
oDMechSalvage.column[1].o_header.s_text = localize$(IDS_CMW_AMOUNT)
oDMechSalvage.column[1].o_header.n_just = just_all
//Component salvage
string szCompSalvage[60]
int nCSalvageStatus[60]
int nCompNum
callback($$Shell_CallbackHandler$$, ShellCampaignGetWeaponSalvage,szCompSalvage[],nCSalvageStatus[],nCompNum)
object oDCompSalvage = s_mc_listbox
oDCompSalvage.location = 470, 400, nZ_LISTBOX
oDCompSalvage.itemWidth = 295
oDCompSalvage.itemHeight = 1
oDCompSalvage.itemHeight_padding = 1
oDCompSalvage.list_size = nCompNum
oDCompSalvage.column_header_height = 20
oDCompSalvage.max_displayed = 120
oDCompSalvage.uniform_item_height = 0
oDCompSalvage.arrowHeight = 20
oDCompSalvage.top_of_list = 0
oDCompSalvage.label = localize$(IDS_CMW_COMPSALVAGE_TITLE)
oDCompSalvage.offsetLabel = 0,-18
oDCompSalvage.buttonwidth = 16
oDCompSalvage.first_delay = 10
oDCompSalvage.second_delay = 3
// Specify number of columns
oDCompSalvage.num_of_columns = 2
oDCompSalvage.column[0].location.x = 5
oDCompSalvage.column[0].fontcolor = cWhite
oDCompSalvage.offsetx[1] = 5
oDCompSalvage.column[0].fontAlignment = just_left
oDCompSalvage.column[1].location.x = 170
oDCompSalvage.column[1].fontcolor = cWhite
oDCompSalvage.column[1].fontAlignment = just_left
// Now store the pilot entries in the list box
for (i = 0; i < nCompNum; i++)
{
oDCompSalvage.column[0].list_item[i] = szCompSalvage[i]
//oDCompSalvage.column[1].list_item[i] = szMStatus[nCSalvageStatus[i]]
oDCompSalvage.column[1].list_item[i] = conv$(nCSalvageStatus[i])
mail(i, this)
oDCompSalvage.list_order[i] = i
}
initialize(oDCompSalvage)
// Specify column headers
oDCompSalvage.column[0].o_header.s_text = localize$(IDS_CMW_LMNAME_TITLE)
oDCompSalvage.column[0].o_header.n_just = just_all
oDCompSalvage.column[1].o_header.s_text = localize$(IDS_CMW_AMOUNT)
oDCompSalvage.column[1].o_header.n_just = just_all
}
GUI_MAILBOX
{
switch (sender)
{
case o_Close_button:
{
play btnTriggeredSound,1
unfocus
// @SHELL@lastScreenDepth++
@SHELL@lastScreen[@SHELL@lastScreenDepth] = MAINMENU
@SHELL@currentScreen = CAMPAIGNLOBBY
}
break
}
}
GUI_DESTROY
{
unfocus
}
GUI_DRAW
{
}
}
// A utility class for showing the mouse pointer
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
}
}
}
@@ -0,0 +1,112 @@
#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(),50
drawrect 0,(getresy() - 50) to getresx(), getresy()
}
}
cinema_script
{
GUI_CREATE
{
@mouse@pointer.showMousePointer = 0
@SHELL@bkg = GPATH "CC_Background.tga"
stop 0
location = 0, 0, 10
movie cinema = szPATH_MOVIES "Campopen.mpg"
scale (cinema) = 209,209,100
play cinema
region = 0,0 to 800,600
int cleared = 0
framerate = 10
int mstop
}
LBUTTON_UPDATE
{
if (mouse.left == BUTTON_PRESSED)
{
mail(nMSG_StopMovie,this)
}
}
GUI_DRAW
{
if (cleared == 0)
{
render @SHELL@bkg,@SHELL@location
cleared = 1
}
render cinema,0,30
}
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)
}
}
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,108 @@
main
{
GUI_CREATE
{
//Mission Region
int NumMR = 5
int MR_X[NumMR]
int MR_Y[NumMR]
int MR_W[NumMR]
int MR_H[NumMR]
string MR_Title[NumMR]
string MR_Rollover[NumMR]
string MR_RightClick[NumMR]
int MR_IP[NumMR]
MR_X[0] = 45
MR_Y[0] = 50
MR_W[0] = 100
MR_H[0] = 120
MR_Title[0] = "Mission 1, 0IP"
MR_Rollover[0] = "Operation 1 Mission 1. Destroy Lunar Listening Outpost. In order to move our forces on planet we need to eliminate the enemies eyes and ears. Take out the main communication buildings and stop anyone from escaping who could warn Steiner forces."
MR_RightClick[0]= "MR 1 Right Click"
MR_IP[0] = 4
MR_X[1] = 425
MR_Y[1] = 100
MR_W[1] = 100
MR_H[1] = 125
MR_Title[1] = "Mission 2, 0IP"
MR_Rollover[1] = "Operation 1 Mission 2. Destroy Scud Launchers. Forward observers have spotted two heavy scud launchers in a ravine east of our base. These could pose a seroius threat to us if our location is discovered. Gonzalez and you should sweep the area and elimate these threats. Sensors have picked up Mech escorts so this might be a tough fight, use caution."
MR_RightClick[1]= "MR 2 Right Click"
MR_IP[1] = 2
MR_X[2] = 250
MR_Y[2] = 325
MR_W[2] = 75
MR_H[2] = 100
MR_Title[2] = "Mission 3, 0IP"
MR_Rollover[2] = "Operation 1 Mission 3. Destroy Enemy Dropships. We've discovered three Steiner dropships in this area. If we can attack and take them out, we might be able to grab some badly needed salvage. Be careful, once Steiner is alerted to the attack they will start powering up those Dropships. If that happens your dead. Take them down quick and we'll send the salvage teams in after you. "
MR_RightClick[2]= "MR 3 Right Click"
MR_IP[2] = 1
MR_X[3] = 250
MR_Y[3] = 325
MR_W[3] = 75
MR_H[3] = 100
MR_Title[3] = "Mission 4, 0IP"
MR_Rollover[3] = "Operation 1 Mission 4. Defend Departure. It's time to bug out. Sir Peter's Dropship is about to depart, yours is just powering up. We're sure the enemy has detected the powerup and will be sending in forces to stop us. Defend your Dropship APU's until we can get the ship powered up and depart."
MR_RightClick[3]= "MR 4 Right Click"
MR_IP[3] = 1
//MR Info Points
int IP_X0[MR_IP[0]]
//Mission Map Info
string MM_Map[NumMR]
string MM_CampIcon[NumMR]
string MM_CampTitle[NumMR]
int MM_DayToggle[NumMR]
int MM_Drop[NumMR]
int MM_Nav[NumMR]
int MM_IP[NumMR]
MM_Map[0] = "CM_M_Map_01.tga"
MM_CampIcon[0] = "CM_Icon_01_01.tga"
MM_CampTitle[0] = "Campaign 1"
MM_DayToggle[0] = 0
MM_Drop[0] = 0
MM_Nav[0] = 0
MM_IP[0] = 0
MM_Map[1] = "CM_M_Map_02.tga"
MM_CampIcon[1] = "CM_Icon_01_01.tga"
MM_CampTitle[1] = "Campaign 2"
MM_DayToggle[1] = 0
MM_Drop[1] = 0
MM_Nav[1] = 0
MM_IP[1] = 0
MM_Map[2] = "CM_M_Map_03.tga"
MM_CampIcon[2] = "CM_Icon_01_01.tga"
MM_CampTitle[2] = "Campaign 3"
MM_DayToggle[2] = 0
MM_Drop[2] = 0
MM_Nav[2] = 0
MM_IP[2] = 0
MM_Map[3] = "CM_M_Map_04.tga"
MM_CampIcon[3] = "CM_Icon_01_01.tga"
MM_CampTitle[3] = "Campaign 4"
MM_DayToggle[3] = 0
MM_Drop[3] = 0
MM_Nav[3] = 0
MM_IP[3] = 0
//MM_Map[0] Info Points
}
}
@@ -0,0 +1,136 @@
#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
}
}
}
@@ -0,0 +1,244 @@
#include "Content\\ShellScripts\\stddefs.h"
#include "Content\\ShellScripts\\ScriptStrings.h"
#include "Content\\ShellScripts\\callsign.h"
#include "Content\\ShellScripts\\buttons.script"
#include "Content\\ShellScripts\\slider.script"
#include "Content\\ShellScripts\\spinbox.script"
#include "Content\\ShellScripts\\editbox.script"
#include "Content\\ShellScripts\\ErrorScreen.script"
main
{
GUI_CREATE
{
// maximum number of spin box item
int max_spin_items = 10
// use the whole region
location = 0, 0, 0
region = 0, 0 to getresx(), getresy()
setresource("ScriptStrings.dll")
object screen = o_ComputerPlayer
}
}
o_ComputerPlayer
{
GUI_CREATE
{
Font3d gFont3d = szPATH_FONTS localize$(IDS_F_DIALOG_TITLE)
pane gFrame = GPATH "dialog_500x300m.tga"
// Initialize the OK and Cancel buttons
int iloop
object mbutton[2]
for(iloop = 0; iloop < 2; iloop++)
{
mbutton[iloop] = s_multistatepane
mbutton[iloop].file = WPATH "button_reg_138x23m_3state.tga"
mbutton[iloop].total_states = 3
mbutton[iloop].twidth = 100
mbutton[iloop].id = iloop
}
mbutton[0].text = localize$(IDS_RS_B_OK)
mbutton[0].location = 200, 380, 10
mbutton[1].text = localize$(IDS_RS_B_CANCEL)
mbutton[1].location = 460, 380, 10
for(iloop = 0; iloop < 2; iloop++)
{
initialize(mbutton[iloop])
}
framerate = 30
object o_callsigns = callsigns
int bot_number = random(0, NUM_CALLSIGNS - 1)
// Initialize the spin box
object mSpinbox = s_spinbox
mSpinBox.location = 200, 210, 10
mSpinBox.itemWidth = 70
mSpinBox.itemHeight = 20
mSpinBox.list_size = 10
mSpinBox.boxFont3D = szPATH_FONTS localize$(IDS_F_GEN_SPINBOX)
mSpinBox.labelFont3D = szPATH_FONTS localize$(IDS_F_GEN_LABEL)
mSpinBox.label = localize$(IDS_MP_BOT_SKILL)
mSpinBox.offsetLabel = 0, -18
mSpinBox.prevent_rollover = true
mSpinBox.numeric_spinbox = true
mSpinBox.numeric_spinbox_min = 0
mSpinBox.numeric_spinbox_max = 9
mSpinBox.nselected = o_callsigns.levels[bot_number]
initialize(mSpinBox)
// Initialize the slider
object mSlider = s_slider
mSlider.location = 300, 218, 10
mSlider.itemWidth = 300
mSlider.itemHeight = 5
mSlider.handleHeight = 20
mSlider.handleWidth = 10
mSlider.labelFont3D = szPATH_FONTS localize$(IDS_F_BOT_SLIDER)
mSlider.labelTextColor = 0xffffffff
mSlider.filledColor = 0xffffffff
mSlider.slider_min_val = -1
mSlider.slider_max_val = 8
mSlider.is_vertical = false
mSlider.nselected = o_callsigns.levels[bot_number]
mSlider.o_slider_handle.location.x = (mSlider.nselected * mSlider.itemwidth / (mSlider.slider_max_val - mSlider.slider_min_val)) + mSlider.location.x
initialize(mSlider)
// Initialize the edit box
object mEditbox = s_editbox
mEditBox.location = 200, 300, 10
mEditBox.boxWidth = 400
mEditBox.boxHeight = 20
mEditBox.boxFont3D = szPATH_FONTS localize$(IDS_F_GEN_EDITBOX)
mEditBox.labelFont3D = szPATH_FONTS localize$(IDS_F_GEN_LABEL)
mEditBox.label = localize$(IDS_MP_BOT_NAME)
mEditBox.boxTextOffset = 5, 3
mEditBox.offset = 0, -15
mEditBox.boxtextlimit = 16
mEditBox.Auto_Update = false
mEditBox.boxValue = o_callsigns.names[bot_number]
mEditBox.disable_forward_slash = true
initialize(mEditBox)
focus(mEditBox)
sound btnTriggeredSound = SPATH "sfx_button5.wav"
// variables for fading in and out
int alpha_val = 5
int fadeout = false
object errorScreen
}
GUI_EXECUTE
{
// Handle fading in and fading out
if fadeout == true
{
// Fading out(Exiting)
if alpha_val > 0
{
alpha_val = alpha_val - 5
if alpha_val <= 0
{
alpha_val = 0
unfocus
script_end "ComputerPlayer.script"
}
}
}
else
{
// Fading in(Entering)
if alpha_val < 150
{
alpha_val += 5
if alpha_val >= 150
{
alpha_val = 150
}
}
}
}
GUI_DRAW
{
// fade in or fade out
setpencolor(0, 0, 0, alpha_val)
drawrect 0, 0 to getresx(), getresy()
// Redraw the frame if we are not fading out(exiting)
if (fadeout == false)
{
color (gframe) = packcolor(255, 255, 255, alpha_val)
render gframe, 150, 150
// Header
print3d_attributes = gFont3d,0xffffffff,1,0,1,0,0,just_center
print3d_margins = 150, 150 to 650, 180
print3d_position = 150, 155
print3d localize$(IDS_MP_LOBBY_ADD_BOT)
}
}
GUI_MAILBOX
{
// Handle return from error screen
if (sender == errorScreen)
{
focus(mEditBox)
}
// Handle spin box value changed
if (sender == mSpinBox)
{
mSlider.nselected = mSpinBox.nselected
mSlider.o_slider_handle.location.x = (mSlider.nselected * mSlider.itemwidth / (mSlider.slider_max_val - mSlider.slider_min_val)) + mSlider.location.x
}
// Handle slider box value changed
if (sender == mSlider)
{
mSpinBox.nselected = mSlider.nselected
}
// Handle the OK Request from button or edit box
if ((sender == mEditBox) || (sender == mbutton[0]))
{
play btnTriggeredSound,1
if (equal$(mEditBox.boxValue, ""))
{
errorScreen = o_ErrorScreen
errorScreen.error_message = localize$(IDS_MP_BOT_ERROR)
initialize(errorScreen)
activate(errorScreen)
return
}
if (exists(@NetLobby@))
mail(1, @NetLobby@)
// Tell this script to fade out and deactivate all its objects
fadeout = true
for(iloop = 0; iloop < 2; iloop++)
{
deactivate(mbutton[iloop])
}
deactivate(mSpinBox)
deactivate(mSlider)
deactivate(mEditBox)
}
// Handle the Cancel Request
if (sender == mbutton[1])
{
play btnTriggeredSound,1
if (exists(@NetLobby@))
mail(-1, @NetLobby@)
// Tell this script to fade out and deactivate all its objects
fadeout = true
for(iloop = 0; iloop < 2; iloop++)
{
deactivate(mbutton[iloop])
}
deactivate(mSpinBox)
deactivate(mSlider)
deactivate(mEditBox)
}
}
GUI_DESTROY
{
unfocus
}
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,262 @@
#include "Content\\ShellScripts\\stddefs.h"
#include "Content\\ShellScripts\\PilotCommon.h"
#include "Content\\ShellScripts\\ScriptStrings.h"
#include "Content\\ShellScripts\\buttons.script"
#include "Content\\Shellscripts\\editbox.script"
#include "Content\\ShellScripts\\listboxes.script"
#include "Content\\ShellScripts\\ErrorScreen.script"
main
{
GUI_CREATE
{
// Total number of difficulties
int max_items = TOTAL_NUM_PILOT_DIFFICULTY
// use the whole region
location = 0, 0, 0
region = 0, 0 to getresx(), getresy()
object screen = o_CreatePilotModal
}
}
o_CreatePilotModal
{
GUI_CREATE
{
Font3d gHeaderFont3d = szPATH_FONTS localize$(IDS_F_DIALOG_TITLE)
Font3d gFont3d = szPATH_FONTS localize$(IDS_F_GEN_DESCRIPTION)
pane gFrame = GPATH "dialog_500x300m.tga"
// Initialize the OK and Cancel buttons
int iloop
object mbutton[2]
for(iloop = 0; iloop < 2; iloop++)
{
mbutton[iloop] = s_multistatepane
mbutton[iloop].total_states = 3
mbutton[iloop].textsize = 1
mbutton[iloop].file = WPATH "button_reg_138x23m_3state.tga"
mbutton[iloop].id = iloop
}
mbutton[0].text = localize$(IDS_GN_OK)
mbutton[0].location = 180, 395, 10
mbutton[1].text = localize$(IDS_GN_CANCEL)
mbutton[1].location = 480, 395, 10
for(iloop = 0; iloop < 2; iloop++)
{
initialize(mbutton[iloop])
}
framerate = 30
// Initialize and focus on the Edit Box
object mEditBox = s_editbox
mEditBox.location = 370, 280, 10
mEditBox.boxWidth = 250
mEditBox.boxHeight = 20
mEditBox.boxFont3D = szPATH_FONTS localize$(IDS_F_GEN_EDITBOX)
mEditBox.labelFont3D = szPATH_FONTS localize$(IDS_F_GEN_LABEL)
mEditBox.label = localize$(IDS_RS_L_PILOT_NAME_COLON)
mEditBox.boxTextOffset = 5, 3
mEditBox.offset = -185, 3
mEditBox.boxTextLimit = PILOT_NAME_TEXT_LIMIT
initialize(mEditBox)
focus(mEditBox)
// Initialize the List Box
string difficulty[max_items]
difficulty[PILOT_DIFFICULTY_EASY] = localize$(IDS_RS_RECRUIT)
difficulty[PILOT_DIFFICULTY_NORMAL] = localize$(IDS_RS_REGULAR)
difficulty[PILOT_DIFFICULTY_HARD] = localize$(IDS_RS_VETERAN)
difficulty[PILOT_DIFFICULTY_IMPOSSIBLE] = localize$(IDS_RS_ELITE)
int max_items = 4
object mListBox = s_droplistbox
mListBox.location = 370, 320, 10
mListBox.boxFont3D = szPATH_FONTS localize$(IDS_F_GEN_DROPDOWN)
mListBox.labelFont3D = szPATH_FONTS localize$(IDS_F_GEN_LABEL)
mListBox.label = localize$(IDS_RS_L_DIFFICULTY_COLON)
mListBox.offsetLabel = -185, 3
mListBox.itemWidth = 250 - 16
mListBox.itemHeight = 20
mListBox.list_size = max_items
mListBox.max_displayed = 4
mListBox.top_of_list = 0
mListBox.nSelected = 1
int i
for (i = 0; i < max_items; i++)
{
mListBox.list_item[i] = difficulty[i]
}
initialize(mListBox)
sound btnTriggeredSound = SPATH "sfx_button5.wav"
// variables for fading in and out
int alpha_val = 5
int fadeout = false
// Variable for the error screen
object errorScreen
}
GUI_EXECUTE
{
if fadeout == true
{
// Fading out(Exiting)
if alpha_val > 0
{
alpha_val = alpha_val - 5
if alpha_val <= 0
{
alpha_val = 0
script_end "CreatePilotModal.script"
}
}
}
else
{
// Fading in(Entering)
if alpha_val < 150
{
alpha_val += 5
if alpha_val >= 150
{
alpha_val = 150
}
}
}
}
GUI_DRAW
{
// fade in or fade out
setpencolor(0, 0, 0, alpha_val)
drawrect 0, 0 to getresx(), getresy()
// Redraw the frame if we are not fading out(exiting)
if (fadeout == false)
{
color (gframe) = packcolor(255, 255, 255, alpha_val)
render gframe, 150, 150
// Header
print3d_attributes = gHeaderFont3d,0xffffffff,1,0,1,0,0,just_center
print3d_margins = 150, 150 to 650, 450
print3d_position = 150, 155
print3d localize$(IDS_RS_CREATE_TITLE)
print3d_attributes = gFont3d,0xffffffff,1,1,1,0,0
print3d_margins = 180, 200 to 620, 400
print3d_position = 180, 200
print3d localize$(IDS_RS_S_CREATE)
}
}
GUI_MAILBOX
{
// Handle edit box finished edit
if (sender == mEditBox)
{
if (getmessage() == 1)
{
focus(mbutton[0])
}
}
// Handle the OK Request
if (sender == mbutton[0])
{
play btnTriggeredSound,1
unfocus
// Pass the data to the Pilot Screen script and let it handle the data
@PilotEntry@screen.currentPilotName = mEditBox.boxValue
@PilotEntry@screen.currentPilotDifficulty = mListBox.nselected
mail(1, @PilotEntry@screen)
}
// Handle the Cancel Request
if (sender == mbutton[1])
{
play btnTriggeredSound,1
unfocus
// Just tell the Pilot Screen script that no changes should be made
mail(-1, @PilotEntry@screen)
@PilotEntry@screen.onCreatePilot = 0
// Tell this script to fade out and deactivate all its objects
fadeout = true
for(iloop = 0; iloop < 2; iloop++)
{
deactivate(mbutton[iloop])
}
deactivate(mEditBox)
deactivate(mListBox)
}
if (sender == @PilotEntry@screen)
{
if (getmessage() == -1)
{
errorScreen = o_ErrorScreen
errorScreen.error_message = localize$(IDS_RS_E_PILOT_CREATE_EMPTY)
initialize(errorScreen)
activate(errorScreen)
return
}
if (getmessage() == -2)
{
errorScreen = o_ErrorScreen
errorScreen.error_message = localize$(IDS_RS_E_PILOT_CREATE_SPACE)
initialize(errorScreen)
activate(errorScreen)
return
}
if (getmessage() == -3)
{
errorScreen = o_ErrorScreen
errorScreen.error_message = localize$(IDS_RS_E_PILOT_CREATE_SAME)
initialize(errorScreen)
activate(errorScreen)
return
}
if (getmessage() == -4)
{
errorScreen = o_ErrorScreen
errorScreen.error_message = localize$(IDS_RS_E_PILOT_CREATE_INVALID)
initialize(errorScreen)
activate(errorScreen)
return
}
if (getmessage() == 1)
{
@PilotEntry@screen.onCreatePilot = 0
// Tell this script to fade out and deactivate all its objects
fadeout = true
for(iloop = 0; iloop < 2; iloop++)
{
deactivate(mbutton[iloop])
}
deactivate(mEditBox)
deactivate(mListBox)
}
}
if (sender == errorScreen)
{
focus(mEditBox)
}
}
}
@@ -0,0 +1,300 @@
//--------------------------------------------------------------------------
// Date Who Modification
// -------- --- ----------------------------------------------------------
// 10/31/02 MSL Modified Credits
//-------------------------------------------------------------------------
#define NUM_OF_CREDITS 141
names
{
GUI_CREATE
{
int title[NUM_OF_CREDITS]
title[0] = true
title[1] = false
title[2] = false
title[3] = true
title[4] = false
title[5] = false
title[6] = false
title[7] = false
title[8] = false
title[9] = true
title[10] = false
title[11] = false
title[12] = true
title[13] = false
title[14] = false
title[15] = true
title[16] = false
title[17] = false
title[18] = true
title[19] = false
title[20] = false
title[21] = false
title[22] = false
title[23] = false
title[24] = false
title[25] = false
title[26] = false
title[27] = false
title[28] = false
title[29] = false
title[30] = false
title[31] = true
title[32] = false
title[33] = false
title[34] = false
title[35] = false
title[36] = true
title[37] = false
title[38] = false
title[39] = true
title[40] = false
title[41] = false
title[42] = true
title[43] = false
title[44] = false
title[45] = false
title[46] = false
title[47] = false
title[48] = false
title[49] = false
title[50] = false
title[51] = false
title[52] = false
title[53] = false
title[54] = false
title[55] = false
title[56] = false
title[57] = true
title[58] = false
title[59] = false
title[60] = false
title[61] = true
title[62] = false
title[63] = false
title[64] = false
title[65] = false
title[66] = false
title[67] = false
title[68] = false
title[69] = false
title[70] = false
title[71] = false
title[72] = false
title[73] = false
title[74] = false
title[75] = false
title[76] = false
title[77] = false
title[78] = true
title[79] = false
title[80] = false
title[81] = false
title[82] = false
title[83] = false
title[84] = true
title[85] = false
title[86] = false
title[87] = true
title[88] = false
title[89] = false
title[90] = false
title[91] = false
title[92] = false
title[93] = false
title[94] = true
title[95] = false
title[96] = false
title[97] = true
title[98] = false
title[99] = false
title[100] = true
title[101] = false
title[102] = false
title[103] = false
title[104] = false
title[105] = true
title[106] = false
title[107] = false
title[108] = true
title[109] = false
title[110] = false
title[111] = false
title[112] = false
title[113] = false
title[114] = false
title[115] = true
title[116] = false
title[117] = false
title[118] = false
title[119] = true
title[120] = false
title[121] = false
title[122] = true
title[123] = false
title[124] = false
title[125] = true
title[126] = false
title[127] = false
title[128] = true
title[129] = false
title[130] = false
title[131] = false
title[132] = false
title[133] = true
title[134] = false
title[135] = false
title[136] = true
title[137] = false
title[138] = false
title[139] = true
title[140] = false
string names[NUM_OF_CREDITS]
names[0] = "Software Development - Virtual World"
names[1] = "Michel 'Firestorm' Lowrance"
names[2] = ""
names[3] = "Software Development - Gameleap, Inc."
names[4] = "James J. Kang"
names[5] = "Chang-Mo Jung"
names[6] = "Sang-Hoon Han"
names[7] = "Hyun-Seng Moon"
names[8] = ""
names[9] = "Hardware Engineering"
names[10] = "Al 'Scarab' Emerson"
names[11] = ""
names[12] = "Marketing & Presentation"
names[13] = "Ann Marie 'Isis' Alanes"
names[14] = ""
names[15] = "Project Administration"
names[16] = "Anna 'Gnaw' Kurtz"
names[17] = ""
names[18] = "Special People at Microsoft Corp."
names[19] = "T.J. 'Paingod' Wagner"
names[20] = "Michael 'Lucky' Turner"
names[21] = "Kelly 'Kilo Romeo' Rains"
names[22] = "David 'Paladin' Luehmann"
names[23] = "Jon 'Gothmog' Kimmich"
names[24] = "Duane 'Synth Boy' Decker"
names[25] = "Alison Stroll"
names[26] = "Sage 'Arioch' Merrill"
names[27] = "Brennan 'DarkPriest' Priest"
names[28] = "Jerry 'Splotch' Edsall"
names[29] = "Heinz 'Tryptic' Schuller"
names[30] = ""
names[31] = "Tesla Map Design"
names[32] = "Ashley 'SureDude' Hall"
names[33] = "Michel 'Firestorm' Lowrance"
names[34] = "Bryan 'Pocus' Mikulski"
names[35] = ""
names[36] = "Test Lead"
names[37] = "Bryan 'Pocus' Mikulski"
names[38] = ""
names[39] = "WebPage Implementation"
names[40] = "Michel 'Firestorm' Lowrance"
names[41] = ""
names[42] = "Operations Manual Credits"
names[43] = "Project Management and Art Direction:"
names[44] = "Tom 'ThomCat' Peters"
names[45] = "Writing:"
names[46] = "James Haldy"
names[47] = "Layout and Design:"
names[48] = "Wm. 'Cap'n Crunch' Donohue"
names[49] = "Diagrams and Illustrations"
names[50] = "Tom 'ThomCat' Peters"
names[51] = "Cover Art:"
names[52] = "Kelly 'Kilo Romeo' Rains"
names[53] = "Logo:"
names[54] = "Sean McMenemy"
names[55] = "Tom 'ThomCat' Peters"
names[56] = ""
names[57] = "Implementation Team"
names[58] = "Al 'Scarab' Emerson"
names[59] = "Michel 'Firestorm' Lowrance"
names[60] = ""
names[61] = "Chicago Playtesters"
names[62] = "Rick 'Darklord' Belovsky"
names[63] = "Lucas 'Greywolf' Black"
names[64] = "Rich 'JNX' Bongat"
names[65] = "Tim 'Rocker' Doll"
names[66] = "David 'Joker' Eichler"
names[67] = "Jason 'Leepus' Ernst"
names[68] = "Mark 'Marz' Fuzco"
names[69] = "Reuben 'Elengil' Garcia"
names[70] = "Ken 'Spice' Kurpiel"
names[71] = "Peter 'Piotr' Look"
names[72] = "Alan 'Yeh-Rite' Quogana"
names[73] = "Sarah 'Mouse' Rozanski"
names[74] = "Jennifer 'Undomiel' Salyers"
names[75] = "Rodger 'Pyrotech' Von Spears"
names[76] = "Darci 'Kuroshii' Stratton"
names[77] = ""
names[78] = "KZOO KREW"
names[79] = "Nick 'Propwash' Smith"
names[80] = "Jeremy 'Mecca' Jubenville"
names[81] = "Matt 'Rusty' Duncan"
names[82] = "Brenda 'Faith' Reeves"
names[83] = ""
names[84] = "Project Management"
names[85] = "James 'Hacksaw' Garbarini"
names[86] = ""
names[87] = "MekTek"
names[88] = ""
names[89] = "Vince 'VAM' McMullin"
names[90] = "Fearless MKO"
names[91] = "VMaxx"
names[92] = "James 'Whitefeather' Taylor"
names[93] = ""
names[94] = "Battletech Expert (and legal paranoid)"
names[95] = "Matt 'Solarmech' Woodard"
names[96] = ""
names[97] = "Web-Crasher/Chief Slacker"
names[98] = "Paul 'Miami' Rose"
names[99] = ""
names[100] = "Comic Relief"
names[101] = "Gary 'Crash-N-Giggles' Ehresman"
names[102] = ""
names[103] = "Asger 'Shrike' Mortensen"
names[104] = ""
names[105] = "Project Mod"
names[106] = "Susanne 'shayla' Foster"
names[107] = ""
names[108] = "Modeler/Texturer Artist"
names[109] = "Matthew 'Matthew_Ts' Jones"
names[110] = "Rio 'verybad' Guzman"
names[111] = "Byron 'Shadow' Masterson"
names[112] = "James 'PuG' Mclellan"
names[113] = "Luke 'luke(1)' Willis"
names[114] = ""
names[115] = "Modeler"
names[116] = "John 'Insidious' Davidson"
names[117] = "Herb 'XFracture' Halstead"
names[118] = ""
names[119] = "Village Idiot/Moral Support"
names[120] = "Nick 'Gwarsbane' Julian"
names[121] = ""
names[122] = "Enabler"
names[123] = "Michael 'Supermike' Soloman"
names[124] = ""
names[125] = "Project Lead and Software Engineer"
names[126] = "Garrett 'Jehosephat2k' Van Cleef"
names[127] = ""
names[128] = "BlackLanner"
names[129] = "Matthew 'Matthew_Ts' Jones"
names[130] = "Rio 'verybad' Guzman"
names[131] = "Luke 'luke(1)' Willis"
names[132] = ""
names[133] = "Commando"
names[134] = "Matthew 'Matthew_Ts' Jones"
names[135] = ""
names[136] = "Cyclops"
names[137] = "Byron 'Shadow' Masterson"
names[138] = ""
names[139] = "Grizzly"
names[140] = "Matthew 'Matthew_Ts' Jones"
}
}
@@ -0,0 +1,212 @@
#include "Content\\ShellScripts\\stddefs.h"
#include "Content\\ShellScripts\\credits.script"
#include "Content\\ShellScripts\\ScriptStrings.h"
main
{
GUI_CREATE
{
font3d regfont = FPATH localize$(DNL_F_CREDITS_NAME)
font3d boldfont = FPATH localize$(DNL_F_CREDITS_TITLE)
object o_cinema = cinema_script
focus(o_cinema)
}
}
cinema_script
{
GUI_CREATE
{
spew"Credits create"
int Temp = 0
@SHELL@bkg = GPATH "CC_Background.tga"
// Background movie
// object o_burnmech = s_bkgmovie
@mouse@pointer.showMousePointer = 0
location = 0, 0, 10
region = 0,0 to 800,600
object o_click_region = click_region
o_click_region.location = 0, 0, 255
initialize(o_click_region)
object o_names = names
object o_credits[NUM_OF_CREDITS]
int last_credit = NUM_OF_CREDITS - 1
initialize(this)
focus(this)
}
GUI_CHAR
{
int ch = getchar()
if (ch == char(" ") || (ch == 27)) // only escape or space exit the cinema
{
if(exists(@Cinema_Credits@))
{
@mouse@pointer.showMousePointer = 1
script_continue @Cinema_Credits@
script_end
}
else
{
@mouse@pointer.showMousePointer = 1
@SHELL@lastScreen[@SHELL@lastScreenDepth] = CREDITSCINEMA
@SHELL@lastScreen[@SHELL@lastScreenDepth] = MAINMENU
@SHELL@currentScreen = CINEMAOPTIONS
}
}
}
GUI_EXECUTE
{
if o_credits[last_credit].locy <= 0
{
initialize(this)
}
}
GUI_INIT
{
@SHELL@bkg = GPATH "CC_Background.tga"
int i
for i = 0; i < NUM_OF_CREDITS; i++
{
o_credits[i] = credits
o_credits[i].title = o_names.title[i]
o_credits[i].location = 0, 0, 50
o_credits[i].locy = (getresy() - 102) + (i * 30)
o_credits[i].name = o_names.names[i]
}
for i = 0; i < NUM_OF_CREDITS; i++
{
initialize(o_credits[i])
}
}
GUI_DRAW
{
render @SHELL@bkg,@SHELL@location
}
}
click_region
{
GUI_CREATE
{
}
GUI_INIT
{
region = 0, 0 to getresx(), getresy()
}
LBUTTON_UPDATE
{
if (mouse.left == BUTTON_PRESSED)
{
if(exists(@Cinema_Credits@))
{
@mouse@pointer.showMousePointer = 1
script_continue @Cinema_Credits@
script_end
}
else
{
@mouse@pointer.showMousePointer = 1
@SHELL@lastScreen[@SHELL@lastScreenDepth] = CREDITSCINEMA
@SHELL@lastScreen[@SHELL@lastScreenDepth] = MAINMENU
@SHELL@currentScreen = CINEMAOPTIONS
}
}
}
GUI_DRAW
{
setpencolor(0,0,0,255)
drawrect 0,0 to getresx(),102
drawrect 0,getresy()-102 to getresx(),getresy()
}
}
credits
{
GUI_CREATE
{
int title = false
int speed = 2
int locy = getresy() - 40
int showme = true
string name = ""
framerate = 15
int widthdiv2
}
GUI_INIT
{
if title == true
{
print3d_attributes = boldfont, 0xffff7200, 1, 0, 1, 0, 0, just_center
}
if title == false
{
print3d_attributes = regfont, 0xffffffff, 1, 0, 1, 0, 0, just_center
}
widthdiv2 = getprint3dwidth(name)/2
}
GUI_EXECUTE
{
locy = locy - speed
}
GUI_DRAW
{
if ((locy < getresy() - 102) && (locy > 85))
// if showme == true
{
if title == true
{
print3d_attributes = boldfont, 0xffff7200, 1, 0, 1, 0, 0, just_center
}
if title == false
{
print3d_attributes = regfont, 0xffffffff, 1, 0, 1, 0, 0, just_center
}
print3d_margins = (getresx()/2)-widthdiv2, locy to (getresx()/2)+widthdiv2, locy+24
print3d_position = (getresx()/2)-widthdiv2, locy
print3d name
}
}
}
//s_bkgmovie
//{
//
// GUI_CREATE
// {
// location = 4, 36, 0
// movie mymovie = szPATH_MOVIES "Burnloop_lr_15.avi"
// scale(mymovie) = 220, 220
// loop mymovie
// }
//
// GUI_DRAW
// {
// render mymovie, location
// }
//}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,233 @@
#include "Content\\ShellScripts\\stddefs.h"
#include "Content\\ShellScripts\\PilotCommon.h"
#include "Content\\ShellScripts\\ScriptStrings.h"
#include "Content\\ShellScripts\\buttons.script"
#include "Content\\ShellScripts\\editbox.script"
#include "Content\\ShellScripts\\listboxes.script"
#include "Content\\ShellScripts\\ErrorScreen.script"
main
{
GUI_CREATE
{
// use the whole region
location = 0, 0, 0
region = 0, 0 to getresx(), getresy()
object screen = o_EditPilotModal
}
}
o_EditPilotModal
{
GUI_CREATE
{
Font3d gHeaderFont3d = szPATH_FONTS localize$(IDS_F_DIALOG_TITLE)
Font3d gFont3d = szPATH_FONTS localize$(IDS_F_GEN_DESCRIPTION)
pane gFrame = GPATH "dialog_500x300m.tga"
// Initialize the OK and Cancel buttons
int iloop
object mbutton[2]
for(iloop = 0; iloop < 2; iloop++)
{
mbutton[iloop] = s_multistatepane
mbutton[iloop].total_states = 3
mbutton[iloop].textsize = 1
mbutton[iloop].file = WPATH "button_reg_138x23m_3state.tga"
mbutton[iloop].id = iloop
}
mbutton[0].text = localize$(IDS_GN_OK)
mbutton[0].location = 180, 395, 10
mbutton[1].text = localize$(IDS_GN_CANCEL)
mbutton[1].location = 480, 395, 10
for(iloop = 0; iloop < 2; iloop++)
{
initialize(mbutton[iloop])
}
framerate = 30
// Initialize and focus on the Edit Box
object mEditBox = s_editbox
mEditBox.location = 370, 280, 10
mEditBox.boxWidth = 250
mEditBox.boxHeight = 20
mEditBox.boxFont3D = szPATH_FONTS localize$(IDS_F_GEN_EDITBOX)
mEditBox.labelFont3D = szPATH_FONTS localize$(IDS_F_GEN_LABEL)
mEditBox.label = localize$(IDS_RS_L_PILOT_NAME_COLON)
mEditBox.boxTextOffset = 5, 3
mEditBox.offset = -185, 3
mEditBox.boxTextLimit = PILOT_NAME_TEXT_LIMIT
initialize(mEditBox)
// Grab the name and difficulty of the current pilot from the parent script
int nselected = @PilotEntry@screen.o_players_mclistbox.nselected
mEditBox.boxvalue = @PilotEntry@screen.o_players_mclistbox.column[0].list_item[nselected]
sound btnTriggeredSound = SPATH "sfx_button5.wav"
focus(mEditBox)
// variables for fading in and out
int alpha_val = 5
int fadeout = false
// Variable for the error screen
object errorScreen
}
GUI_EXECUTE
{
if fadeout == true
{
// Fading out(Exiting)
if alpha_val > 0
{
alpha_val = alpha_val - 5
if alpha_val <= 0
{
alpha_val = 0
script_end "EditPilotModal.script"
}
}
}
else
{
// Fading in(Entering)
if alpha_val < 150
{
alpha_val += 5
if alpha_val >= 150
{
alpha_val = 150
}
}
}
}
GUI_DRAW
{
// fade in or fade out
setpencolor(0, 0, 0, alpha_val)
drawrect 0, 0 to getresx(), getresy()
// Redraw the frame if we are not fading out(exiting)
if (fadeout == false)
{
color (gframe) = packcolor(255, 255, 255, alpha_val)
render gframe, 150, 150
// Header
print3d_attributes = gHeaderFont3d,0xffffffff,1,0,1,0,0,just_center
print3d_margins = 150, 150 to 650, 450
print3d_position = 150, 155
print3d localize$(IDS_RS_EDIT_TITLE)
print3d_attributes = gFont3d,0xffffffff,1,1,1,0,0
print3d_margins = 180, 200 to 620, 400
print3d_position = 180, 200
print3d localize$(IDS_RS_S_EDIT)
}
}
GUI_MAILBOX
{
// Handle edit box finished edit
if (sender == mEditBox)
{
if(getmessage() == 1)
{
focus(mbutton[0])
}
}
// Handle the OK Request
if (sender == mbutton[0])
{
play btnTriggeredSound,1
unfocus
// Pass the data to the Pilot Screen script and let it handle the data
@PilotEntry@screen.currentPilotName = mEditBox.boxValue
mail(1, @PilotEntry@screen)
}
// Handle the Cancel Request
if (sender == mbutton[1])
{
play btnTriggeredSound,1
unfocus
// Just tell the Pilot Screen script that no changes should be made
mail(-1, @PilotEntry@screen)
@PilotEntry@screen.onEditPilot = 0
// Tell this script to fade out and deactivate all its objects
fadeout = true
for(iloop = 0; iloop < 2; iloop++)
{
deactivate(mbutton[iloop])
}
deactivate(mEditBox)
}
if (sender == @PilotEntry@screen)
{
if (getmessage() == -1)
{
errorScreen = o_ErrorScreen
errorScreen.error_message = localize$(IDS_RS_E_PILOT_EDIT_EMPTY)
initialize(errorScreen)
activate(errorScreen)
return
}
if (getmessage() == -2)
{
errorScreen = o_ErrorScreen
errorScreen.error_message = localize$(IDS_RS_E_PILOT_EDIT_SPACE)
initialize(errorScreen)
activate(errorScreen)
return
}
if (getmessage() == -3)
{
errorScreen = o_ErrorScreen
errorScreen.error_message = localize$(IDS_RS_E_PILOT_EDIT_SAME)
initialize(errorScreen)
activate(errorScreen)
return
}
if (getmessage() == -4)
{
errorScreen = o_ErrorScreen
errorScreen.error_message = localize$(IDS_RS_E_PILOT_EDIT_INVALID)
initialize(errorScreen)
activate(errorScreen)
return
}
if (getmessage() == 1)
{
@PilotEntry@screen.onEditPilot = 0
// Tell this script to fade out and deactivate all its objects
fadeout = true
for(iloop = 0; iloop < 2; iloop++)
{
deactivate(mbutton[iloop])
}
deactivate(mEditBox)
}
}
if (sender == errorScreen)
{
focus(mEditBox)
}
}
}
@@ -0,0 +1,125 @@
#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(),50
drawrect 0,(getresy() - 50) to getresx(), getresy()
}
}
cinema_script
{
GUI_CREATE
{
@mouse@pointer.showMousePointer = 0
@SHELL@bkg = GPATH "CC_Background.tga"
stop 0
location = 0, 0, 10
movie cinema = szPATH_MOVIES "CEmpty.mpg"
region = 0,0 to 800,600
int cleared = 0
framerate = 10
int mstop
string EndGame
framerate = 0
initialize(this)
}
GUI_INIT
{
cinema = szPATH_MOVIES $$m_EndMovieName$$
scale (cinema) = 209,209,100
play cinema
framerate = 5
}
LBUTTON_UPDATE
{
if (mouse.left == BUTTON_PRESSED)
{
mail(nMSG_StopMovie,this)
}
}
GUI_DRAW
{
if (cleared == 0)
{
render @SHELL@bkg,@SHELL@location
cleared = 1
}
render cinema,0,30
}
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(@Cinema_Credits@))
{
script_continue @Cinema_Credits@
script_end
}
else
{
@SHELL@lastScreenDepth++
@SHELL@lastScreen[@SHELL@lastScreenDepth] = ENDINGCINEMA
@SHELL@currentScreen = CREDITSCINEMA
}
@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)
}
}
}
@@ -0,0 +1,240 @@
#include "Content\\ShellScripts\\stddefs.h"
#include "Content\\ShellScripts\\ScriptStrings.h"
#define NO_BUTTON_MODE 0
#define ONE_BUTTON_MODE 1
#define TWO_BUTTON_MODE 2
#define THREE_BUTTON_MODE 3
o_ErrorScreen
{
GUI_CREATE
{
// use the whole region
location = 0, 0, 500
region = 0, 0 to getresx(), getresy()
Font3d gHeaderFont3d = FPATH localize$(IDS_F_GEN_SCREEN_TITLE)
Font3d gFont3d = FPATH localize$(IDS_F_GEN_DESCRIPTION)
int initialized = false
int extended_size = 0
pane gFrame
framerate = 30
sound btnTriggeredSound = SPATH "sfx_button5.wav"
// These three variables below MUST BE INITIALIZED
int button_mode = ONE_BUTTON_MODE
string error_header = localize$(IDS_GN_ERROR)
string error_message = ""
string buttonText[3]
int use_fadeout = true
// default text message for button 0
buttonText[0] = localize$(IDS_GN_OK)
// button objects
object mbutton[3]
// variables for fading in and out
int alpha_val = 5
int fadeout = false
}
GUI_INIT
{
// set up all button objects
int i
for (i = 0; i < button_mode; i++)
{
mbutton[i] = s_multistatepane
mbutton[i].file = WPATH "button_reg_138x23m_3state.tga"
mbutton[i].total_states = 3
// mbutton[i].twidth = 100
mbutton[i].id = 0
mbutton[i].text = buttonText[i]
}
if (extended_size == 0)
{
gFrame = GPATH "dialog_350x250m.tga"
// set up the location of button objects and then initialize
switch (button_mode)
{
case THREE_BUTTON_MODE:
mbutton[0].location = getresx() / 2 - 150, getresy() / 2 + 105, location.z + 20
mbutton[1].location = getresx() / 2, getresy() / 2 + 105, location.z + 20
mbutton[2].location = getresx() / 2 - 25, getresy() / 2 + 55, location.z + 20
initialize(mbutton[0])
initialize(mbutton[1])
initialize(mbutton[2])
break
case TWO_BUTTON_MODE:
mbutton[0].location = getresx() / 2 - 149, (getresy() / 2) + 72, location.z + 20
mbutton[1].location = getresx() / 2 + 7, (getresy() / 2) + 72, location.z + 20
initialize(mbutton[0])
initialize(mbutton[1])
break
case ONE_BUTTON_MODE:
mbutton[0].location = getresx() / 2 - 71, (getresy() / 2) + 72, location.z + 20
initialize(mbutton[0])
break
}
}
else
{
gFrame = GPATH "dialog_500x300m.tga"
// set up the location of button objects and then initialize
switch (button_mode)
{
case THREE_BUTTON_MODE:
mbutton[0].location = getresx() / 2 - 224, getresy() / 2 + 95, location.z + 20
mbutton[1].location = getresx() / 2 + 82, getresy() / 2 + 95, location.z + 20
mbutton[2].location = getresx() / 2 - 70, getresy() / 2 + 95, location.z + 20
initialize(mbutton[0])
initialize(mbutton[1])
initialize(mbutton[2])
break
case TWO_BUTTON_MODE:
mbutton[0].location = getresx() / 2 - 189, (getresy() / 2) + 90, location.z + 20
mbutton[1].location = getresx() / 2 + 47, (getresy() / 2) + 90, location.z + 20
initialize(mbutton[0])
initialize(mbutton[1])
break
case ONE_BUTTON_MODE:
mbutton[0].location = getresx() / 2 - 71, (getresy() / 2) + 90, location.z + 20
initialize(mbutton[0])
break
}
}
if use_fadeout == false
{
alpha_val = 150
}
initialized = true
}
GUI_ACTIVATE
{
int i
for (i = 0; i < button_mode; i++)
{
activate(mbutton[i])
}
focus(mbutton[0])
}
GUI_DEACTIVATE
{
int i
for (i = 0; i < button_mode; i++)
{
deactivate(mbutton[i])
}
}
GUI_EXECUTE
{
if use_fadeout == true
{
if fadeout == true
{
// Fading out(Exiting)
if alpha_val > 0
{
alpha_val = alpha_val - 5
if alpha_val <= 0
{
alpha_val = 0
deactivate(this)
}
}
}
else
{
// Fading in(Entering)
if alpha_val < 150
{
alpha_val += 5
if alpha_val >= 150
{
alpha_val = 150
}
}
}
}
}
GUI_DRAW
{
// fade in or fade out
setpencolor(0, 0, 0, alpha_val)
drawrect 0, 0 to getresx(), getresy()
// Redraw the frame if we are not fading out(exiting)
if ((initialized) && (fadeout == false))
{
color (gframe) = packcolor(255, 255, 255, alpha_val)
if (extended_size == 0)
{
render gframe, getresx() / 2 - 175, getresy() / 2 - 125
// Header
print3d_attributes = gHeaderFont3d,0xffffffff,1,0,1,0,0,2
print3d_margins = getresx() / 2 - 175, (getresy() / 2) - 118 to getresx() / 2 + 175, getresy() / 2 - 50
print3d_position = getresx() / 2 - 175, (getresy() / 2) - 118
print3d error_header
print3d_attributes = gFont3d,0xffffffff,1,1,1,0,0,0
print3d_margins = (getresx() / 2) - 145, getresy() / 2 - 75 to getresx() / 2 + 145, getresy() / 2 + 75
print3d_position = (getresx() / 2) - 145, getresy() / 2 - 75
print3d error_message
}
else
{
render gframe, getresx() / 2 - 250, getresy() / 2 - 150
// Header
print3d_attributes = gHeaderFont3d,0xffffffff,1,0,1,0,0,2
print3d_margins = getresx() / 2 - 185, (getresy() / 2) - 140 to getresx() / 2 + 175, getresy() / 2 - 80
print3d_position = getresx() / 2 - 185, (getresy() / 2) - 140
print3d error_header
print3d_attributes = gFont3d,0xffffffff,1,-1,1,0,0,0
print3d_margins = (getresx() / 2) - 225, getresy() / 2 - 100 to getresx() / 2 + 225, getresy() / 2 + 85
print3d_position = (getresx() / 2) - 225, getresy() / 2 - 100
print3d error_message
}
}
}
GUI_MAILBOX
{
// mail the button number to the parent and then deactivate this object
int i
for (i = 0; i < button_mode; i++)
{
if (sender == mbutton[i])
{
play btnTriggeredSound,1
// Mail the button number to the parent
mail(i)
// Tell this script to fade out and deactivate all its objects
fadeout = true
int j
for (j = 0; j < button_mode; j++)
{
deactivate(mbutton[j])
}
}
}
}
}

Some files were not shown because too many files have changed in this diff Show More