Files
firestorm/Gameleap/mw4/Content/ShellScripts/c_Rollover.script
T
Cyd 2b8ca921cb 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.
2026-06-24 21:28:16 -05:00

117 lines
2.6 KiB
Plaintext

#include "Content\\ShellScripts\\stddefs.h"
#include "Content\\ShellScripts\\ScriptStrings.h"
// This control created by brennanp 6.6.2000 ??Problems?? call x53796
//
// General Note: The rollover text display can be sent a string, or a string table address(int).
// In order to send either you will have to use the following formats
// [string]
// oRollover.szText = "Whatever text you want"
// mail (nMSG_INPUT_STRING,oRollover)
//
// [ResID]
// oRollover.nHelpID = IDS_STRING_TABLE_ID
// mail (nMSG_INPUT_RESID,oRollover)
//
// Parameters to pass into Rollover object
//
// int nWidth //Width of the print margin, and region
// int nHeight //Height of the print margin and region
// int nFontID //The font to be used
// int cTextColor //The color of the text
// int nHelpID //The string id of the text to be displayed
// string szText //the text to be displayed
//
// How to Initialize the Rollover object
//
// object oRollover = s_HelpRegion
// oRollover.location =
// oRollover.nWidth =
// oRollover.nHeight =
// oRollover.nFontID =
// oRollover.cTextColor=
// initialize(oRollover)
//
//These defines have to be used for the pane object to work
//#define nMSG_NOHELP 10020
//#define nMSG_CLEARHELP 10021
//#define nMSG_INPUT_STRING 10022
//#define nMSG_INPUT_RESID 10023
s_HelpRegion
{
GUI_CREATE
{
int nWidth
int nHeight
int nFontID = IDS_F_ROLLOVER_INFO
int cTextColor = 0xFFff7200
int nHelpID
string szText = null
string szScreen = null
catchup = 0
object oText = s_Text
}
GUI_INIT
{
region = 0,0 to nWidth,nHeight
oText.location = location
oText.nFontID = nFontID
oText.cTextColor = cTextColor
oText.nLayoutWidth = nWidth
oText.nLayoutHeight = nHeight
oText.szText = szScreen
initialize(oText)
if (nHelpID)
{
mail(nMSG_INPUT_RESID,this)
}
else
{
mail(nMSG_INPUT_STRING,this)
}
}
REGION_ENTERED
{
oText.szText = LOCALIZE$(IDS_GN_HELP_INFOREGION)
}
REGION_EXITED
{
oText.szText = null
}
GUI_ACTIVATE
{
activate(oText)
}
GUI_DEACTIVATE
{
deactivate(oText)
}
GUI_MAILBOX
{
int nMsg = getmessage()
switch (nMsg)
{
case nMSG_NOHELP:
case nMSG_CLEARHELP:
{
oText.szText = szScreen
return
}
break
case nMSG_INPUT_STRING:
oText.szText = szText
initialize(oText)
break
case nMSG_INPUT_RESID:
oText.szText = localize$(nHelpID)
initialize(oText)
break
}
}
}