[chocolate-doom] 08/26: Allow changing of all menu graphic lumps via dehacked
Jonathan Dowland
jmtd at moszumanska.debian.org
Mon Jan 30 15:07:38 UTC 2017
This is an automated email from the git hooks/post-receive script.
jmtd pushed a commit to annotated tag chocolate-doom-0.1.4
in repository chocolate-doom.
commit a2caae3ef602584f6a22107046617711f5a81e09
Author: Simon Howard <fraggle at gmail.com>
Date: Sun Jan 22 23:48:07 2006 +0000
Allow changing of all menu graphic lumps via dehacked
Subversion-branch: /branches/CHOCOLATE_DOOM_0_1/chocolate-doom
Subversion-revision: 329
---
src/m_menu.c | 50 ++++++++++++++++++++++++++++----------------------
1 file changed, 28 insertions(+), 22 deletions(-)
diff --git a/src/m_menu.c b/src/m_menu.c
index fd188fb..f7b54f8 100644
--- a/src/m_menu.c
+++ b/src/m_menu.c
@@ -1,7 +1,7 @@
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
-// $Id: m_menu.c 321 2006-01-22 21:21:57Z fraggle $
+// $Id: m_menu.c 329 2006-01-22 23:48:07Z fraggle $
//
// Copyright(C) 1993-1996 Id Software, Inc.
// Copyright(C) 2005 Simon Howard
@@ -22,6 +22,9 @@
// 02111-1307, USA.
//
// $Log$
+// Revision 1.11.2.2 2006/01/22 23:48:07 fraggle
+// Allow changing of all menu graphic lumps via dehacked
+//
// Revision 1.11.2.1 2006/01/22 21:21:57 fraggle
// Dehacked string replacements for menu graphic lump names
//
@@ -72,7 +75,7 @@
//-----------------------------------------------------------------------------
static const char
-rcsid[] = "$Id: m_menu.c 321 2006-01-22 21:21:57Z fraggle $";
+rcsid[] = "$Id: m_menu.c 329 2006-01-22 23:48:07Z fraggle $";
#include <stdlib.h>
#include <ctype.h>
@@ -588,7 +591,7 @@ void M_DrawLoad(void)
{
int i;
- V_DrawPatchDirect (72,28,0,W_CacheLumpName("M_LOADG",PU_CACHE));
+ V_DrawPatchDirect (72,28,0,W_CacheLumpName(DEH_String("M_LOADG"),PU_CACHE));
for (i = 0;i < load_end; i++)
{
M_DrawSaveLoadBorder(LoadDef.x,LoadDef.y+LINEHEIGHT*i);
@@ -605,15 +608,15 @@ void M_DrawSaveLoadBorder(int x,int y)
{
int i;
- V_DrawPatchDirect (x-8,y+7,0,W_CacheLumpName("M_LSLEFT",PU_CACHE));
+ V_DrawPatchDirect (x-8,y+7,0,W_CacheLumpName(DEH_String("M_LSLEFT"),PU_CACHE));
for (i = 0;i < 24;i++)
{
- V_DrawPatchDirect (x,y+7,0,W_CacheLumpName("M_LSCNTR",PU_CACHE));
+ V_DrawPatchDirect (x,y+7,0,W_CacheLumpName(DEH_String("M_LSCNTR"),PU_CACHE));
x += 8;
}
- V_DrawPatchDirect (x,y+7,0,W_CacheLumpName("M_LSRGHT",PU_CACHE));
+ V_DrawPatchDirect (x,y+7,0,W_CacheLumpName(DEH_String("M_LSRGHT"),PU_CACHE));
}
@@ -654,7 +657,7 @@ void M_DrawSave(void)
{
int i;
- V_DrawPatchDirect (72,28,0,W_CacheLumpName("M_SAVEG",PU_CACHE));
+ V_DrawPatchDirect (72,28,0,W_CacheLumpName(DEH_String("M_SAVEG"),PU_CACHE));
for (i = 0;i < load_end; i++)
{
M_DrawSaveLoadBorder(LoadDef.x,LoadDef.y+LINEHEIGHT*i);
@@ -871,7 +874,7 @@ void M_DrawReadThis2(void)
//
void M_DrawSound(void)
{
- V_DrawPatchDirect (60,38,0,W_CacheLumpName("M_SVOL",PU_CACHE));
+ V_DrawPatchDirect (60,38,0,W_CacheLumpName(DEH_String("M_SVOL"),PU_CACHE));
M_DrawThermo(SoundDef.x,SoundDef.y+LINEHEIGHT*(sfx_vol+1),
16,snd_SfxVolume);
@@ -927,7 +930,7 @@ void M_MusicVol(int choice)
//
void M_DrawMainMenu(void)
{
- V_DrawPatchDirect (94,2,0,W_CacheLumpName("M_DOOM",PU_CACHE));
+ V_DrawPatchDirect (94,2,0,W_CacheLumpName(DEH_String("M_DOOM"),PU_CACHE));
}
@@ -938,8 +941,8 @@ void M_DrawMainMenu(void)
//
void M_DrawNewGame(void)
{
- V_DrawPatchDirect (96,14,0,W_CacheLumpName("M_NEWG",PU_CACHE));
- V_DrawPatchDirect (54,38,0,W_CacheLumpName("M_SKILL",PU_CACHE));
+ V_DrawPatchDirect (96,14,0,W_CacheLumpName(DEH_String("M_NEWG"),PU_CACHE));
+ V_DrawPatchDirect (54,38,0,W_CacheLumpName(DEH_String("M_SKILL"),PU_CACHE));
}
void M_NewGame(int choice)
@@ -964,7 +967,7 @@ int epi;
void M_DrawEpisode(void)
{
- V_DrawPatchDirect (54,38,0,W_CacheLumpName("M_EPISOD",PU_CACHE));
+ V_DrawPatchDirect (54,38,0,W_CacheLumpName(DEH_String("M_EPISOD"),PU_CACHE));
}
void M_VerifyNightmare(int ch)
@@ -1022,13 +1025,15 @@ char msgNames[2][9] = {"M_MSGOFF","M_MSGON"};
void M_DrawOptions(void)
{
- V_DrawPatchDirect (108,15,0,W_CacheLumpName("M_OPTTTL",PU_CACHE));
+ V_DrawPatchDirect (108,15,0,W_CacheLumpName(DEH_String("M_OPTTTL"),PU_CACHE));
V_DrawPatchDirect (OptionsDef.x + 175,OptionsDef.y+LINEHEIGHT*detail,0,
- W_CacheLumpName(detailNames[detailLevel],PU_CACHE));
+ W_CacheLumpName(DEH_String(detailNames[detailLevel]),
+ PU_CACHE));
V_DrawPatchDirect (OptionsDef.x + 120,OptionsDef.y+LINEHEIGHT*messages,0,
- W_CacheLumpName(msgNames[showMessages],PU_CACHE));
+ W_CacheLumpName(DEH_String(msgNames[showMessages]),
+ PU_CACHE));
M_DrawThermo(OptionsDef.x,OptionsDef.y+LINEHEIGHT*(mousesens+1),
10,mouseSensitivity);
@@ -1285,17 +1290,17 @@ M_DrawThermo
int i;
xx = x;
- V_DrawPatchDirect (xx,y,0,W_CacheLumpName("M_THERML",PU_CACHE));
+ V_DrawPatchDirect (xx,y,0,W_CacheLumpName(DEH_String("M_THERML"),PU_CACHE));
xx += 8;
for (i=0;i<thermWidth;i++)
{
- V_DrawPatchDirect (xx,y,0,W_CacheLumpName("M_THERMM",PU_CACHE));
+ V_DrawPatchDirect (xx,y,0,W_CacheLumpName(DEH_String("M_THERMM"),PU_CACHE));
xx += 8;
}
- V_DrawPatchDirect (xx,y,0,W_CacheLumpName("M_THERMR",PU_CACHE));
+ V_DrawPatchDirect (xx,y,0,W_CacheLumpName(DEH_String("M_THERMR"),PU_CACHE));
V_DrawPatchDirect ((x+8) + thermDot*8,y,
- 0,W_CacheLumpName("M_THERMO",PU_CACHE));
+ 0,W_CacheLumpName(DEH_String("M_THERMO"),PU_CACHE));
}
@@ -1306,7 +1311,7 @@ M_DrawEmptyCell
int item )
{
V_DrawPatchDirect (menu->x - 10, menu->y+item*LINEHEIGHT - 1, 0,
- W_CacheLumpName("M_CELL1",PU_CACHE));
+ W_CacheLumpName(DEH_String("M_CELL1"),PU_CACHE));
}
void
@@ -1315,7 +1320,7 @@ M_DrawSelCell
int item )
{
V_DrawPatchDirect (menu->x - 10, menu->y+item*LINEHEIGHT - 1, 0,
- W_CacheLumpName("M_CELL2",PU_CACHE));
+ W_CacheLumpName(DEH_String("M_CELL2"),PU_CACHE));
}
@@ -1903,7 +1908,8 @@ void M_Drawer (void)
// DRAW SKULL
V_DrawPatchDirect(x + SKULLXOFF,currentMenu->y - 5 + itemOn*LINEHEIGHT, 0,
- W_CacheLumpName(skullName[whichSkull],PU_CACHE));
+ W_CacheLumpName(DEH_String(skullName[whichSkull]),
+ PU_CACHE));
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/chocolate-doom.git
More information about the Pkg-games-commits
mailing list