2021-07-07 00:24:20 +03:00
|
|
|
<!--SPRITE RESIZE-->
|
2022-02-23 19:16:23 +03:00
|
|
|
<div class="update" id="resize-sprite">
|
2021-07-07 00:24:20 +03:00
|
|
|
<button class="close-button">{{svg "x.svg" width="20" height="20"}}</button>
|
|
|
|
<h1>Scale sprite</h1>
|
|
|
|
<!-- SIZE-->
|
|
|
|
<h2>New size</h2>
|
2022-02-23 19:16:23 +03:00
|
|
|
<span id="rs-size-menu">
|
2021-07-07 00:24:20 +03:00
|
|
|
<div>
|
|
|
|
<span>
|
|
|
|
Width: <input id="rs-width" type="number" default="0" step="1"
|
|
|
|
value="{{#if border}}{{border}}{{else}}0{{/if}}" autocomplete="off"/>
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<span>
|
|
|
|
Height: <input id="rs-height" default="0" step="1" type="number"
|
|
|
|
value="{{#if border}}{{border}}{{else}}0{{/if}}" autocomplete="off"/>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</span>
|
|
|
|
<!--BORDERS-->
|
|
|
|
<h2>Resize percentages</h2>
|
2022-02-23 19:16:23 +03:00
|
|
|
<span id="rs-percentage-menu">
|
2021-07-07 00:24:20 +03:00
|
|
|
<div>
|
|
|
|
<span>
|
|
|
|
Width <input id="rs-width-percentage" type="number" default="0" step="1"
|
|
|
|
value="{{#if border}}{{border}}{{else}}0{{/if}}" autocomplete="off"/> %
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<span>
|
|
|
|
Height <input id="rs-height-percentage" type="number" default="0" step="1"
|
|
|
|
value="{{#if border}}{{border}}{{else}}0{{/if}}" autocomplete="off"/> %
|
|
|
|
</span>
|
|
|
|
</div>
|
2022-02-23 19:16:23 +03:00
|
|
|
<div id="rs-ratio-div">
|
2021-07-07 00:24:20 +03:00
|
|
|
<span>
|
2022-02-23 19:16:23 +03:00
|
|
|
Keep current ratio <input type = "checkbox" id="rs-keep-ratio"/>
|
2021-07-07 00:24:20 +03:00
|
|
|
</span>
|
|
|
|
<span>
|
|
|
|
Scaling algorithm:
|
2022-02-23 19:16:23 +03:00
|
|
|
<select name = "resize-algorithm" id="resize-algorithm-combobox">
|
2021-07-07 00:24:20 +03:00
|
|
|
<option value = "nearest-neighbor">Nearest neighbour</option>
|
|
|
|
<option value = "bilinear-interpolation">Bilinear</option>
|
|
|
|
</select>
|
|
|
|
</span>
|
|
|
|
</br>
|
2022-02-23 19:16:23 +03:00
|
|
|
<button id="resize-sprite-confirm">Scale sprite</button>
|
2021-07-07 00:24:20 +03:00
|
|
|
</div>
|
|
|
|
</span>
|
|
|
|
</div>
|