Skip to content

Commit

Permalink
add: new sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderFoo committed Dec 11, 2024
1 parent 318c4ba commit 79422ab
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function create_window() {
const is_dark_mode = store.get("dark_mode", nativeTheme.shouldUseDarkColors);
nativeTheme.themeSource = is_dark_mode ? "dark" : "light";

//main_window.webContents.openDevTools();
main_window.webContents.openDevTools();
}

// Set the app name
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "sprite-packer",
"productName": "Sprite Packer",
"version": "1.2.0",
"version": "1.2.1",
"main": "main.js",
"scripts": {
"start": "electron .",
Expand Down
8 changes: 5 additions & 3 deletions renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,23 @@ let canvas_offset_x = 0;
let canvas_offset_y = 0;

const atlas_sizes = [
{ width: 16, height: 16 },
{ width: 32, height: 32 },
{ width: 64, height: 64 },
{ width: 128, height: 64 },
{ width: 128, height: 128 },
{ width: 256, height: 128 },
{ width: 256, height: 256 },
{ width: 512, height: 512 },
{ width: 512, height: 256 },
{ width: 512, height: 512 },
{ width: 1024, height: 512 },
{ width: 1024, height: 1024 },
{ width: 2048, height: 1024 },
{ width: 2048, height: 2048 },
{ width: 4096, height: 2048 },
{ width: 4096, height: 4096 },
{ width: 8192, height: 8192 },
{ width: 8192, height: 4096 }
{ width: 8192, height: 4096 },
{ width: 8192, height: 8192 }
];

atlas_size_select.innerHTML = ""; // Clear existing options
Expand Down

0 comments on commit 79422ab

Please sign in to comment.