UME is quite limited when it comes to complex things. What I recommend is this, go to codecademy.com to learn some basics on JavaScript. Then you could download other mods using the gdt-modAPI and look at their code and what it does. Then, if you are able to obtain the game code, you should study it to help you learn more complex things. If you ever need help on how to start creating mods through JavaScript, we are all here…
@FireChaos this is a very bad idea. What you are essentially doing here, is overwrite an existing game function and replacing it with a version that does not do what the original was doing.
If anyone would actually use this in their mods, it would mean that the grPhone and the Gameling would suddenly also work on large to AAA games.
What’s worse is that if anyone else modded this function you would also overwrite their changes. Not cool.
(function(){
var originalMethod = Platforms.doesPlatformSupportGameSize;
var customPlatformSizeCheck = function(platform, size){
//handle our custom case
if (platform.id == 'EnDroid' && size!='small')
return false;
//otherwise preserve original functionality
return originalMethod();
};
Platforms.doesPlatformSupportGameSize = customPlatformSizeCheck;
})();
@FireChaos: also please don’t copy/paste code from the game on the forum as it is against the modding agreement. We are fine with it in the advanced modding category, to a degree, but not in the public categories.