scummvm/engines/tinsel/sysvar.h
2022-05-07 12:30:52 +02:00

166 lines
4.2 KiB
C++

/* ScummVM - Graphic Adventure Engine
*
* ScummVM is the legal property of its developers, whose names
* are too numerous to list here. Please refer to the COPYRIGHT
* file distributed with this source distribution.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* System variable handling.
*/
#ifndef TINSEL_SYSVAR_H // prevent multiple includes
#define TINSEL_SYSVAR_H
namespace Tinsel {
typedef enum { SV_DEFAULT_INV,
SV_CONV_TOPY, // Y-offset of Conversation(TOP)
SV_CONV_BOTY, // Y-offset of Conversation(BOT)
SV_CONV_MINX, // Minimum distance from side
SV_CONV_MINY, // Minimum distance from top
SV_CONV_ABOVE_Y, // Distance above actor
SV_CONV_BELOW_Y, // Distance below actor
SV_LANGUAGE,
SV_SAMPLE_LANGUAGE,
SV_SUBTITLES,
SV_SAVED_GAME_EXISTS,
SV_CONVERSATIONWAITS, // } Do they wait for
SV_SPEECHWAITS, // } scrolls to complete?
SV_ENABLEPOINTTAG, // Enable PointTag()
SV_ENABLEPRINTCURSOR, // Enable cursor with PrintCursor()
SV_SCROLL_XTRIGGER, // }
SV_SCROLL_XDISTANCE, // }
SV_SCROLL_XSPEED, // } Scroll parameters!
SV_SCROLL_YTRIGGERTOP, // }
SV_SCROLL_YTRIGGERBOT, // }
SV_SCROLL_YDISTANCE, // }
SV_SCROLL_YSPEED, // }
SV_SPEECHDELAY, // Delay 'twixt text/animation and sample
SV_MUSICDIMFACTOR, // dimVolume = volume - volume/SV_MDF
SV_TAGCOLOR, // if set, default actor's text color gets poked in here
SV_USER1,
SV_USER2,
SV_USER3,
SV_USER4,
SV_USER5,
SV_USER6,
SV_MinimumXoffset,
SV_MaximumXoffset,
SV_MinimumYoffset,
SV_MaximumYoffset,
// dimVolume = volume - volume/DF
SYS_DefaultFxDimFactor, // To this at start of scene
SYS_SceneFxDimFactor, // Alter within scene
SYS_HighlightRGB,
SYS_Platform, // Hardware platform **READ ONLY**
SYS_Debug, // TRUE for debug build/'cheat'**READ ONLY**
ISV_DIVERT_ACTOR_T2 = 0x28,
ISV_NO_BLOCKING_T2 = 0x29,
ISV_GHOST_ACTOR_T2 = 0x2A,
ISV_GHOST_BASE_T2 = 0x2B,
ISV_GHOST_COLOR_T2 = 0x2C,
SV_SPRITER_SCENE_ID = 0x2F, // Noir, loaded scene
ISV_DIVERT_ACTOR_T3 = 0x32,
ISV_NO_BLOCKING_T3 = 0x33,
ISV_GHOST_ACTOR_T3 = 0x34,
ISV_GHOST_BASE_T3 = 0x35,
ISV_GHOST_COLOR_T3 = 0x36,
SV_SPRITER_SCALE = 0x37, // Noir, scale used for 3D rendering
SV_SPRITER_OVERLAY = 0x38, // Noir, if additional model is loaded
SV_TOPVALID } SYSVARS;
#define ISV_DIVERT_ACTOR ((TinselVersion == 3) ? ISV_DIVERT_ACTOR_T3 : ISV_DIVERT_ACTOR_T2)
#define ISV_NO_BLOCKING ((TinselVersion == 3) ? ISV_NO_BLOCKING_T3 : ISV_NO_BLOCKING_T2)
#define ISV_GHOST_ACTOR ((TinselVersion == 3) ? ISV_GHOST_ACTOR_T3 : ISV_GHOST_ACTOR_T2)
#define ISV_GHOST_BASE ((TinselVersion == 3) ? ISV_GHOST_BASE_T3 : ISV_GHOST_BASE_T2)
#define ISV_GHOST_COLOR ((TinselVersion == 3) ? ISV_GHOST_COLOR_T3 : ISV_GHOST_COLOR_T2)
typedef enum {
// Main Menu
SS_LOAD_OPTION, //
SS_SAVE_OPTION, //
SS_RESTART_OPTION, //
SS_SOUND_OPTION, //
SS_CONTROL_OPTION, //
SS_SUBTITLES_OPTION, //
SS_QUIT_OPTION, //
SS_RESUME_OPTION, //
SS_LOAD_HEADING,
SS_SAVE_HEADING,
SS_RESTART_HEADING,
SS_QUIT_HEADING,
SS_MVOL_SLIDER,
SS_SVOL_SLIDER,
SS_VVOL_SLIDER,
SS_DCLICK_SLIDER,
SS_DCLICK_TEST,
SS_SWAP_TOGGLE,
SS_TSPEED_SLIDER,
SS_STITLE_TOGGLE,
SS_HOPPER1, // Hopper scene menu heading
SS_SOUND_HEADING,
SS_CONTROLS_HEADING,
SS_LANGUAGE_SELECT,
// Noir only:
SS_NOIR1,
SS_NOIR2,
SS_NOIR3,
SS_NOIR4,
SS_MAX_VALID
} BOLLOX;
void InitSysVars();
void SetSysVar(int varId, int newValue);
int SysVar(int varId);
void SaveSysVars(int *pSv);
void RestoreSysVars(int *pSv);
void SetSysString(int number, SCNHANDLE hString);
SCNHANDLE SysString(int number);
bool GetNoBlocking();
void SetNoBlocking(bool flag);
} // End of namespace Tinsel
#endif