Fix compile
This commit is contained in:
@@ -41,7 +41,7 @@ class ImportMesh {
|
||||
Project.meshAssets = [path];
|
||||
|
||||
#if (krom_android || krom_ios)
|
||||
kha.Window.get(0).title = path.substring(path.lastIndexOf(Path.sep) + 1, path.lastIndexOf("."));
|
||||
kha.Window.get().title = path.substring(path.lastIndexOf(Path.sep) + 1, path.lastIndexOf("."));
|
||||
#end
|
||||
}
|
||||
|
||||
|
||||
@@ -186,7 +186,7 @@ class App {
|
||||
Translator.loadTranslations(Config.raw.locale);
|
||||
UIFiles.filename = tr("untitled");
|
||||
#if (krom_android || krom_ios)
|
||||
kha.Window.get(0).title = tr("untitled");
|
||||
kha.Window.get().title = tr("untitled");
|
||||
#end
|
||||
|
||||
// Baked font for fast startup
|
||||
|
||||
@@ -90,9 +90,9 @@ class Project {
|
||||
#if krom_ios
|
||||
var documentDirectory = Krom.saveDialog("", "");
|
||||
documentDirectory = documentDirectory.substr(0, documentDirectory.length - 8); // Strip /'untitled'
|
||||
filepath = documentDirectory + "/" + kha.Window.get(0).title + ".arm";
|
||||
filepath = documentDirectory + "/" + kha.Window.get().title + ".arm";
|
||||
#elseif krom_android
|
||||
filepath = Krom.savePath() + "/" + kha.Window.get(0).title + ".arm";
|
||||
filepath = Krom.savePath() + "/" + kha.Window.get().title + ".arm";
|
||||
#else
|
||||
projectSaveAs(saveAndQuit);
|
||||
return;
|
||||
|
||||
@@ -141,7 +141,7 @@ class ExportTexture {
|
||||
var textureSizeY = Config.getTextureResY();
|
||||
var formatQuality = Context.raw.formatQuality;
|
||||
#if (krom_android || krom_ios)
|
||||
var f = kha.Window.get(0).title;
|
||||
var f = kha.Window.get().title;
|
||||
#else
|
||||
var f = UIFiles.filename;
|
||||
#end
|
||||
|
||||
@@ -59,7 +59,7 @@ class ImportMesh {
|
||||
Project.meshAssets = [path];
|
||||
|
||||
#if (krom_android || krom_ios)
|
||||
kha.Window.get(0).title = path.substring(path.lastIndexOf(Path.sep) + 1, path.lastIndexOf("."));
|
||||
kha.Window.get().title = path.substring(path.lastIndexOf(Path.sep) + 1, path.lastIndexOf("."));
|
||||
#end
|
||||
}
|
||||
|
||||
|
||||
@@ -364,7 +364,7 @@ class BoxExport {
|
||||
UIBox.hide();
|
||||
UIFiles.show(Context.raw.exportMeshFormat == FormatObj ? "obj" : "arm", true, false, function(path: String) {
|
||||
#if (krom_android || krom_ios)
|
||||
var f = kha.Window.get(0).title;
|
||||
var f = kha.Window.get().title;
|
||||
#else
|
||||
var f = UIFiles.filename;
|
||||
#end
|
||||
|
||||
Reference in New Issue
Block a user