For example if I have the following:
Код: Виділити все
text_font = hmUI.createWidget(hmUI.widget.TEXT_FONT, {
x: 0, y: 0, w: 120, h: 96, text_size: 55,
char_space: 0, line_space: 0,
color: 0xFFFF0000,
align_h: hmUI.align.CENTER_H,
align_v: hmUI.align.TOP,
text_style: hmUI.text_style.ELLIPSIS,
type: hmUI.data_type.HEART,
show_level: hmUI.show_level.ONLY_NORMAL,
});
Код: Виділити все
text_font.setProperty(hmUI.prop.MORE, {type: hmUI.data_type.CAL});Trying to get this to work on a T-Rex 2.