Skip to content
Merged
Changes from all commits
Commits
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
43 changes: 23 additions & 20 deletions src/functions/commonPatches.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,30 @@
const WCE_DEVS = [129178];

export default function commonPatches(): void {
// DrawBackNextButton patch to allow overriding hover text position
patchFunction(
"DrawBackNextButton",
{
"Disabled=false, ArrowWidth=null": "Disabled=false, ArrowWidth=null, tooltipPosition=null",
"DrawButtonHover(Left, Top, Width, Height,":
"DrawButtonHover(tooltipPosition?.X || Left, tooltipPosition?.Y || Top, tooltipPosition?.Width || Width, tooltipPosition?.Height || Height,",
},
"DrawBackNextButton tooltip positions may be incorrect."
);
// ToDo: remove once R128 is out

Check warning on line 10 in src/functions/commonPatches.ts

View workflow job for this annotation

GitHub Actions / lint

eslint(no-warning-comments)

Unexpected 'todo' comment: ToDo: remove once R128 is out
if (GameVersion === "R127") {
// DrawBackNextButton patch to allow overriding hover text position
patchFunction(
"DrawBackNextButton",
{
"Disabled=false, ArrowWidth=null": "Disabled=false, ArrowWidth=null, tooltipPosition=null",
"DrawButtonHover(Left, Top, Width, Height,":
"DrawButtonHover(tooltipPosition?.X || Left, tooltipPosition?.Y || Top, tooltipPosition?.Width || Width, tooltipPosition?.Height || Height,",
},
"DrawBackNextButton tooltip positions may be incorrect."
);

// DrawButton patch to allow overriding hover text position
patchFunction(
"DrawButton",
{
"HoveringText=null, Disabled=false": "HoveringText=null, Disabled=false, tooltipPosition=null",
"DrawButtonHover(Left, Top, Width, Height,":
"DrawButtonHover(tooltipPosition?.X || Left, tooltipPosition?.Y || Top, tooltipPosition?.Width || Width, tooltipPosition?.Height || Height,",
},
"DrawButton tooltip positions may be incorrect."
);
// DrawButton patch to allow overriding hover text position
patchFunction(
"DrawButton",
{
"HoveringText=null, Disabled=false": "HoveringText=null, Disabled=false, tooltipPosition=null",
"DrawButtonHover(Left, Top, Width, Height,":
"DrawButtonHover(tooltipPosition?.X || Left, tooltipPosition?.Y || Top, tooltipPosition?.Width || Width, tooltipPosition?.Height || Height,",
},
"DrawButton tooltip positions may be incorrect."
);
}

patchFunction(
"PreferenceSubscreenArousalRun",
Expand Down
Loading