Change color-react on text (rollover to blue hypertext-like)


#1

I wish for the the following to react:

var entityTextWeCo = this.app.root.findByName(‘TextWeCo’);

var entityImUnWeCo =  this.app.root.findByName('ImUnWeCo');    

this.entityButtonWeCo.element.on('mousedown', this.onPress2, this);  this.entityButtonWeCo.element.on('mouseenter', this.onOver2, this);

};

HotelShifter.prototype.onOver2 = function (event) {
this.entityTextWeCo.color = new pc.Color(0, 0, 0.4);
this.entityImUnWeCo.color = new pc.Color(0, 0, 0.4);

};

Most likely UI-related, I guess


#2

ok, found out myself
https://developer.playcanvas.com/en/tutorials/ui-elements-buttons/
(partially … if more elaboration upon it forum-wise, I could still use an underline function, that mimics the mechanics in the HTML World)