var test = 文本1.data;
if(test<=0){
文本1.data = "↑"
var gf = new GFont("Arial", BOLD, 50);
var loc = new Locator([], OBJECT, DETAIL);
var col=new Color(java.awt.Color.RED)
文本1.setForeground(loc,col)
文本1.setFont(loc, gf)
}else{
文本1.data = "↓"
var gf = new GFont("Arial", BOLD, 50);
var loc = new Locator([], OBJECT, DETAIL);
var col=new Color(java.awt.Color.GREEN)
文本1.setForeground(loc,col)
文本1.setFont(loc, gf)}
样式如下:
|