Skip to content

Commit

Permalink
Merge branch 'dev-0.9.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
deepnight committed Apr 20, 2021
2 parents 4140b62 + f44e22b commit d3c800f
Show file tree
Hide file tree
Showing 32 changed files with 25,035 additions and 69 deletions.
2 changes: 1 addition & 1 deletion app/assets/css/app.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion app/assets/css/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6030,7 +6030,7 @@ $patternSize : 32px;

.content {
width: 890px;
grid-template-rows: min-content min-content auto;
grid-template-rows: min-content min-content min-content auto;
.mainList {
grid-row: 3/5;
}
Expand Down
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ldtk",
"version": "0.9.1",
"version": "0.9.2",
"main": "assets/main.js",
"productName": "LDtk",
"author": "Sebastien Benard",
Expand Down
4 changes: 2 additions & 2 deletions app/samples/AutoLayers_1_basic.ldtk
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "0.9.1",
"appVersion": "0.9.2",
"url": "https://ldtk.io"
},
"jsonVersion": "0.9.1",
"jsonVersion": "0.9.2",
"nextUid": 108,
"worldLayout": "Free",
"worldGridWidth": 128,
Expand Down
4 changes: 2 additions & 2 deletions app/samples/AutoLayers_2_stamps.ldtk
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "0.9.1",
"appVersion": "0.9.2",
"url": "https://ldtk.io"
},
"jsonVersion": "0.9.1",
"jsonVersion": "0.9.2",
"nextUid": 39,
"worldLayout": "Free",
"worldGridWidth": 256,
Expand Down
4 changes: 2 additions & 2 deletions app/samples/AutoLayers_3_Mosaic.ldtk
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "0.9.1",
"appVersion": "0.9.2",
"url": "https://ldtk.io"
},
"jsonVersion": "0.9.1",
"jsonVersion": "0.9.2",
"nextUid": 53,
"worldLayout": "Free",
"worldGridWidth": 256,
Expand Down
4 changes: 2 additions & 2 deletions app/samples/AutoLayers_4_Advanced.ldtk
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "0.9.1",
"appVersion": "0.9.2",
"url": "https://ldtk.io"
},
"jsonVersion": "0.9.1",
"jsonVersion": "0.9.2",
"nextUid": 98,
"worldLayout": "Free",
"worldGridWidth": 256,
Expand Down
4 changes: 2 additions & 2 deletions app/samples/AutoLayers_5_OptionalRules.ldtk
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "0.9.1",
"appVersion": "0.9.2",
"url": "https://ldtk.io"
},
"jsonVersion": "0.9.1",
"jsonVersion": "0.9.2",
"nextUid": 148,
"worldLayout": "GridVania",
"worldGridWidth": 256,
Expand Down
4 changes: 2 additions & 2 deletions app/samples/Entities.ldtk
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "0.9.1",
"appVersion": "0.9.2",
"url": "https://ldtk.io"
},
"jsonVersion": "0.9.1",
"jsonVersion": "0.9.2",
"nextUid": 91,
"worldLayout": "Free",
"worldGridWidth": 256,
Expand Down
4 changes: 2 additions & 2 deletions app/samples/SeparateLevelFiles.ldtk
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "0.9.1",
"appVersion": "0.9.2",
"url": "https://ldtk.io"
},
"jsonVersion": "0.9.1",
"jsonVersion": "0.9.2",
"nextUid": 10,
"worldLayout": "LinearHorizontal",
"worldGridWidth": 240,
Expand Down
2 changes: 1 addition & 1 deletion app/samples/SeparateLevelFiles/0000-Level_0.ldtkl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "0.9.1",
"appVersion": "0.9.2",
"url": "https://ldtk.io"
},
"identifier": "Level_0",
Expand Down
2 changes: 1 addition & 1 deletion app/samples/SeparateLevelFiles/0001-Level_1.ldtkl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "0.9.1",
"appVersion": "0.9.2",
"url": "https://ldtk.io"
},
"identifier": "Level_1",
Expand Down
2 changes: 1 addition & 1 deletion app/samples/SeparateLevelFiles/0002-Level_2.ldtkl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "0.9.1",
"appVersion": "0.9.2",
"url": "https://ldtk.io"
},
"identifier": "Level_2",
Expand Down
4 changes: 2 additions & 2 deletions app/samples/Test_file_for_API_showing_all_features.ldtk
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "0.9.1",
"appVersion": "0.9.2",
"url": "https://ldtk.io"
},
"jsonVersion": "0.9.1",
"jsonVersion": "0.9.2",
"nextUid": 45,
"worldLayout": "LinearVertical",
"worldGridWidth": 256,
Expand Down
4 changes: 2 additions & 2 deletions app/samples/Typical_2D_platformer_example.ldtk
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "0.9.1",
"appVersion": "0.9.2",
"url": "https://ldtk.io"
},
"jsonVersion": "0.9.1",
"jsonVersion": "0.9.2",
"nextUid": 94,
"worldLayout": "Free",
"worldGridWidth": 256,
Expand Down
4 changes: 2 additions & 2 deletions app/samples/Typical_TopDown_example.ldtk
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "0.9.1",
"appVersion": "0.9.2",
"url": "https://ldtk.io"
},
"jsonVersion": "0.9.1",
"jsonVersion": "0.9.2",
"nextUid": 86,
"worldLayout": "Free",
"worldGridWidth": 256,
Expand Down
4 changes: 2 additions & 2 deletions app/samples/WorldMap_Free_layout.ldtk
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "0.9.1",
"appVersion": "0.9.2",
"url": "https://ldtk.io"
},
"jsonVersion": "0.9.1",
"jsonVersion": "0.9.2",
"nextUid": 48,
"worldLayout": "Free",
"worldGridWidth": 256,
Expand Down
4 changes: 2 additions & 2 deletions app/samples/WorldMap_GridVania_layout.ldtk
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "0.9.1",
"appVersion": "0.9.2",
"url": "https://ldtk.io"
},
"jsonVersion": "0.9.1",
"jsonVersion": "0.9.2",
"nextUid": 103,
"worldLayout": "GridVania",
"worldGridWidth": 256,
Expand Down
19 changes: 14 additions & 5 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
# 0.9.2

- Added a tiny "(...)" above entities with fields when they are hidden
- Fixed "re-open last project" that could sometime reset app settings
- Fixed rule editor not updating when changing pivot
- Fixed incorrect "Perlin noise" preview when right click on the Perlin option in Rules panel.
- Fixed "shrinking" tileset view when panning it
- Fixed discarded "levelPaths" array when importing OGMO projects

# 0.9.1

- **Fixed broken "New project" button. Sorry!**
- Added an option to **re-open last project** when starting LDtk (open Settings with `F12`)
- Hold `CTRL` to disable preview when moving mouse over auto-layer rules.
- Fixed missing tooltips in rules panel.
- Fixed tooltips staying on screen in rules panel.
- **Fixed broken "New project" button. Sorry!**
- Added an option to **re-open last project** when starting LDtk (open Settings with `F12`)
- Hold `CTRL` to disable preview when moving mouse over auto-layer rules.
- Fixed missing tooltips in rules panel.
- Fixed tooltips staying on screen in rules panel.


# 0.9.0 - Biomes and tags
Expand Down
2 changes: 1 addition & 1 deletion docs/JSON_DOC.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# LDtk Json structure (version 0.9.1)
# LDtk Json structure (version 0.9.2)

## Table of contents
- [LDtk Json root](#ldtk-ProjectJson)
Expand Down
4 changes: 2 additions & 2 deletions docs/JSON_SCHEMA.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"description": "This file is a JSON schema of files created by LDtk level editor (https://ldtk.io).",
"title": "LDtk 0.9.1 JSON schema",
"title": "LDtk 0.9.2 JSON schema",
"$schema": "https://json-schema.org/draft-07/schema#",
"$ref": "#/LdtkJsonRoot",
"version": "0.9.1",
"version": "0.9.2",
"LdtkJsonRoot": {
"description": "This is the root of any Project JSON file. It contains: - the project settings, - an array of levels, - and a definition object (that can probably be safely ignored for most users).",
"title": "LDtk Json root",
Expand Down
3 changes: 3 additions & 0 deletions docs/deployInstructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@
- [ ] Publish GitHub release
- [ ] *[Optional]* Update Itch.io page

## Community APIs
- [ ] Update API list ([issue](https://github.com/deepnight/ldtk/issues/273))

## Communication
- [ ] Add a devlog post on Itch.io
- [ ] Announce on Twitter
Expand Down
31 changes: 20 additions & 11 deletions src/electron.renderer/App.hx
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ class App extends dn.Process {
var mouseButtonDowns : Map<Int,Bool> = new Map();
public var focused(default,null) = true;

public var loadingLog : dn.Log;

public function new() {
super();

Expand All @@ -41,13 +39,11 @@ class App extends dn.Process {
LOG.add("BOOT","Resources: "+ET.getAppResourceDir());
LOG.add("BOOT","SamplesPath: "+JsTools.getSamplesDir());
LOG.add("BOOT","Display: "+ET.getScreenWidth()+"x"+ET.getScreenHeight());

loadingLog = new dn.Log();
loadingLog.onAdd = (l)->LOG.addLogEntry(l);

// App arguments
args = ET.getArgs();
LOG.add("BOOT", args.toString());
LOG.flushToFile();
LOG.flushOnAdd = true; // disabled after App init sequence

// Init
ME = this;
Expand Down Expand Up @@ -115,16 +111,25 @@ class App extends dn.Process {
LOG.add("BOOT", 'Start args: path=$path levelIndex=$levelIndex');

// Load page
if( path!=null )
if( path!=null ) {
LOG.add("BOOT", 'Loading project from args (${path.full})...');
loadProject(path.full, levelIndex);
else if( settings.v.openLastProject && settings.v.lastProject!=null && NT.fileExists(settings.v.lastProject.filePath) )
loadProject(settings.v.lastProject.filePath);
else
}
else if( settings.v.openLastProject && settings.v.lastProject!=null && NT.fileExists(settings.v.lastProject.filePath) ) {
var path = settings.v.lastProject.filePath;
LOG.add("BOOT", 'Re-opening last project ($path)...');
loadProject(path);
}
else {
LOG.add("BOOT", 'Loading Home...');
loadPage( ()->new page.Home() );
}
}, 0.2);

LOG.add("BOOT", "Calling appReady...");
IpcRenderer.invoke("appReady");
updateBodyClasses();
LOG.flushOnAdd = false;
}


Expand Down Expand Up @@ -333,14 +338,18 @@ class App extends dn.Process {
}

public function addMask() {
jBody.find("#appMask").remove();
removeMask();
jBody.append('<div id="appMask"/>');
}

public function fadeOutMask() {
jBody.find("#appMask").fadeOut(200);
}

public function removeMask() {
jBody.find("#appMask").remove();
}

public function miniNotif(html:String, fadeDelayS=0.5, persist=false) {
var e = jBody.find("#miniNotif");
delayer.cancelById("miniNotifFadeOut");
Expand Down
Loading

0 comments on commit d3c800f

Please sign in to comment.