Εγκατάσταση Steam
Σύνδεση
|
Γλώσσα
简体中文 (Απλοποιημένα κινεζικά)
繁體中文 (Παραδοσιακά κινεζικά)
日本語 (Ιαπωνικά)
한국어 (Κορεατικά)
ไทย (Ταϊλανδικά)
Български (Βουλγαρικά)
Čeština (Τσεχικά)
Dansk (Δανικά)
Deutsch (Γερμανικά)
English (Αγγλικά)
Español – España (Ισπανικά – Ισπανία)
Español – Latinoamérica (Ισπανικά – Λατινική Αμερική)
Français (Γαλλικά)
Italiano (Ιταλικά)
Bahasa Indonesia (Ινδονησιακά)
Magyar (Ουγγρικά)
Nederlands (Ολλανδικά)
Norsk (Νορβηγικά)
Polski (Πολωνικά)
Português (Πορτογαλικά – Πορτογαλία)
Português – Brasil (Πορτογαλικά – Βραζιλία)
Română (Ρουμανικά)
Русский (Ρωσικά)
Suomi (Φινλανδικά)
Svenska (Σουηδικά)
Türkçe (Τουρκικά)
Tiếng Việt (Βιετναμικά)
Українська (Ουκρανικά)
Αναφορά προβλήματος μετάφρασης
'use strict';
var originalValue;
/**
* @param {Vec2} value - for property 'scale'
* @return {Vec2} - update current property value
*/
export function init(value) {
originalValue = value;
resizeScreen(engine.screenResolution);
}
/**
* @param {Vec2} size
*/
export function resizeScreen(size) {
if (size.x > size.y) {
thisObject.scale = originalValue.multiply(size.x / 1920.0);
} else {
thisObject.scale = originalValue.multiply(size.y / 1080.0);
}
}
This is a bit different from my text before, I think this solution should make it work on any aspect ratio and resolution.
resizeScreen is only called when the resolution actually changes so this part is a bit annoying, maybe we should change this to always be called once after init or something.
You could use a script on the blur scale to multiply it with "engine.screenResolution.divide(new Vec2(1920, 1080))" to scale it based on 1080p as reference. But imho it looks good either way, just an FYI if you want to try this on a future wallpaper.