arx-level-generator
Version:
A tool for creating Arx Fatalis maps
29 lines • 985 B
JavaScript
import path from 'node:path';
export var UiElements;
(function (UiElements) {
UiElements["MainMenuBackground"] = "main-menu-background";
})(UiElements || (UiElements = {}));
export class UI {
customElements = {
[UiElements.MainMenuBackground]: undefined,
};
set(element, filename) {
this.customElements[element] = filename;
}
reset(element) {
this.customElements[element] = undefined;
}
get(element) {
return this.customElements[element];
}
exportSourcesAndTargets(settings) {
const files = {};
if (this.customElements[UiElements.MainMenuBackground] !== undefined) {
const source = path.resolve(settings.assetsDir, this.customElements[UiElements.MainMenuBackground]);
const target = path.resolve(settings.outputDir, 'graph/interface/menus/menu_main_background.jpg');
files[target] = source;
}
return files;
}
}
//# sourceMappingURL=UI.js.map