Skip to content

Commit

Permalink
Fix selectedCustomColours subscription
Browse files Browse the repository at this point in the history
  • Loading branch information
ltsSmitty committed Aug 4, 2022
1 parent dadd76c commit 5d4ba2f
Show file tree
Hide file tree
Showing 10 changed files with 5,001 additions and 834 deletions.
4,230 changes: 4,227 additions & 3 deletions package-lock.json

Large diffs are not rendered by default.

83 changes: 41 additions & 42 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,60 +1,59 @@
import replace from "@rollup/plugin-replace";
import typescript from "@rollup/plugin-typescript";
import { terser } from "rollup-plugin-terser";
import resolve from '@rollup/plugin-node-resolve';
import resolve from "@rollup/plugin-node-resolve";
import pkg from "./package.json";


// Environment variables
const build = process.env.BUILD || "development";
const isDev = (build === "development");

const output = (isDev)
? `/Users/andrewpenman/Library/Application Support/OpenRCT2/plugin/RidePainter.js`
: "./dist/RidePainter.js";
const isDev = build === "development";

const output = isDev
? `/Users/spenman/Library/Application Support/OpenRCT2/plugin/RidePainter.js`
: "./dist/RidePainter.js";

/**
* @type {import("rollup").RollupOptions}
*/
const config = {
input: "./src/registerPlugin.ts",
output: {
file: output,
format: "iife",
},
plugins: [
replace({
include: "./src/helpers/environment.ts",
preventAssignment: true,
values: {
__PLUGIN_VERSION__: pkg.version,
__BUILD_CONFIGURATION__: build
}
}),
typescript(),
terser({
compress: {
passes: 5
},
format: {
comments: false,
quote_style: 1,
wrap_iife: true,
input: "./src/registerPlugin.ts",
output: {
file: output,
format: "iife",
},
plugins: [
replace({
include: "./src/helpers/environment.ts",
preventAssignment: true,
values: {
__PLUGIN_VERSION__: pkg.version,
__BUILD_CONFIGURATION__: build,
},
}),
typescript(),
terser({
compress: {
passes: 5,
},
format: {
comments: false,
quote_style: 1,
wrap_iife: true,
// TODO change url to final.
preamble: "// Get the latest version: https://github.com/thesm17/OpenRCT-Ride-Painter",
beautify: isDev,
},
mangle: {
properties: {
regex: /^_/
}
},
preamble:
"// Get the latest version: https://github.com/thesm17/OpenRCT-Ride-Painter",
beautify: isDev,
},
mangle: {
properties: {
regex: /^_/,
},
},

// Useful only for stacktraces:
keep_fnames: isDev,
}),
// Useful only for stacktraces:
keep_fnames: isDev,
}),
resolve(),
],
],
};
export default config;
17 changes: 17 additions & 0 deletions src/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Changes in v 0.1.2

Completed:
Features
_ Add a column to show the first 15 selected rides.
_ Add button to scroll main viewport to selected ride
_ Add repaint button to selected ride
_ Prebuilt tracks are now painted on placement.

Under the hood: \* Refactor code to use ArrayStores

Fixes: \* Rides that start in the park aren't repainted accidentally

In progress
Feat: add undo button for most recent 3-5 paints
Feat: Theme creation & management. Ability for any user to create/delete/share/import their own custom themes.
Feat: Paginate through selected rides in right column
Loading

0 comments on commit 5d4ba2f

Please sign in to comment.