|
@@ -62,7 +62,8 @@ class BoxExport {
|
|
|
}
|
|
|
|
|
|
static function tabExportTextures(ui: Zui, title: String, bakeMaterial = false) {
|
|
|
- if (ui.tab(htab, title)) {
|
|
|
+ var tabVertical = Config.raw.touch_ui;
|
|
|
+ if (ui.tab(htab, title, tabVertical)) {
|
|
|
ui.row([0.5, 0.5]);
|
|
|
#if (krom_android || krom_ios)
|
|
|
ui.combo(App.resHandle, ["128", "256", "512", "1K", "2K", "4K"], tr("Resolution"), true);
|
|
@@ -108,10 +109,10 @@ class BoxExport {
|
|
|
|
|
|
ui.row([0.5, 0.5]);
|
|
|
if (ui.button(tr("Cancel"))) {
|
|
|
- UIBox.show = false;
|
|
|
+ UIBox.hide();
|
|
|
}
|
|
|
if (ui.button(tr("Export"))) {
|
|
|
- UIBox.show = false;
|
|
|
+ UIBox.hide();
|
|
|
if (Context.layersDestination == DestinationPacked) {
|
|
|
Context.textureExportPath = "/";
|
|
|
function _init() {
|
|
@@ -145,7 +146,8 @@ class BoxExport {
|
|
|
}
|
|
|
|
|
|
static function tabPresets(ui: Zui) {
|
|
|
- if (ui.tab(htab, tr("Presets"))) {
|
|
|
+ var tabVertical = Config.raw.touch_ui;
|
|
|
+ if (ui.tab(htab, tr("Presets"), tabVertical)) {
|
|
|
ui.row([3 / 5, 1 / 5, 1 / 5]);
|
|
|
|
|
|
ui.combo(hpreset, files, tr("Preset"));
|
|
@@ -153,7 +155,8 @@ class BoxExport {
|
|
|
|
|
|
if (ui.button(tr("New"))) {
|
|
|
UIBox.showCustom(function(ui: Zui) {
|
|
|
- if (ui.tab(Id.handle(), tr("New Preset"))) {
|
|
|
+ var tabVertical = Config.raw.touch_ui;
|
|
|
+ if (ui.tab(Id.handle(), tr("New Preset"), tabVertical)) {
|
|
|
ui.row([0.5, 0.5]);
|
|
|
var presetName = ui.textInput(Id.handle({ text: "new_preset" }), tr("Name"));
|
|
|
if (ui.button(tr("OK")) || ui.isReturnDown) {
|
|
@@ -161,7 +164,7 @@ class BoxExport {
|
|
|
fetchPresets();
|
|
|
preset = null;
|
|
|
hpreset.position = files.indexOf(presetName);
|
|
|
- UIBox.show = false;
|
|
|
+ UIBox.hide();
|
|
|
BoxExport.htab.position = 1; // Presets
|
|
|
BoxExport.showTextures();
|
|
|
}
|
|
@@ -255,7 +258,8 @@ class BoxExport {
|
|
|
}
|
|
|
|
|
|
static function tabAtlases(ui: Zui) {
|
|
|
- if (ui.tab(htab, tr("Atlases"))) {
|
|
|
+ var tabVertical = Config.raw.touch_ui;
|
|
|
+ if (ui.tab(htab, tr("Atlases"), tabVertical)) {
|
|
|
if (Project.atlasObjects == null || Project.atlasObjects.length != Project.paintObjects.length) {
|
|
|
Project.atlasObjects = [];
|
|
|
Project.atlasNames = [];
|
|
@@ -283,7 +287,8 @@ class BoxExport {
|
|
|
}
|
|
|
|
|
|
static function tabExportMesh(ui: Zui, htab: zui.Zui.Handle) {
|
|
|
- if (ui.tab(htab, tr("Export Mesh"))) {
|
|
|
+ var tabVertical = Config.raw.touch_ui;
|
|
|
+ if (ui.tab(htab, tr("Export Mesh"), tabVertical)) {
|
|
|
|
|
|
ui.row([1 / 2, 1 / 2]);
|
|
|
|
|
@@ -307,10 +312,10 @@ class BoxExport {
|
|
|
|
|
|
ui.row([0.5, 0.5]);
|
|
|
if (ui.button(tr("Cancel"))) {
|
|
|
- UIBox.show = false;
|
|
|
+ UIBox.hide();
|
|
|
}
|
|
|
if (ui.button(tr("Export"))) {
|
|
|
- UIBox.show = false;
|
|
|
+ UIBox.hide();
|
|
|
UIFiles.show(Context.exportMeshFormat == FormatObj ? "obj" : "arm", true, false, function(path: String) {
|
|
|
#if (krom_android || krom_ios)
|
|
|
var f = kha.Window.get(0).title;
|
|
@@ -337,7 +342,8 @@ class BoxExport {
|
|
|
public static function showMaterial() {
|
|
|
UIBox.showCustom(function(ui: Zui) {
|
|
|
var htab = Id.handle();
|
|
|
- if (ui.tab(htab, tr("Export Material"))) {
|
|
|
+ var tabVertical = Config.raw.touch_ui;
|
|
|
+ if (ui.tab(htab, tr("Export Material"), tabVertical)) {
|
|
|
var h1 = Id.handle();
|
|
|
var h2 = Id.handle();
|
|
|
h1.selected = Context.packAssetsOnExport;
|
|
@@ -346,10 +352,10 @@ class BoxExport {
|
|
|
Context.writeIconOnExport = ui.check(h2, tr("Export Icon"));
|
|
|
ui.row([0.5, 0.5]);
|
|
|
if (ui.button(tr("Cancel"))) {
|
|
|
- UIBox.show = false;
|
|
|
+ UIBox.hide();
|
|
|
}
|
|
|
if (ui.button(tr("Export"))) {
|
|
|
- UIBox.show = false;
|
|
|
+ UIBox.hide();
|
|
|
UIFiles.show("arm", true, false, function(path: String) {
|
|
|
var f = UIFiles.filename;
|
|
|
if (f == "") f = tr("untitled");
|
|
@@ -365,7 +371,8 @@ class BoxExport {
|
|
|
public static function showBrush() {
|
|
|
UIBox.showCustom(function(ui: Zui) {
|
|
|
var htab = Id.handle();
|
|
|
- if (ui.tab(htab, tr("Export Brush"))) {
|
|
|
+ var tabVertical = Config.raw.touch_ui;
|
|
|
+ if (ui.tab(htab, tr("Export Brush"), tabVertical)) {
|
|
|
var h1 = Id.handle();
|
|
|
var h2 = Id.handle();
|
|
|
h1.selected = Context.packAssetsOnExport;
|
|
@@ -374,10 +381,10 @@ class BoxExport {
|
|
|
Context.writeIconOnExport = ui.check(h2, tr("Export Icon"));
|
|
|
ui.row([0.5, 0.5]);
|
|
|
if (ui.button(tr("Cancel"))) {
|
|
|
- UIBox.show = false;
|
|
|
+ UIBox.hide();
|
|
|
}
|
|
|
if (ui.button(tr("Export"))) {
|
|
|
- UIBox.show = false;
|
|
|
+ UIBox.hide();
|
|
|
UIFiles.show("arm", true, false, function(path: String) {
|
|
|
var f = UIFiles.filename;
|
|
|
if (f == "") f = tr("untitled");
|