Skip to content

Commit

Permalink
Merge commit 'fbf5b2c45803f27e70666d131be4d46a01404d20'
Browse files Browse the repository at this point in the history
  • Loading branch information
CosmoMyzrailGorynych committed Feb 25, 2024
2 parents 1650867 + fbf5b2c commit 438f182
Show file tree
Hide file tree
Showing 46 changed files with 975 additions and 322 deletions.
44 changes: 44 additions & 0 deletions app/Changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,47 @@
## v4.0.2
*Sun Feb 25 2024*

### ✨ New Features

* Add a menu item to duplicate emitter tandems. Closes #498
* Export and import emitter tandems from files
* Now you can change the background color in the style editor

### ⚡️ General Improvements

* :globe_with_meridians: Update Chinese Simplified translations (#500 by @emaoshushu)
* Behaviors will now have an additional icon in the asset viewer showing the asset type it was created for
* Do update checks at max once in an hour if it was successfully requested before
* Emitter editors will now show a (?) image instead of a blank broken image if no texture was set
* (Internal) Move properties assignment for AnimatedSprite from the Copy mixin into the pixi.js-based class.
* Now line height in style editors will scale with the font size when you change the latter
* (Internal) Refactor copy creation off base classes, move CopyAnimatedSprite, CopyText, CopyContainer prototypes into separate pixi.js-based classes.
* Remember whether the grid was disabled in a specific room
* Transparent background in style editor. Make the preview occupy the available space in the editor.

### 🐛 Bug Fixes

* Fix broken QWERTY and Shift+S hotkeys in room editors
* Fix buttons skipping their pointer events after being disabled and enabled back
* Fix discardio not removing old keys from asset object before assigning new ones, which led, for example, to not being able to disable stroke/fill/shadow settings of style assets
* Fix double caching of tile layers that breaks `rooms.merge` call. Closes #501
* Fix `fs` catmod failing when run in node.js context and trying to work with relative paths
* Fix hotkeys being ignored if non-english keyboard layout was in use
* Fix nine slice panes' tint being reset on click and not saved in the room-editor
* Fix not being able to deselect items after sorting *and* moving them
* Fix not being able to set tint with `this.tint` or the room editor to buttons.
* Fix scripts sometimes having blank screen when switching back and forth tabs
* Remove deleted behaviors from opened template editors, and deleted behaviors and templates links from rooms' properties panel
* Sound assets should prompt for a name when created

### 📝 Docs

* :bug: Fix movement by a grid (#132 by @0xFFAAF)

### 🌐 Website

* :zap: Update wording on essentials on the homepage

## v4.0.1

*Sun Feb 18 2024*
Expand Down
7 changes: 4 additions & 3 deletions app/data/ct.libs/fs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,18 +247,19 @@ try {

const getPath = dest => {
dest = normalize(dest);
const absoluteDest = path.isAbsolute(dest) ? dest : path.join(fs.gameFolder, dest);
const absoluteDest = normalize(path.isAbsolute(dest) ?
dest :
path.join(fs.gameFolder, dest));
if (fs.forceLocal) {
if (absoluteDest.indexOf(fs.gameFolder) !== 0) {
throw new Error('[fs] Operations outside the save directory are not permitted by default due to safety concerns. If you do need to work outside the save directory, change `fs.forceLocal` to `false`. ' +
`The save directory: "${fs.gameFolder}", the target directory: "${dest}", which resolves into "${absoluteDest}".`);
`The save directory: "${fs.gameFolder}", the target item: "${dest}", which resolves into "${absoluteDest}".`);
}
}
return absoluteDest;
};
const ensureParents = async dest => {
const parents = path.dirname(getPath(dest));
console.log(parents);
await fsNative.mkdir(getPath(parents), {
recursive: true
});
Expand Down
2 changes: 1 addition & 1 deletion app/data/i18n/Brazilian Portuguese.json
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@
"assetGallery": "Galeria de ativos integrada",
"behaviorTemplate": "Compartamento para templates",
"behaviorRoom": "Comportamento para salas",
"behaviorImport": "Importar do arquivo",
"importFromFile": "Importar do arquivo",
"behaviorMissingCatmods": "Seu projeto está faltando estes catmods: $1. Habilite-os primeiro.",
"formatError": "O arquivo aberto está com formato malformado ou, talvez, tenha sido feito para uma versão incompatível do ct.js."
},
Expand Down
Loading

0 comments on commit 438f182

Please sign in to comment.