public void OutCtr(Ctrbox ctr) { if (ctr.type != "sh") { output += ("GUI." + ctr.type + "(" + Rect2Str(ctr.wr) + ",\"" + ctr.name + "\");\n"); } }
public void setsel(Ctrbox ctr) { if (ctr != null) { bepaint = true; urmap(); Rect tmprect = calrect(); rgmap(tmprect); } }
public static string regmap(Rect wr, Ctrbox cbox) { string gid = System.Guid.NewGuid().ToString(); if (map.ContainsKey(gid)) { return(""); } else { map.Add(gid, wr); gdata.ctrlist.Add(gid, cbox); //foreach (var ctr in map) Debug.Log(ctr); return(gid); } }
public static void setsel(Ctrbox ctr) { pctr = new List <Ctrbox>(); pctr.Add(ctr); ash.setsel(ctr); }