Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

SwitchLayoutEditor: Difference between revisions

From GameBrew
(Created page with "{{Infobox Switch Homebrews |title=Switch Layout Editor |image=switchlayouteditorswitch.png |description=A layout editor for the Nintendo Switch |author=FuryBaguette |lastupdated=2021/08/20 |type=PC Utilities |version=beta14 |license=GPL-3.0 |download=https://dlhb.gamebrew.org/switchhomebrews/switchlayouteditorswitch.7z |website=https://gbatemp.net/threads/switch-layout-editor-create-edit-themes-and-games.529199/ |source=https://github.com/FuryBaguette/SwitchLayoutEditor...")
 
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Infobox Switch Homebrews
{{Infobox Switch Homebrews
|title=Switch Layout Editor
|title=Switch Layout Editor
|image=switchlayouteditorswitch.png
|image=switchlayouteditor.png
|description=A layout editor for the Nintendo Switch
|description=A layout editor for the Nintendo Switch.
|author=FuryBaguette
|author=FuryBaguette
|lastupdated=2021/08/20
|lastupdated=2023/05/16
|type=PC Utilities
|type=Theme Tools
|version=beta14
|version=beta15
|license=GPL-3.0
|license=GPL-3.0
|download=https://dlhb.gamebrew.org/switchhomebrews/switchlayouteditorswitch.7z
|download=https://dlhb.gamebrew.org/switchhomebrews/switchlayouteditor.7z
|website=https://gbatemp.net/threads/switch-layout-editor-create-edit-themes-and-games.529199/
|website=https://gbatemp.net/threads/switch-layout-editor-create-edit-themes-and-games.529199/
|source=https://github.com/FuryBaguette/SwitchLayoutEditor
|source=https://github.com/FuryBaguette/SwitchLayoutEditor
|donation=
|donation=
}}
}}
{{#seo:
SwitchLayoutEditor is a program that allows you to edit and render BFLYT and BFLAN files, which are commonly used for layouts in Nintendo Switch interfaces and games. This tool enables you to create and edit themes easily.
|title=Switch Homebrew PC Tools (PC Utilities) - GameBrew
 
|title_mode=append
With SwitchLayoutEditor, you can rearrange the structure of the home screen and make other modifications to the layout of the Switch interface. The edited files can be saved in SZS format, but to make them shareable, you can export them as JSON patches or convert them to nxtheme format.
|image=switchlayouteditorswitch.png
 
|image_alt=Switch Layout Editor
==Features==
}}
* Layout loading, editing and saving.
{{cleanup|article|Needs cleanup}}
* Rendering the bounding boxes of the components.
A layout editor for the Nintendo Switch
* SZS editing.
* Drag and drop.
* Simultaneous file editing.
* Import/Export JSON patch (Compatible with Switch themes).
* Animations editing.
 
==User guide==
You'll need some programs and files to make editing possible:
*Switch Layout Editor to edit layouts
*Any bflyt or szs file. You can dump szs files yourself here
 
After getting all the files needed, just launch the exe and open a SZS/BFLYT/BFLAN file. BFLYT/BFLAN files are commonly found in SZS archives, when opening a SZS file you can double click on the files in the list to edit them (if they're supported).
 
To save changes made in SwitchLayoutEditor, you can use the "Layout Diff" option in the "Tools" menu. This will generate a JSON patch that can be used to create an nxtheme file in the Switch Theme Injector.
 
The compatibility of these themes depends on the firmware version of the Switch. Different firmware versions use different SZS files, but by exporting as JSON patch, you can create a theme that works with multiple versions.
 
For a basic introduction on how to use SwitchLayoutEditor, you can refer to this tutorial: [https://layoutdocs.themezer.net/extras/tools/ Switch Layout Editor Introduction].
 
For a more in depth guide, [https://github.com/FuryBaguette/SwitchLayoutEditor/wiki click here] to go to the wiki.


==Media==
==Media==
<youtube></youtube>
'''how to make your own nx theme and layout (switch) ([https://www.youtube.com/watch?v=P0O3W8UsQO0 THE DERP 655129])'''<br>
 
<youtube>P0O3W8UsQO0</youtube>


==Screenshots==
==Screenshots==
https://dlhb.gamebrew.org/switchhomebrews/switchlayouteditorswitch-01.png
{| style="width: 80%; margin-left:0em;"
https://dlhb.gamebrew.org/switchhomebrews/switchlayouteditorswitch-02.png
|
https://dlhb.gamebrew.org/switchhomebrews/switchlayouteditorswitch-03.png
https://dlhb.gamebrew.org/switchhomebrews/switchlayouteditor2.png
https://dlhb.gamebrew.org/switchhomebrews/switchlayouteditorswitch-04.png
https://dlhb.gamebrew.org/switchhomebrews/switchlayouteditor3.png
https://dlhb.gamebrew.org/switchhomebrews/switchlayouteditorswitch-05.png
|}
https://dlhb.gamebrew.org/switchhomebrews/switchlayouteditorswitch-06.png
https://dlhb.gamebrew.org/switchhomebrews/switchlayouteditorswitch-07.png
https://dlhb.gamebrew.org/switchhomebrews/switchlayouteditorswitch-08.png


==Changelog==
==Changelog==
'''v.1.0'''
'''beta15'''
* First Release.
* Experimental bflan templats support, this allows to write json templates which can be used to automate the ceration of elements in animation (bflan) files.
** Each template has a json 'manifest' that defines properties and name and an actual implementation file, the implementation file is set in the 'FileName' field of this manifest, the implementation is a json but the values are replaced at runtime with the 'macros' defined in <code>Parameters</code> in the manifest, the actual values are picked from a GUI at runtime.
** The various options are not currently documented anywhere refer to the [https://github.com/FuryBaguette/SwitchLayoutEditor/blob/master/BflytPreview/Automation/BflanTemplates.cs BflanTemplates.cs] file in the source code.
** A simple "Animate color" template is provided, it's composed of a <code>.template</code> file and a <code>.json</code> descriptor.
* Builds are now generated with Github actions.
'''beta14'''
*Fix layout diffing for 11.0+ szs files.
'''beta13'''
* Properly export layout patches: position and size values now should be in the correct format
* Fix a crash reported by users.
'''v1.0.0-beta12'''
* 11.0 Support when creating json layouts. [https://github.com/exelix11/SwitchThemeInjector/wiki/Breaking-changes-with-firmware-11.0 More info].
* Support for texture reference properties in nxtheme (X, Y, Rotation, ScaleX, ScaleY).
'''v1.0.0-beta11'''
*Fix crashes reported by users.
'''v1.0.0-beta10'''
* Better hotkey support:
** CTRL + S now should work as expected.
** CTRL + L expands all tree view items in bflan and bflyt editing.
** CTRL + K collapses all tree view items in bflan and bflyt editing.
* Fix crashes in the color picker.
* Support for "UserData" AnimationTarget in bflan.
* Font color is now supported by the differ for json layouts (so can be used in nxthemes).
'''v1.0.0-beta9'''
* Fix layout diffing.
* Restore missing groups list in the bflyt editor.
* Show the full hierarchy of bflyt files.
'''v1.0.0-beta8'''
* Moved to the same lib as the theme injector, layout diffs and patches should be 100% compatible now.
* Fixed a crash for animations with multiple groups.
* Fixed a few issues when changing the order of panes.
* Even if changing the order is supported in layout patches it won't be detected by the differ and has to be manually added as described [https://github.com/exelix11/SwitchThemeInjector/blob/master/CustomLayouts.md#supported-properties here].
'''v1.0.0-beta7'''
* Fix UV editing for pic1 panes.
* Changing pane order.
* More properties supported for materials editing.
'''v1.0.0-beta6'''
* Adding and removing texture references in a bflyt file.
* Editing materials (partial).
* Fix crashes or corrupted files for big endian bflyts (for Wii u titles).
'''v1.0.0-beta5'''
* Animations editor (.bflan files).
* Group (grp panes) editing for bflyt files.
* Fix for a some crashes and some minor improvements.
'''v1.0.0-beta4'''
* You can now update the SwitchLayoutEditor directly from within the tool. No need to check Github anymore, just click on the Update button.
* Support for usd1 panes + custom usd1 panes.
* Search box in the SZS editor.
'''v1.0.0-beta3'''
* Hotfix for a bug causing a black screen.
* Added Layout Diff to generate a custom theme JSON patch.
* Implemented txt1 and pic1 panes.
* Added Settings (Colors and Background Image).
* Added Keyboard shortcuts (Save, expand treeview ect.).
* Possibility to import a JSON custom theme.
* You can now Add/Remove/Clone panes.
'''v1.0.0-beta2'''
* Hotfix for a rendering bug.
* SZS File loading + file extract/replace.
* Multiple file editing at the same time.
* Dragging view + objects (panes).
'''v1.0.0-beta'''
* BLFYT file preview with a simple rendering.
* Pane settings editing.
* Modifications saving.
 
==Credits==
* FuryBaguette - Development.
* exelix - Base of the editor & Continuous development.
* Aboud - Sarc Tool.
* Syroot - Binary Data.


== External links ==
== External links ==
* Gbatemp - https://gbatemp.net/threads/switch-layout-editor-create-edit-themes-and-games.529199/
* GitHub - https://github.com/FuryBaguette/SwitchLayoutEditor
* Github - https://github.com/FuryBaguette/SwitchLayoutEditor
* GBAtemp - https://gbatemp.net/threads/switch-layout-editor-create-edit-themes-and-games.529199/
* Reddit -

Latest revision as of 11:23, 20 Haziran 2023

Switch Layout Editor
Switchlayouteditor.png
General
AuthorFuryBaguette
TypeTheme Tools
Versionbeta15
LicenseGPL-3.0
Last Updated2023/05/16
Links
Download
Website
Source

SwitchLayoutEditor is a program that allows you to edit and render BFLYT and BFLAN files, which are commonly used for layouts in Nintendo Switch interfaces and games. This tool enables you to create and edit themes easily.

With SwitchLayoutEditor, you can rearrange the structure of the home screen and make other modifications to the layout of the Switch interface. The edited files can be saved in SZS format, but to make them shareable, you can export them as JSON patches or convert them to nxtheme format.

Features

  • Layout loading, editing and saving.
  • Rendering the bounding boxes of the components.
  • SZS editing.
  • Drag and drop.
  • Simultaneous file editing.
  • Import/Export JSON patch (Compatible with Switch themes).
  • Animations editing.

User guide

You'll need some programs and files to make editing possible:

  • Switch Layout Editor to edit layouts
  • Any bflyt or szs file. You can dump szs files yourself here

After getting all the files needed, just launch the exe and open a SZS/BFLYT/BFLAN file. BFLYT/BFLAN files are commonly found in SZS archives, when opening a SZS file you can double click on the files in the list to edit them (if they're supported).

To save changes made in SwitchLayoutEditor, you can use the "Layout Diff" option in the "Tools" menu. This will generate a JSON patch that can be used to create an nxtheme file in the Switch Theme Injector.

The compatibility of these themes depends on the firmware version of the Switch. Different firmware versions use different SZS files, but by exporting as JSON patch, you can create a theme that works with multiple versions.

For a basic introduction on how to use SwitchLayoutEditor, you can refer to this tutorial: Switch Layout Editor Introduction.

For a more in depth guide, click here to go to the wiki.

Media

how to make your own nx theme and layout (switch) (THE DERP 655129)

Screenshots

switchlayouteditor2.png switchlayouteditor3.png

Changelog

beta15

  • Experimental bflan templats support, this allows to write json templates which can be used to automate the ceration of elements in animation (bflan) files.
    • Each template has a json 'manifest' that defines properties and name and an actual implementation file, the implementation file is set in the 'FileName' field of this manifest, the implementation is a json but the values are replaced at runtime with the 'macros' defined in Parameters in the manifest, the actual values are picked from a GUI at runtime.
    • The various options are not currently documented anywhere refer to the BflanTemplates.cs file in the source code.
    • A simple "Animate color" template is provided, it's composed of a .template file and a .json descriptor.
  • Builds are now generated with Github actions.

beta14

  • Fix layout diffing for 11.0+ szs files.

beta13

  • Properly export layout patches: position and size values now should be in the correct format
  • Fix a crash reported by users.

v1.0.0-beta12

  • 11.0 Support when creating json layouts. More info.
  • Support for texture reference properties in nxtheme (X, Y, Rotation, ScaleX, ScaleY).

v1.0.0-beta11

  • Fix crashes reported by users.

v1.0.0-beta10

  • Better hotkey support:
    • CTRL + S now should work as expected.
    • CTRL + L expands all tree view items in bflan and bflyt editing.
    • CTRL + K collapses all tree view items in bflan and bflyt editing.
  • Fix crashes in the color picker.
  • Support for "UserData" AnimationTarget in bflan.
  • Font color is now supported by the differ for json layouts (so can be used in nxthemes).

v1.0.0-beta9

  • Fix layout diffing.
  • Restore missing groups list in the bflyt editor.
  • Show the full hierarchy of bflyt files.

v1.0.0-beta8

  • Moved to the same lib as the theme injector, layout diffs and patches should be 100% compatible now.
  • Fixed a crash for animations with multiple groups.
  • Fixed a few issues when changing the order of panes.
  • Even if changing the order is supported in layout patches it won't be detected by the differ and has to be manually added as described here.

v1.0.0-beta7

  • Fix UV editing for pic1 panes.
  • Changing pane order.
  • More properties supported for materials editing.

v1.0.0-beta6

  • Adding and removing texture references in a bflyt file.
  • Editing materials (partial).
  • Fix crashes or corrupted files for big endian bflyts (for Wii u titles).

v1.0.0-beta5

  • Animations editor (.bflan files).
  • Group (grp panes) editing for bflyt files.
  • Fix for a some crashes and some minor improvements.

v1.0.0-beta4

  • You can now update the SwitchLayoutEditor directly from within the tool. No need to check Github anymore, just click on the Update button.
  • Support for usd1 panes + custom usd1 panes.
  • Search box in the SZS editor.

v1.0.0-beta3

  • Hotfix for a bug causing a black screen.
  • Added Layout Diff to generate a custom theme JSON patch.
  • Implemented txt1 and pic1 panes.
  • Added Settings (Colors and Background Image).
  • Added Keyboard shortcuts (Save, expand treeview ect.).
  • Possibility to import a JSON custom theme.
  • You can now Add/Remove/Clone panes.

v1.0.0-beta2

  • Hotfix for a rendering bug.
  • SZS File loading + file extract/replace.
  • Multiple file editing at the same time.
  • Dragging view + objects (panes).

v1.0.0-beta

  • BLFYT file preview with a simple rendering.
  • Pane settings editing.
  • Modifications saving.

Credits

  • FuryBaguette - Development.
  • exelix - Base of the editor & Continuous development.
  • Aboud - Sarc Tool.
  • Syroot - Binary Data.

External links

Advertising: