diff --git a/README.md b/README.md index 1a52710..a429b85 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,13 @@ # OpenRCT2 Peep Remover -A plugin for OpenRCT2 that allows you to easily remove guests from your park. +A plugin for OpenRCT2 that allows you to easily remove peeps from your park. ![(OpenRCT2 Peep Remover)](https://raw.githubusercontent.com/Harry-Hopkinson/openrct2-guest-remover/main/image.png) ## Features -- Click on the eyedropper and click as many guests as you want to remove. -- Click on the trash can to remove all guests from the park. +- Click on the eyedropper and click as many Peeps as you want to remove. +- Click on the trash can to remove all peeps from the park. - Cancel the current action by clicking on the cancel button. ## Installation diff --git a/package.json b/package.json index 75b6a90..3b849cc 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,9 @@ { - "name": "openrct2-guest-remover", + "name": "openrct2-peep-remover", "version": "1.0.2", "type": "module", "license": "MIT", - "description": "A plugin for OpenRCT2 that allows you to easily remove many guests at once.", + "description": "A plugin for OpenRCT2 that allows you to easily remove many peeps at once.", "scripts": { "start": "nodemon --watch ./src --ext js,ts --exec \"npm run build:dev\"", "build": "rollup --config rollup.config.js --environment BUILD:production", diff --git a/src/info.js b/src/info.js index 46b7608..bfec098 100644 --- a/src/info.js +++ b/src/info.js @@ -1,4 +1,4 @@ -export const name = "openrct2-guest-remover"; +export const name = "openrct2-peep-remover"; export const version = "1.0.2s"; export const type = "intransient"; export const license = "MIT"; diff --git a/src/ui/MainWindow.ts b/src/ui/MainWindow.ts index fa54a6b..1ce8b15 100644 --- a/src/ui/MainWindow.ts +++ b/src/ui/MainWindow.ts @@ -1,7 +1,7 @@ import { button, label, window } from "openrct2-flexui"; import { PeepSelect } from "./PeepSelect"; import { RemovePeep } from "../utils/RemovePeeps"; -import { GuestIds } from "../utils/stores"; +import { PeepIds } from "../utils/stores"; import { PeepMessage } from "../utils/PeepMessage"; export const MainWindow = window({ @@ -37,7 +37,7 @@ export const MainWindow = window({ button({ text: "Cancel Selection", height: 23, - onClick: () => GuestIds.set([]), + onClick: () => PeepIds.set([]), }), ], }); diff --git a/src/ui/PeepSelect.ts b/src/ui/PeepSelect.ts index a4ea011..5b80578 100644 --- a/src/ui/PeepSelect.ts +++ b/src/ui/PeepSelect.ts @@ -1,4 +1,4 @@ -import { GuestIds } from "../utils/stores"; +import { PeepIds } from "../utils/stores"; export function PeepSelect() { ui.activateTool({ @@ -18,7 +18,7 @@ export function PeepSelect() { ui.showError("You must select a guest", "or staff member"); return; } - GuestIds.set([...GuestIds.get(), EntityId]); + PeepIds.set([...PeepIds.get(), EntityId]); ui.tool?.cancel(); } }, diff --git a/src/utils/PeepMessage.ts b/src/utils/PeepMessage.ts index 4970158..69033e3 100644 --- a/src/utils/PeepMessage.ts +++ b/src/utils/PeepMessage.ts @@ -1,7 +1,7 @@ -import { GuestIds } from "./stores"; +import { PeepIds } from "./stores"; export function PeepMessage() { - const selectedPeepIds = GuestIds.get(); + const selectedPeepIds = PeepIds.get(); if (selectedPeepIds.length === 0) { return park.postMessage("No peeps selected"); } diff --git a/src/utils/RemovePeeps.ts b/src/utils/RemovePeeps.ts index bf626b9..3d32050 100644 --- a/src/utils/RemovePeeps.ts +++ b/src/utils/RemovePeeps.ts @@ -1,7 +1,7 @@ -import { GuestIds } from "./stores"; +import { PeepIds } from "./stores"; export function RemovePeep(): void { - const SelectedPeepIds = GuestIds.get(); + const SelectedPeepIds = PeepIds.get(); SelectedPeepIds.forEach((id) => { const entity = map.getEntity(id); @@ -10,5 +10,5 @@ export function RemovePeep(): void { } }); - GuestIds.set([]); + PeepIds.set([]); } diff --git a/src/utils/stores.ts b/src/utils/stores.ts index 1211dd7..37fc155 100644 --- a/src/utils/stores.ts +++ b/src/utils/stores.ts @@ -1,5 +1,5 @@ import { store, WritableStore } from "openrct2-flexui"; -let GuestIds: WritableStore = store([]); +let PeepIds: WritableStore = store([]); -export { GuestIds }; +export { PeepIds };