added styles to TextElement
This commit is contained in:
@@ -41,11 +41,11 @@ class PFClient implements Process {
|
||||
var childre: Array<UIElement> = [
|
||||
new TextElement('Acc: ${acc}'),
|
||||
new TextElement('Pos: X:${pos.x} Y:${pos.y} Z:${pos.z}'),
|
||||
new TextElement('UPDATE', { onClick: () -> {
|
||||
new TextElement('UPDATE', { style: {bgColor: Gray}, uiEvents: {onClick: () -> {
|
||||
kernel.gps.GPS.instance.locate().handle((pos) ->{
|
||||
this.requestRender();
|
||||
});
|
||||
}}),
|
||||
}}}),
|
||||
];
|
||||
|
||||
this.root.setChildren(childre);
|
||||
|
||||
Reference in New Issue
Block a user