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.
208 lines
4.7 KiB
Plaintext
208 lines
4.7 KiB
Plaintext
//--------------------------------------------------------------------------
|
|
// Date Who Modification
|
|
// -------- --- ----------------------------------------------------------
|
|
// 11/01/02 MSL Removed "X" Button
|
|
//-------------------------------------------------------------------------
|
|
// jcem - start
|
|
#include "Content\\ShellScripts\\ctcl_params.h"
|
|
// jcem - end
|
|
|
|
#include "Content\\ShellScripts\\ScriptStrings.h"
|
|
|
|
interlace
|
|
{
|
|
GUI_CREATE
|
|
{
|
|
int lace_color = packcolor (100, 150, 255, 35)
|
|
|
|
pane p_interlace = WPATH "interlace.tga"
|
|
alphamode (p_interlace) = am_alpha_alphainvalpha
|
|
color (p_interlace) = lace_color
|
|
|
|
int pane_width = getwidth(p_interlace)
|
|
int pane_height = getheight(p_interlace)
|
|
int x_multiple = (getresx() / pane_width) + 1
|
|
int y_multiple = (getresy() / pane_height) + 1
|
|
|
|
framerate = 1
|
|
}
|
|
|
|
GUI_DRAW
|
|
{
|
|
int x
|
|
int y
|
|
for x = 0; x < x_multiple; x++
|
|
{
|
|
for y = 0; y < y_multiple; y++
|
|
{
|
|
render p_interlace, 0 + (x * pane_width), 0 + (y * pane_height)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
circle
|
|
{
|
|
GUI_CREATE
|
|
{
|
|
int circle_color = packcolor (255, 125, 20, 25)
|
|
|
|
pane p_circle = WPATH "big_circle.tga"
|
|
alphamode (p_circle) = am_alpha_alphainvalpha
|
|
color (p_circle) = circle_color
|
|
origin (p_circle) = getwidth(p_circle) / 2, getheight(p_circle) / 2
|
|
|
|
int rotate_me
|
|
int rot_val
|
|
|
|
framerate = 5
|
|
}
|
|
|
|
GUI_EXECUTE
|
|
{
|
|
if rotate_me == true
|
|
{
|
|
if rot_val < 360
|
|
{
|
|
rot_val += 1
|
|
rotate(p_circle) = 0, 0, rot_val
|
|
}
|
|
if rot_val >= 360
|
|
{
|
|
rot_val = 0
|
|
}
|
|
}
|
|
}
|
|
|
|
GUI_DRAW
|
|
{
|
|
render p_circle, location
|
|
}
|
|
}
|
|
|
|
frame
|
|
{
|
|
GUI_CREATE
|
|
{
|
|
font3d boldfont= FPATH localize$(IDS_F_DIALOG_TITLE)
|
|
|
|
int type
|
|
|
|
string screen_name
|
|
|
|
pane p_title = WPATH "frame_title.tga"
|
|
pane p_top = WPATH "frame_top.tga"
|
|
pane p_close = WPATH "frame_close.tga"
|
|
pane p_left = WPATH "frame_left_nohelp.tga"
|
|
pane p_right = WPATH "frame_right_nohelp.tga"
|
|
pane p_bottom = WPATH "frame_bottom_nohelp.tga"
|
|
|
|
alphamode (p_title) = am_alpha_alphainvalpha
|
|
alphamode (p_top) = am_alpha_alphainvalpha
|
|
alphamode (p_close) = am_alpha_alphainvalpha
|
|
alphamode (p_left) = am_alpha_alphainvalpha
|
|
alphamode (p_right) = am_alpha_alphainvalpha
|
|
alphamode (p_bottom) = am_alpha_alphainvalpha
|
|
|
|
if !callback($$CTCL_IsConsoleX$$)
|
|
{
|
|
// object o_closebutton = s_multistatepane
|
|
// o_closebutton.file = WPATH "x_close.tga"
|
|
// o_closebutton.textcolor = 0xffffffff
|
|
// o_closebutton.total_states = 3
|
|
// o_closebutton.location = 758, 9, 150
|
|
// initialize (o_closebutton)
|
|
}
|
|
}
|
|
|
|
GUI_INIT
|
|
{
|
|
if type == 0
|
|
{
|
|
p_left = WPATH "frame_left_nohelp.tga"
|
|
p_right = WPATH "frame_right_nohelp.tga"
|
|
p_bottom = WPATH "frame_bottom_nohelp.tga"
|
|
}
|
|
else
|
|
{
|
|
p_left = WPATH "frame_left_help.tga"
|
|
p_right = WPATH "frame_right_help.tga"
|
|
p_bottom = WPATH "frame_bottom_help.tga"
|
|
}
|
|
alphamode (p_left) = am_alpha_alphainvalpha
|
|
alphamode (p_right) = am_alpha_alphainvalpha
|
|
alphamode (p_bottom) = am_alpha_alphainvalpha
|
|
|
|
// o_closebutton.location.z = location.z - 2
|
|
// initialize (o_closebutton)
|
|
}
|
|
|
|
GUI_DRAW
|
|
{
|
|
if !callback($$CTCL_IsConsoleX$$)
|
|
{
|
|
// render p_title, 0, 0
|
|
// render p_top, 324, 0
|
|
// render p_close, 741, 0
|
|
// render p_left, 0, 53
|
|
// render p_right, 773, 47
|
|
|
|
if type == 0
|
|
{
|
|
// render p_bottom, 0, 568
|
|
}
|
|
else
|
|
{
|
|
// render p_bottom, 0, 478
|
|
}
|
|
|
|
print3d_attributes = boldfont, 0xffff7200, 1, 1, 1, 0, 0, just_center
|
|
print3d_margins = 235, 0 to 545, 22
|
|
print3d_position = 235, 1
|
|
print3d screen_name
|
|
// print3d_attributes = boldfont, 0xffff7200, 1, 1, 1, 0, 0, just_center
|
|
// print3d_margins = 20, 10 to 295, 38
|
|
// print3d_position = 20, 13
|
|
// print3d screen_name
|
|
}
|
|
}
|
|
|
|
GUI_MAILBOX
|
|
{
|
|
if !callback($$CTCL_IsConsoleX$$)
|
|
{
|
|
// if (sender == o_closebutton)
|
|
// {
|
|
// unfocus
|
|
// terminate
|
|
// }
|
|
}
|
|
}
|
|
}
|
|
|
|
mouselines
|
|
{
|
|
GUI_CREATE
|
|
{
|
|
int linecolor = packcolor(100, 163, 221, 75)
|
|
int nLinewidth = 1
|
|
}
|
|
|
|
GUI_DRAW
|
|
{
|
|
setpencolor(linecolor)
|
|
|
|
for (int i = 0;i< nLinewidth; i++)
|
|
{
|
|
drawline (mouse.x + i), 0 to (mouse.x + i), mouse.y - 10
|
|
drawline (mouse.x + i), mouse.y + 10 to (mouse.x + i), getresy()
|
|
drawline 0, mouse.y to mouse.x - 10, mouse.y
|
|
drawline mouse.x + 10, mouse.y to getresx(), mouse.y
|
|
}
|
|
|
|
setpencolor(100, 163, 221, random(125, 150))
|
|
drawframe mouse.x - 10, mouse.y - 10 to mouse.x + 10, mouse.y + 10
|
|
drawframe mouse.x - 9, mouse.y - 9 to mouse.x + 9, mouse.y + 9
|
|
}
|
|
}
|