mirror of
https://github.com/k4zmu2a/SpaceCadetPinball.git
synced 2024-11-22 08:50:18 +01:00
Compare commits
3 commits
b40b54ce51
...
1c1fbcb811
Author | SHA1 | Date | |
---|---|---|---|
|
1c1fbcb811 | ||
|
c0ec8ec932 | ||
|
71e25fd7fa |
10 changed files with 29 additions and 9 deletions
Binary file not shown.
|
@ -82,7 +82,11 @@ void THole::Collision(TBall* ball, vector_type* nextPosition, vector_type* direc
|
||||||
ball->Position.X = Circle.Center.X;
|
ball->Position.X = Circle.Center.X;
|
||||||
ball->Position.Y = Circle.Center.Y;
|
ball->Position.Y = Circle.Center.Y;
|
||||||
ball->Acceleration.Z = 0.0;
|
ball->Acceleration.Z = 0.0;
|
||||||
Timer = timer::set(0.5f, this, TimerExpired);
|
|
||||||
|
// Ramp hole has no delay in FT.
|
||||||
|
auto captureTime = pb::FullTiltMode ? 0 : 0.5f;
|
||||||
|
Timer = timer::set(captureTime, this, TimerExpired);
|
||||||
|
|
||||||
if (!PinballTable->TiltLockFlag)
|
if (!PinballTable->TiltLockFlag)
|
||||||
{
|
{
|
||||||
loader::play_sound(HardHitSoundId);
|
loader::play_sound(HardHitSoundId);
|
||||||
|
|
|
@ -153,7 +153,7 @@ void TTextBox::Display(const wchar_t* text, float time)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void TTextBox::Draw()
|
void TTextBox::Draw(bool redraw)
|
||||||
{
|
{
|
||||||
auto bmp = BgBmp;
|
auto bmp = BgBmp;
|
||||||
if (bmp)
|
if (bmp)
|
||||||
|
@ -172,6 +172,12 @@ void TTextBox::Draw()
|
||||||
bool display = false;
|
bool display = false;
|
||||||
while (Message1)
|
while (Message1)
|
||||||
{
|
{
|
||||||
|
if (redraw)
|
||||||
|
{
|
||||||
|
display = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
if (Message1->Time == -1.0f)
|
if (Message1->Time == -1.0f)
|
||||||
{
|
{
|
||||||
if (!Message1->NextMessage)
|
if (!Message1->NextMessage)
|
||||||
|
@ -183,6 +189,8 @@ void TTextBox::Draw()
|
||||||
}
|
}
|
||||||
else if (Message1->TimeLeft() >= -2.0f)
|
else if (Message1->TimeLeft() >= -2.0f)
|
||||||
{
|
{
|
||||||
|
if (Timer > 0)
|
||||||
|
timer::kill(Timer);
|
||||||
Timer = timer::set(max(Message1->TimeLeft(), 0.25f), this, TimerExpired);
|
Timer = timer::set(max(Message1->TimeLeft(), 0.25f), this, TimerExpired);
|
||||||
display = true;
|
display = true;
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -22,7 +22,7 @@ public:
|
||||||
int Message(int code, float value) override;
|
int Message(int code, float value) override;
|
||||||
void Clear();
|
void Clear();
|
||||||
void Display(const wchar_t* text, float time);
|
void Display(const wchar_t* text, float time);
|
||||||
void Draw();
|
void Draw(bool redraw = false);
|
||||||
|
|
||||||
static void TimerExpired(int timerId, void* tb);
|
static void TimerExpired(int timerId, void* tb);
|
||||||
};
|
};
|
||||||
|
|
|
@ -2916,7 +2916,7 @@ void control::GameoverController(int code, TPinballComponent* caller)
|
||||||
|
|
||||||
if (missionMsg & 0x200)
|
if (missionMsg & 0x200)
|
||||||
{
|
{
|
||||||
int highscoreId = missionMsg % 4;
|
int highscoreId = missionMsg % 5;
|
||||||
int highScore = pb::highscore_table[highscoreId].Score;
|
int highScore = pb::highscore_table[highscoreId].Score;
|
||||||
auto nextHidhscoreId = highscoreId + 1;
|
auto nextHidhscoreId = highscoreId + 1;
|
||||||
if (highScore > 0)
|
if (highScore > 0)
|
||||||
|
|
|
@ -377,7 +377,7 @@ void fullscrn::paint()
|
||||||
fillRect(WindowRect1.right, menuHeight + WindowRect1.bottom, 0, 0);
|
fillRect(WindowRect1.right, menuHeight + WindowRect1.bottom, 0, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
render::paint();
|
pb::paint();
|
||||||
fullscrn_flag1 = 0;
|
fullscrn_flag1 = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -83,6 +83,7 @@ LanguageMenuEntry options::LanguageMenu[]
|
||||||
{L"Portugues do Brasil", Languages::BrazilianPortuguese},
|
{L"Portugues do Brasil", Languages::BrazilianPortuguese},
|
||||||
{L"Čeština", Languages::Czech},
|
{L"Čeština", Languages::Czech},
|
||||||
{L"Dansk", Languages::Danish},
|
{L"Dansk", Languages::Danish},
|
||||||
|
{L"Suomi", Languages::Finnish},
|
||||||
};
|
};
|
||||||
|
|
||||||
void options::ReadOptions()
|
void options::ReadOptions()
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
enum class Languages
|
enum class Languages
|
||||||
{
|
{
|
||||||
English = MAKELANGID(LANG_ENGLISH, SUBLANG_ENGLISH_US),
|
English = MAKELANGID(LANG_ENGLISH, SUBLANG_ENGLISH_US),
|
||||||
Russian = MAKELANGID(LANG_RUSSIAN, SUBLANG_DEFAULT),
|
Russian = MAKELANGID(LANG_RUSSIAN, SUBLANG_RUSSIAN_RUSSIA),
|
||||||
TraditionalChinese = MAKELANGID(LANG_CHINESE, SUBLANG_CHINESE_TRADITIONAL),
|
TraditionalChinese = MAKELANGID(LANG_CHINESE, SUBLANG_CHINESE_TRADITIONAL),
|
||||||
SimplifiedChinese = MAKELANGID(LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED),
|
SimplifiedChinese = MAKELANGID(LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED),
|
||||||
Polish = MAKELANGID(LANG_POLISH, SUBLANG_POLISH_POLAND),
|
Polish = MAKELANGID(LANG_POLISH, SUBLANG_POLISH_POLAND),
|
||||||
|
@ -17,6 +17,7 @@ enum class Languages
|
||||||
BrazilianPortuguese = MAKELANGID(LANG_PORTUGUESE, SUBLANG_PORTUGUESE_BRAZILIAN),
|
BrazilianPortuguese = MAKELANGID(LANG_PORTUGUESE, SUBLANG_PORTUGUESE_BRAZILIAN),
|
||||||
Czech = MAKELANGID(LANG_CZECH, SUBLANG_CZECH_CZECH_REPUBLIC),
|
Czech = MAKELANGID(LANG_CZECH, SUBLANG_CZECH_CZECH_REPUBLIC),
|
||||||
Danish = MAKELANGID(LANG_DANISH, SUBLANG_DANISH_DENMARK),
|
Danish = MAKELANGID(LANG_DANISH, SUBLANG_DANISH_DENMARK),
|
||||||
|
Finnish = MAKELANGID(LANG_FINNISH, SUBLANG_FINNISH_FINLAND),
|
||||||
};
|
};
|
||||||
|
|
||||||
struct LanguageMenuEntry
|
struct LanguageMenuEntry
|
||||||
|
|
|
@ -135,6 +135,12 @@ void pb::firsttime_setup()
|
||||||
void pb::paint()
|
void pb::paint()
|
||||||
{
|
{
|
||||||
render::paint();
|
render::paint();
|
||||||
|
if (score::msg_fontp == nullptr)
|
||||||
|
{
|
||||||
|
// DrawText writes to screen directly, text gets overwritten by full vScreen blit.
|
||||||
|
pinball::InfoTextBox->Draw(true);
|
||||||
|
pinball::MissTextBox->Draw(true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void pb::mode_change(int mode)
|
void pb::mode_change(int mode)
|
||||||
|
|
|
@ -242,7 +242,7 @@
|
||||||
#define DLG_HIGHSCORES_EditName5 605
|
#define DLG_HIGHSCORES_EditName5 605
|
||||||
#define Menu1_AlternativeRender 601
|
#define Menu1_AlternativeRender 601
|
||||||
#define Menu1_Language 700
|
#define Menu1_Language 700
|
||||||
#define Menu1_LanguageMax 713
|
#define Menu1_LanguageMax 714
|
||||||
|
|
||||||
// Next default values for new objects
|
// Next default values for new objects
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in a new issue