Hello everyone,
So, this is the new RPG Maker's code:
When iconSize is not defined in $dataSystem, then a fallback is called. So far, so good. However, when I Ctrl+Shift+F for "defaultIconWidth", I cannot find it anywhere else besides this single line of code where it should be returned.
Am I missing something, or is this really a typo and it should be "standardIconWidth" ? Because, that would make more sense to me.
So, this is the new RPG Maker's code:
Code:
ImageManager.standardIconWidth = 32;
// ...
Object.defineProperty(ImageManager, "iconWidth", {
get: function() {
return this.getIconSize();
},
configurable: true
});
// ...
ImageManager.getIconSize = function() {
if ("iconSize" in $dataSystem) {
return $dataSystem.iconSize;
} else {
return this.defaultIconWidth; // <--- ??????
}
};
When iconSize is not defined in $dataSystem, then a fallback is called. So far, so good. However, when I Ctrl+Shift+F for "defaultIconWidth", I cannot find it anywhere else besides this single line of code where it should be returned.
Am I missing something, or is this really a typo and it should be "standardIconWidth" ? Because, that would make more sense to me.