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.
94 lines
2.0 KiB
Plaintext
94 lines
2.0 KiB
Plaintext
#include "Content\\ShellScripts\\stddefs.h"
|
|
#include "Content\\ShellScripts\\buttons.script"
|
|
#include "Content\\ShellScripts\\ShellFunctionHeaders.hpp"
|
|
#include "Content\\ShellScripts\\ScriptStrings.h"
|
|
|
|
main
|
|
{
|
|
GUI_CREATE
|
|
{
|
|
setresource("ScriptStrings.dll")
|
|
|
|
font3d regfont = FPATH localize$(IDS_F_GEN_LABEL)
|
|
font3d boldfont = FPATH localize$(IDS_F_DIALOG_TITLE)
|
|
|
|
pane background = GPATH "dialog_350x250m.tga"
|
|
|
|
object i_cursor = s_cursor
|
|
|
|
object o_close = s_multistatepane
|
|
o_close.total_states = 4
|
|
o_close.textsize = 1
|
|
o_close.text = localize$(IDS_GN_CLOSE)
|
|
o_close.file = WPATH "button_reg_138x23m_4state.tga"
|
|
o_close.location = (getresx() / 2) - 71, 367, 10
|
|
initialize(o_close)
|
|
|
|
object o_draw_object = drawtimer
|
|
focus(o_draw_object)
|
|
}
|
|
|
|
GUI_MAILBOX
|
|
{
|
|
if (sender == o_close)
|
|
{
|
|
unfocus
|
|
script_end "networkerror.script"
|
|
}
|
|
}
|
|
|
|
GUI_DRAW
|
|
{
|
|
setpencolor(0, 0, 0, 255)
|
|
drawrect 0, 0 to getresx(), getresy()
|
|
|
|
render background, 225, 175, 0
|
|
}
|
|
}
|
|
|
|
drawtimer
|
|
{
|
|
GUI_CREATE
|
|
{
|
|
}
|
|
|
|
GUI_DRAW
|
|
{
|
|
int error= callback($$GetNetworkError$$)
|
|
print3d_attributes = boldfont, 0xffffffff, 1,0,1,0,0, just_center
|
|
print3d_margins = 225, 183 to 575, 225
|
|
print3d_position = 225, 183
|
|
print3d localize$(IDS_GN_ERROR)
|
|
|
|
print3d_attributes = regfont, 0xffffffff, 1,1,1,0,0
|
|
print3d_margins = 258, 228 to 542, 360
|
|
print3d_position = 258, 228
|
|
|
|
if (error == 0)
|
|
print3d localize$(IDS_ERROR_NETWORK_0)
|
|
if (error == 1)
|
|
print3d localize$(IDS_ERROR_NETWORK_1)
|
|
if (error == 2)
|
|
print3d localize$(IDS_ERROR_NETWORK_2)
|
|
if (error == 3)
|
|
print3d localize$(IDS_ERROR_NETWORK_3)
|
|
if (error == 4)
|
|
print3d localize$(IDS_ERROR_NETWORK_3)
|
|
}
|
|
}
|
|
|
|
s_cursor
|
|
{
|
|
GUI_CREATE
|
|
{
|
|
pane p_pointer = GPATH "mouse_pointer.tga"
|
|
alphamode(p_pointer) = am_alpha_alphainvalpha
|
|
origin(p_pointer) = 0, 0
|
|
location.z = 255
|
|
}
|
|
|
|
GUI_DRAW
|
|
{
|
|
render p_pointer, mouse.x, mouse.y
|
|
}
|
|
} |