Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
3cd916c
added set value to LawnScrollbar
Electr0Gunner Jun 18, 2026
e54e773
bumped version
Electr0Gunner Jun 18, 2026
385c5a7
Fix flash plant
Copyright-1 Jun 19, 2026
e38560b
Merge pull request #10 from Copyright-1/fix/FlashPlants
Electr0Gunner Jun 19, 2026
07aa14d
using std::filesystem for deleting a file
Electr0Gunner Jun 19, 2026
41dcfcf
Merge branch 'main' of https://github.com/LawnProject/ResoddedFramework
Electr0Gunner Jun 19, 2026
2f29550
fixed the (theoretical) last wrong counter for beghouled's flashing
Electr0Gunner Jun 19, 2026
c72283c
refactor: remove AutoCrit and CritSec
Pistonight Jun 20, 2026
99635c5
fix MessageWidget utf8
Pistonight Jun 21, 2026
f103c82
fix: Buffer.cpp ToUTF8String should accept string without BOM
Pistonight Jun 21, 2026
82a4cda
Merge pull request #13 from Pistonight/fix/bufferutf8
Electr0Gunner Jun 21, 2026
fa86909
Merge pull request #11 from Pistonight/fix/message_crash
Electr0Gunner Jun 21, 2026
e27e93e
Merge pull request #12 from Pistonight/refactor/scopelock
Electr0Gunner Jun 21, 2026
3b734e7
fixed Potato Mine unlocking Spudow in IZombie
Electr0Gunner Jun 21, 2026
a37c1da
Merge branch 'main' of https://github.com/LawnProject/ResoddedFramework
Electr0Gunner Jun 21, 2026
e5ff398
redid the formatting file
Electr0Gunner Jun 21, 2026
9f40600
missing formatting file
Electr0Gunner Jun 21, 2026
a888838
fixed art challenge formatting
Electr0Gunner Jun 21, 2026
548aa05
update to c++23
Pistonight Jun 22, 2026
afa5dbf
fix: potential UAF in SysFont
Pistonight Jun 22, 2026
68dc22c
Merge pull request #15 from Pistonight/sysfont_uaf
Electr0Gunner Jun 22, 2026
a153499
Merge pull request #14 from Pistonight/update_version
Electr0Gunner Jun 22, 2026
2876e16
fix: various SysFont fix and RenderCommandList refactor
Pistonight Jun 24, 2026
848cc1e
Merge pull request #16 from Pistonight/fix/various_font
Electr0Gunner Jun 25, 2026
6fd4e1f
fix music and soundfx label in options dialog
Pistonight Jun 28, 2026
386f644
allow stone button to be draw correctly with any size
Pistonight Jun 28, 2026
c13f6dc
fix: free planting cheat string
Pistonight Jun 28, 2026
7fcc6de
Merge pull request #19 from Pistonight/fix/plantingchear
Electr0Gunner Jun 30, 2026
9be3f73
Merge pull request #17 from Pistonight/fix/optionsl
Electr0Gunner Jun 30, 2026
1e739a2
Merge pull request #18 from Pistonight/fix/stonebutton
Electr0Gunner Jun 30, 2026
12b4636
feat: add -compile flag to compile definitions preparing for release
Pistonight Jun 29, 2026
6de8494
Merge pull request #20 from Pistonight/feat/compilemode
Electr0Gunner Jul 1, 2026
8108620
fixed minimize/maximize focus
Electr0Gunner Jul 1, 2026
94d43da
fixed a memory leak in compile mode, removed a useless function, usin…
Electr0Gunner Jul 1, 2026
4c69c74
fixed store plants packet if more plants were added before gatlingpea…
Electr0Gunner Jul 6, 2026
64e98b4
fixed bowling a giant wallnut giving the achievment
Electr0Gunner Jul 7, 2026
7555ba7
Fixed some image syncing logic, adding or removing images shouldn't b…
Electr0Gunner Jul 9, 2026
f28da34
Fixed SysFonts substracting Ascent twice (aGlyph.mBearingY has it inc…
Electr0Gunner Jul 9, 2026
1c05e37
Fixed Zombatar Items getting colored even if they aren't allowed
Electr0Gunner Jul 16, 2026
7eab1d1
Fixed Scary Potter (6th Vasebreaker) having the wrong picks
Electr0Gunner Jul 30, 2026
950272e
(potentially) fixed the overlapping cached plants, sound manager boun…
Electr0Gunner Jul 31, 2026
9cb38e0
attempt 2 at fixing the overlapping cached images
Electr0Gunner Aug 1, 2026
9a02bf1
removed old git ignores
Electr0Gunner Aug 1, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
---
Language: Cpp
BasedOnStyle: Microsoft
UseTab: Always
UseTab: ForIndentation
TabWidth: 4
SortIncludes: false
ReflowComments: false
AllowShortFunctionsOnASingleLine: false
BinPackParameters: true
BinPackArguments: true
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignArrayOfStructures: None
BreakArrays: false
AlignArrayOfStructures: Left
Cpp11BracedListStyle: false
ColumnLimit: 0
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ out/
crash.txt

Export/
assets/base
/assets/main.pak

/pseudocode
/vcpkg_installed
/android
Expand Down
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ if(MSVC AND GITHUB_ACTIONS)
add_link_options(/SAFESEH:NO)
endif()

set(CMAKE_C_STANDARD 17)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_C_STANDARD 23)
set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS ON)

Expand Down
948 changes: 476 additions & 472 deletions src/Lawn/Board.cpp

Large diffs are not rendered by default.

352 changes: 180 additions & 172 deletions src/Lawn/Challenge.cpp

Large diffs are not rendered by default.

125 changes: 63 additions & 62 deletions src/Lawn/Coin.cpp

Large diffs are not rendered by default.

42 changes: 21 additions & 21 deletions src/Lawn/CursorObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ void CursorObject::Update()
return;
}

if (!mApp->mWidgetManager->mMouseIn
#if LAWN_USE_UNFINISHED_GAMEPAD_SUPPORT
&& !mApp->UsingGamepad()
if (!mApp->mWidgetManager->mMouseIn
#if LAWN_USE_UNFINISHED_GAMEPAD_SUPPORT
&& !mApp->UsingGamepad()
#endif
)
)
{
mVisible = false;
return;
Expand Down Expand Up @@ -149,7 +149,7 @@ void CursorObject::Draw(Graphics *g)
Plant *aPlant = mBoard->mPlants.DataArrayGet((unsigned int)mGlovePlantID);
PottedPlant *aPottedPlant = &mApp->mPlayerInfo->mPottedPlant[aPlant->mPottedPlantIndex];
if (mBoard->mBackground == BackgroundType::BACKGROUND_MUSHROOM_GARDEN ||
mBoard->mBackground == BackgroundType::BACKGROUND_ZOMBIQUARIUM)
mBoard->mBackground == BackgroundType::BACKGROUND_ZOMBIQUARIUM)
{
mApp->mZenGarden->DrawPottedPlant(g, -10.0f, -10.0f, aPottedPlant, 1.0f, false);
}
Expand All @@ -164,7 +164,7 @@ void CursorObject::Draw(Graphics *g)
case CursorType::CURSOR_TYPE_PLANT_FROM_WHEEL_BARROW: {
PottedPlant *aPottedPlant = mApp->mZenGarden->GetPottedPlantInWheelbarrow();
if (mBoard->mBackground == BackgroundType::BACKGROUND_MUSHROOM_GARDEN ||
mBoard->mBackground == BackgroundType::BACKGROUND_ZOMBIQUARIUM)
mBoard->mBackground == BackgroundType::BACKGROUND_ZOMBIQUARIUM)
{
mApp->mZenGarden->DrawPottedPlant(g, -10.0f, -10.0f, aPottedPlant, 1.0f, false);
}
Expand Down Expand Up @@ -253,7 +253,7 @@ void CursorPreview::Update()
else if (mBoard->mCursorObject->mCursorType == CursorType::CURSOR_TYPE_WHEEELBARROW)
{
if (mApp->mZenGarden->GetPottedPlantInWheelbarrow() &&
mBoard->CanPlantAt(mGridX, mGridY, aSeedType) == PlantingReason::PLANTING_OK)
mBoard->CanPlantAt(mGridX, mGridY, aSeedType) == PlantingReason::PLANTING_OK)
{
aShow = true;
}
Expand Down Expand Up @@ -282,22 +282,22 @@ void CursorPreview::Draw(Graphics *g)

PottedPlant *aPottedPlant = nullptr;
if (mBoard->mCursorObject->mCursorType == CursorType::CURSOR_TYPE_WHEEELBARROW ||
mBoard->mCursorObject->mCursorType == CursorType::CURSOR_TYPE_PLANT_FROM_WHEEL_BARROW)
mBoard->mCursorObject->mCursorType == CursorType::CURSOR_TYPE_PLANT_FROM_WHEEL_BARROW)
{
aPottedPlant = mApp->mZenGarden->GetPottedPlantInWheelbarrow();
}
else if (mBoard->mCursorObject->mCursorType == CursorType::CURSOR_TYPE_PLANT_FROM_GLOVE)
{
aPottedPlant =
&mApp->mPlayerInfo->mPottedPlant
[mBoard->mPlants.DataArrayGet((unsigned int)mBoard->mCursorObject->mGlovePlantID)->mPottedPlantIndex];
&mApp->mPlayerInfo->mPottedPlant
[mBoard->mPlants.DataArrayGet((unsigned int)mBoard->mCursorObject->mGlovePlantID)->mPottedPlantIndex];
}

if (aPottedPlant)
{
bool aDrawPot = true;
if (mBoard->mBackground == BackgroundType::BACKGROUND_MUSHROOM_GARDEN ||
mBoard->mBackground == BackgroundType::BACKGROUND_ZOMBIQUARIUM)
mBoard->mBackground == BackgroundType::BACKGROUND_ZOMBIQUARIUM)
{
aDrawPot = false;
}
Expand All @@ -324,11 +324,11 @@ void CursorPreview::Draw(Graphics *g)
}

Plant::DrawSeedType(g,
mBoard->mCursorObject->mType,
mBoard->mCursorObject->mImitaterType,
DrawVariation::VARIATION_NORMAL,
aOffsetX,
aOffsetY);
mBoard->mCursorObject->mType,
mBoard->mCursorObject->mImitaterType,
DrawVariation::VARIATION_NORMAL,
aOffsetX,
aOffsetY);
}

if (mApp->mGameMode == GameMode::GAMEMODE_CHALLENGE_COLUMN)
Expand All @@ -339,11 +339,11 @@ void CursorPreview::Draw(Graphics *g)
{
float aOffsetY = 85.0f * (y - mGridY) + PlantDrawHeightOffset(mBoard, nullptr, aSeedType, mGridX, y);
Plant::DrawSeedType(g,
mBoard->mCursorObject->mType,
mBoard->mCursorObject->mImitaterType,
DrawVariation::VARIATION_NORMAL,
0.0f,
aOffsetY);
mBoard->mCursorObject->mType,
mBoard->mCursorObject->mImitaterType,
DrawVariation::VARIATION_NORMAL,
0.0f,
aOffsetY);
}
}
}
Expand Down
Loading
Loading