public override void rgmap(Rect tmpr) { wr = tmpr; Rect wrtmp = new Rect(wr.x - lena, wr.y - lena, lena, lena); gidlt = VeuiEditor.regmap(wrtmp, this); wrtmp.y = wr.y + wr.height; gidlb = VeuiEditor.regmap(wrtmp, this); wrtmp.x = wr.width + wr.x; gidrb = VeuiEditor.regmap(wrtmp, this); wrtmp.y = wr.y - lena; gidrt = VeuiEditor.regmap(wrtmp, this); wrtmp = new Rect(wr.x - lena, wr.y - lena, lena, lena); wrtmp.y = wr.y + wr.height / 2 - lena / 2; gidlm = VeuiEditor.regmap(wrtmp, this); wrtmp.x = wr.width + wr.x; gidrm = VeuiEditor.regmap(wrtmp, this); wrtmp.y = wr.y - lena; wrtmp.x = wr.width / 2 + wr.x - lena / 2; gidtm = VeuiEditor.regmap(wrtmp, this); wrtmp.y = wr.y + wr.height; gidbm = VeuiEditor.regmap(wrtmp, this); }
public VUEButton(Vector2 mpos) { type = "Button"; name = "Btn"; Rect wrtmp = new Rect(mpos.x, mpos.y, dw, dh); wr = wrtmp; gid = VeuiEditor.regmap(wrtmp, this); //sh = new Scalehandle(this, wr); }