seed-engine
Version:
A Lightweight 2D game engine using WebGL2. The engine is designed on the focus of creating a bridge between creating and publishing games to the Seed Network as modules.
16 lines (12 loc) • 421 B
JavaScript
import { ClickController, Point, SceneObject, Renderable2D, UIManager } from '../../entry';
export default class UIElement extends SceneObject {
constructor(position, scale, rotation) {
super(position, scale, rotation);
this.uiStyle = UIManager.getCurrentStyle();
}
setStyle(uiStyleName) {
this.uiStyle = UIManager.getStyle(uiStyleName);
}
setDepth(depth) {
}
}