MCPcopy Create free account
hub / github.com/esengine/esengine / getProp

Method getProp

packages/fairygui/src/widgets/GButton.ts:433–450  ·  view source on GitHub ↗
(index: number)

Source from the content-addressed store, hash-verified

431 }
432
433 public getProp(index: number): any {
434 switch (index) {
435 case EObjectPropID.Color:
436 return this.titleColor;
437 case EObjectPropID.OutlineColor:
438 const tf = this.getTextField();
439 if (tf) {
440 return tf.strokeColor;
441 }
442 return '#000000';
443 case EObjectPropID.FontSize:
444 return this.titleFontSize;
445 case EObjectPropID.Selected:
446 return this.selected;
447 default:
448 return super.getProp(index);
449 }
450 }
451
452 public setProp(index: number, value: any): void {
453 switch (index) {

Callers

nothing calls this directly

Calls 1

getTextFieldMethod · 0.95

Tested by

no test coverage detected