This commit is contained in:
Paul 2000-11-24 16:14:55 +00:00
parent 9bd5af6beb
commit df57fbe7b9
3 changed files with 24 additions and 0 deletions

View File

@ -86,6 +86,10 @@ eng=JUMP
eng=ACTION
; Screen menu
[STR__FRONTEND__HORIZONTAL_POSITION]
eng=HORIZONTAL POSITION
[STR__FRONTEND__VERTICAL_POSITION]
eng=VERTICAL POSITION
; Sound menu
[STR__FRONTEND__BGM]

View File

@ -58,6 +58,10 @@
#include "pad\pads.h"
#endif
#ifndef __VID_HEADER_
#include "system\vid.h"
#endif
/* Std Lib
------- */
@ -249,6 +253,14 @@ void CFrontEndOptions::init()
// Populate SCREEN menu
CGUIFactory::createSliderButtonFrame(m_modeMenus[MODE__SCREEN],
X_BORDER,Y_BORDER,412-(X_BORDER*2),35,
STR__FRONTEND__HORIZONTAL_POSITION,
&m_screenXOff,0,64);
CGUIFactory::createSliderButtonFrame(m_modeMenus[MODE__SCREEN],
X_BORDER,Y_BORDER+40,412-(X_BORDER*2),35,
STR__FRONTEND__VERTICAL_POSITION,
&m_screenYOff,0,32);
// Populate SOUND menu
@ -278,6 +290,8 @@ void CFrontEndOptions::init()
m_sfxVolume=CSoundMediator::getVolume(CSoundMediator::SFX);
m_speechVolume=CSoundMediator::getVolume(CSoundMediator::SPEECH);
m_controlStyle=CPadConfig::getConfig();
m_screenXOff=VidGetXOfs();
m_screenYOff=VidGetYOfs();
}
/*----------------------------------------------------------------------
@ -395,6 +409,10 @@ void CFrontEndOptions::think(int _frames)
PAUL_DBGMSG("SPEECH");
}
}
else if(m_mode==MODE__SCREEN)
{
VidSetXYOfs(m_screenXOff,m_screenYOff);
}
}
if(!m_closingDown&&m_exitFlag)

View File

@ -111,6 +111,8 @@ private:
int m_sfxVolume;
int m_speechVolume;
int m_controlStyle;
int m_screenXOff;
int m_screenYOff;
static int s_controlStyleValues[];
static CGUITextReadout::TextReadoutData s_controlStyleReadoutText[];