Skip to content

Commit

Permalink
Removed most development code and translations
Browse files Browse the repository at this point in the history
  • Loading branch information
MaXFeeD committed Jun 29, 2021
1 parent 795bf70 commit 156e34b
Show file tree
Hide file tree
Showing 10 changed files with 86 additions and 270 deletions.
Binary file modified .script/definitions.dns
Binary file not shown.
Binary file modified .script/fetch.dns
Binary file not shown.
Binary file modified .script/install.dns
Binary file not shown.
Binary file modified .script/sound.dns
Binary file not shown.
6 changes: 6 additions & 0 deletions dev/callback/loading.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ const initialize = function() {
});
};

tryoutSafety(function() {
if (REVISION.startsWith("develop")) {
REQUIRE("development.js");
}
});

if (isInstant) initialize();

Callback.addCallback("PostLoaded", function() {
Expand Down
11 changes: 1 addition & 10 deletions dev/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,9 @@ let maximumAllowedBounds = 128;
let importAutoselect = false;
let safetyProcesses = true;
let transitionSideDividers = 8;
let debugAttachBackground = false;
let debugAttachControlTools = true;
let debugIgnoreLockedBackground = true;

// Currently build information
const REVISION = "develop-alpha-0.4-27.06.2021-0";
const REVISION = "develop-alpha-0.4-29.06.2021-0";
const NAME = __mod__.getInfoProperty("name");
const AUTHOR = __mod__.getInfoProperty("author");
const VERSION = __mod__.getInfoProperty("version");
Expand Down Expand Up @@ -121,12 +118,6 @@ const retraceOrReport = function(error) {

IMPORT("Sequence:1");

Sequence.prototype.cancel = function(error) {
if (error && error.message != "java.lang.InterruptedException: null") {
if (this.isReportingEnabled()) retraceOrReport(error);
}
};

getPlayerEnt = function() {
return parseInt(Player.get());
};
31 changes: 0 additions & 31 deletions dev/sequence/launch.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,13 @@
const LaunchSequence = new LogotypeSequence({
count: 3,
create: function(value) {
if (REVISION.startsWith("develop")) {
REQUIRE("background.js");
if (debugAttachBackground) {
attachBackground();
}
}
if (isFirstLaunch()) {
let foreground = this.getForegroundIcon(),
background = this.getBackgroundIcon();
ImageFactory.loadFromAsset(foreground, foreground + ".dnr");
ImageFactory.loadFromAsset(background, background + ".dnr");
LogotypeSequence.prototype.create.apply(this, arguments);
}
if (REVISION.startsWith("develop")) {
REQUIRE("provider.js");
attachEvalButton();
}
},
getExpirationTime: function() {
return isFirstLaunch() ? LogotypeSequence.prototype.getExpirationTime.apply(this, arguments) : 0;
Expand All @@ -37,38 +27,17 @@ const LaunchSequence = new LogotypeSequence({
let cancellation = LogotypeSequence.prototype.getCancellationBackground();
ImageFactory.loadFromAsset(cancellation, "popup/selection/locked.dnr");
FileTools.assureDir(Dirs.EXPORT);
if (REVISION.startsWith("develop")) {
let background = SnackSequence.prototype.getBackground();
ImageFactory.loadFromAsset(background, "popup/popup.dnr");
let creation = SnackSequence.prototype.getCreationBackground();
ImageFactory.loadFromAsset(creation, "popup/selection/queued.dnr");
let completion = SnackSequence.prototype.getCompletionBackground();
ImageFactory.loadFromAsset(completion, "popup/selection/selected.dnr");
}
} else if (index == 2) {
AssetFactory.loadAsset("minecraftFont", "font.ttf");
typeface = AssetFactory.createFont("minecraft");
if (REVISION.startsWith("develop")) {
REQUIRE("translation.js")(__dir__ + "dev/", __dir__ + "dev/translation.js").assureYield();
}
registerAdditionalInformation();
} else if (index == 3) {
if (REVISION.startsWith("develop")) {
REQUIRE("recompress.js")(Dirs.IMAGE, Dirs.ASSET).assureYield();
}
let list = Files.listFileNames(Dirs.ASSET, true);
this.count += Files.checkFormats(list, ".dnr").length;
ImageFactory.loadDirectory();
ImageFactory.decodeAsAnimation("blockNoTextures", ["blockDefineTexture", "blockDefineWrong"], 1500);
index += ImageFactory.resourcesCount;
refreshSupportablesIcons();
if (REVISION.startsWith("develop")) {
REQUIRE("recompile.js")(Dirs.EVALUATE + "testing/", Dirs.TESTING).assureYield();
if (debugIgnoreLockedBackground) {
ImageFactory.loadFromAsset("popupSelectionLocked", "popup/popup.dnr");
ImageFactory.loadFromAsset("popupSelectionQueued", "popup/popup.dnr");
}
}
}
return index;
},
Expand Down
19 changes: 0 additions & 19 deletions dev/tools/shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,25 +111,6 @@ const registerAdditionalInformation = function() {
return !loadSupportables;
});
}
if (REVISION.startsWith("develop")) {
AdditionalMessageFactory.registerClickable("menuProjectManage", translate("If you're wouldn't see development panel here, it may be removed."), 1, function(message) {
debugAttachControlTools = !debugAttachControlTools;
let control = message.getWindow();
control.removeElement(message);
control.removeElement(0);
}, function() {
return debugAttachControlTools;
});
AdditionalMessageFactory.registerClickable("explorerImport", translate("Modification is outgoing to produce? Let's compile anything that's we're developed!"), 0.5, function(message) {
REQUIRE("produce.js")(function() {
UniqueHelper.requireDestroy();
WindowProvider.destroy();
if (REVISION.startsWith("develop")) {
attachEvalButton();
}
});
});
}
};

/**
Expand Down
Loading

0 comments on commit 156e34b

Please sign in to comment.