Added CanvasScript.setUiScale
method.
It sets the scale factor for the UI elements.
This commit is contained in:
parent
5575ea5f12
commit
9cb88c111a
|
@ -104,6 +104,14 @@ class CanvasScript extends Trait {
|
|||
return canvas;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set UI scale factor.
|
||||
* @param factor Scale factor.
|
||||
*/
|
||||
public function setUiScale(factor:Float) {
|
||||
cui.setScale(factor);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set visibility of canvas
|
||||
* @param visible Whether canvas should be visible or not
|
||||
|
|
Loading…
Reference in a new issue