grungnet/src/settings.js
2020-09-08 15:06:15 +10:00

42 lines
824 B
JavaScript

import Settings from "./helpers/Settings";
function loadVersions(settings) {
settings.version(1, () => ({
fog: {
type: "polygon",
useEdgeSnapping: false,
useFogCut: false,
preview: false,
},
drawing: {
color: "red",
type: "brush",
useBlending: true,
},
measure: {
type: "chebyshev",
scale: "5ft",
},
timer: {
hour: 0,
minute: 0,
second: 0,
},
dice: {
shareDice: false,
style: "galaxy",
},
}));
// v1.5.2 - Added full screen support for map and label size
settings.version(2, (prev) => ({
...prev,
map: { fullScreen: false, labelSize: 1 },
}));
}
export function getSettings() {
let settings = new Settings("OwlbearRodeoSettings");
loadVersions(settings);
return settings;
}