Bunch of stuff

This commit is contained in:
Vortrex
2022-05-12 16:41:32 -05:00
parent 5e075e25f9
commit 0543a58597
16 changed files with 265 additions and 334 deletions

View File

@@ -7,9 +7,6 @@
// TYPE: Client (JavaScript)
// ===========================================================================
let flagImagesPosition = toVector2(getScreenWidth()/2, login.window.position.y+100);
let flagImageSize = toVector2(50, 50);
function getLocaleString(stringName, ...args) {
if(typeof getServerData().localeStrings[stringName] == undefined) {
return "";
@@ -31,4 +28,13 @@ function receiveLocaleStringFromServer(stringName, stringValue) {
getServerData().localeStrings[stringName] = stringValue;
}
// ===========================================================================
function receiveLocaleStringsFromServer(strings) {
for(let i in strings) {
let stringName = strings[i][0];
getServerData().localeStrings[stringName] = strings[i][1];
}
}
// ===========================================================================