Many improvements.
This commit is contained in:
3
third-party/mexui/Core/Control/Text.js
vendored
3
third-party/mexui/Core/Control/Text.js
vendored
@@ -14,4 +14,7 @@ mexui.Control.Text.prototype.render = function()
|
||||
var pos = this.getScreenPosition();
|
||||
|
||||
mexui.native.drawText(pos, this.size, this.text, this.getStyles('main'));
|
||||
|
||||
if(this.isFocused())
|
||||
mexui.native.drawRectangleBorder(mexui.util.subtractVec2(pos,new Vec2(2,2)), mexui.util.addVec2(this.size,new Vec2(3,3)), this.getStyles('focused'));
|
||||
};
|
||||
Reference in New Issue
Block a user