protected void added() { if (c.equals(-1, -1)) c = parent.ui.lcc; mg = ui.grabmouse(this); kg = ui.grabkeys(this); organize(opts); if (Config.fastflower) new OpeningFast(); else new Opening(); }
/* */ public FlowerMenu(Coord c, Widget parent, String[] options) { /* 186 */ super(c, Coord.z, parent); /* 187 */ this.opts = new Petal[options.length]; /* 188 */ for (int i = 0; i < options.length; i++) { /* 189 */ this.opts[i] = new Petal(options[i]); /* 190 */ this.opts[i].num = i; /* */ } /* 192 */ organize(this.opts); /* 193 */ this.ui.grabmouse(this); /* 194 */ this.ui.grabkeys(this); /* 195 */ this.anim = new Opening(); /* */ }