From b98fc8624c8c333757048968165fdf22a0a1a91f Mon Sep 17 00:00:00 2001 From: MolassesLover <60114762+MolassesLover@users.noreply.github.com> Date: Tue, 24 Oct 2023 00:06:54 +0200 Subject: [PATCH] Fixed issue #218, caused by new libclf versions > **Note**: This commit message is written in Markdown for the sake of clean documentation. This commit fixes issue [#218](https://github.com/EasyRPG/Editor/issues/218) which was a combination of compilation errors starting from libclf commit `b6a280bc57b31fd3ebad3b55b5ae75a5bec46a61`. Another error appeared as well, starting from `2a2e0d3900bfd11826626a8b28c7a6bf9bcb410c`. --- src/stringizer.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/stringizer.cpp b/src/stringizer.cpp index cf926bd8..60549654 100644 --- a/src/stringizer.cpp +++ b/src/stringizer.cpp @@ -885,9 +885,9 @@ namespace + (com.parameters[2] ? Stringizer::tr("(Wait)") : ""); } - QString stringizeSpriteTransparency(const lcf::rpg::EventCommand& com) + QString stringizePlayerVisibility(const lcf::rpg::EventCommand& com) { - return Stringizer::tr("Sprite Transparency") + ": " + return Stringizer::tr("Player Visibility") + ": " + (com.parameters[0] ? Stringizer::tr("Opaque") : Stringizer::tr("Transparent")); } @@ -956,9 +956,9 @@ namespace + (com.parameters[1] ? ", " + Stringizer::tr("Vert Scroll") : ""); } - QString stringizeChangeEncounterRate(const lcf::rpg::EventCommand& com) + QString stringizeChangeEncounterSteps(const lcf::rpg::EventCommand& com) { - return Stringizer::tr("Change Encounter Rate") + ": " + QString::number(com.parameters[0]); + return Stringizer::tr("Change Encounter Steps") + ": " + QString::number(com.parameters[0]); } QString stringizeTileSubstitution(const lcf::rpg::EventCommand& com) @@ -1517,7 +1517,7 @@ namespace Stringizer case C::MovePicture: return stringizeMovePicture(com); case C::ErasePicture: return stringizeErasePicture(com); case C::ShowBattleAnimation: return stringizeShowBattleAnimation(com); - case C::SpriteTransparency: return stringizeSpriteTransparency(com); + case C::PlayerVisibility: return stringizePlayerVisibility(com); case C::FlashSprite: return stringizeFlashSprite(com); case C::MoveEvent: return stringizeMoveEvent(com); case C::ProceedWithMovement: return tr("Proceed With Movement"); @@ -1532,7 +1532,7 @@ namespace Stringizer case C::KeyInputProc: return stringizeKeyInputProc(com); case C::ChangeMapTileset: return stringizeChangeMapTileset(com); case C::ChangePBG: return stringizeChangePBG(com); - case C::ChangeEncounterRate: return stringizeChangeEncounterRate(com); + case C::ChangeEncounterSteps: return stringizeChangeEncounterSteps(com); case C::TileSubstitution: return stringizeTileSubstitution(com); case C::TeleportTargets: return stringizeTeleportTargets(com); case C::ChangeTeleportAccess: return stringizeChangeTeleportAccess(com);