1
0
mirror of https://github.com/aseprite/aseprite.git synced 2025-03-31 07:20:30 +00:00
aseprite/data/widgets/export_sprite_sheet.xml
David N Campo bdd4202c35 Add Trim by Grid option in Export Sprite Sheet ()
This adds the logic and UI part of Trim by Grid feature, the CLI part
is not yet implemented.
2019-02-07 14:07:42 -03:00

80 lines
2.5 KiB
XML

<!-- Aseprite -->
<!-- Copyright (C) 2001-2018 by David Capello -->
<gui>
<window id="export_sprite_sheet" text="@.title">
<grid columns="4">
<label text="@.sheet_type" />
<combobox id="sheet_type" cell_hspan="3" />
<label id="columns_label" text="@.columns" />
<expr id="columns" text="" />
<boxfiller cell_hspan="2" />
<label id="rows_label" text="@.rows" />
<expr id="rows" text="" />
<boxfiller cell_hspan="2" />
<hbox />
<vbox>
<check id="padding_enabled" text="@.padding" />
<check id="trim_enabled" text="@.trim" />
<hbox id="trim_container">
<boxfiller />
<check id="grid_trim_enabled" text="@.trim_by_grid" />
</hbox>
<check id="extrude_enabled" text="@.extrude" />
</vbox>
<grid columns="2" id="padding_container" cell_hspan="2">
<label text="@.border" />
<expr id="border_padding" text="0" />
<label text="@.shape" />
<expr id="shape_padding" text="0" />
<label text="@.inner" />
<expr id="inner_padding" text="0" />
</grid>
<label id="fit_width_label" text="@.width" />
<combobox id="fit_width" text="" maxsize="5" editable="true" />
<label id="fit_height_label" text="@.height" />
<combobox id="fit_height" text="" maxsize="5" editable="true" />
<hbox id="best_fit_filler" />
<check cell_hspan="3" id="best_fit" text="@.best_fit" />
<label text="@.layers" />
<combobox id="layers" text="" cell_hspan="3" />
<label text="@.frames" />
<combobox id="frames" text="" cell_hspan="3" />
<check id="image_enabled" text="@.output_file" />
<button id="image_filename" cell_hspan="3" />
<check id="data_enabled" text="@.json_data" />
<button id="data_filename" cell_hspan="3" />
<hbox />
<hbox id="data_meta" cell_hspan="3">
<combobox id="data_format">
<listitem text="@.json_data_hash" value="0" />
<listitem text="@.json_data_array" value="1" />
</combobox>
<label text="@.meta" />
<check id="list_layers" text="@.meta_layers" />
<check id="list_tags" text="@.meta_frame_tags" />
<check id="list_slices" text="@.meta_slices" />
</hbox>
<check id="open_generated" text="@.open_sprite_sheet" cell_hspan="4" />
<hbox cell_hspan="4">
<boxfiller />
<hbox homogeneous="true">
<button text="@.export" minwidth="60" id="export_button" magnet="true" />
<button text="@.cancel" minwidth="60" closewindow="true" />
</hbox>
</hbox>
</grid>
</window>
</gui>