Exemple #1
0
 static {
   Widget.addtype(
       "pv",
       new WidgetFactory() {
         public Widget create(Coord c, Widget parent, Object[] args) {
           return (new Partyview(c, parent, (Integer) args[0]));
         }
       });
 }
Exemple #2
0
 static {
   Widget.addtype(
       "scm",
       new WidgetFactory() {
         public Widget create(Coord c, Widget parent, Object[] args) {
           return (new MenuGrid(c, parent));
         }
       });
 }
Exemple #3
0
 static {
   Widget.addtype(
       "av",
       new WidgetFactory() {
         public Widget create(Coord c, Widget parent, Object[] args) {
           if (UI.instance.mainview != null
               && UI.instance.mainview.playergob == (Integer) args[0]) {
             c = new Coord(Config.window_props.getProperty(POSKEY, c.toString()));
           }
           return (new Avaview(c, parent, (Integer) args[0]));
         }
       });
   Widget.addtype(
       "av2",
       new WidgetFactory() {
         public Widget create(Coord c, Widget parent, Object[] args) {
           List<Indir<Resource>> rl = new LinkedList<Indir<Resource>>();
           for (Object arg : args) rl.add(parent.ui.sess.getres((Integer) arg));
           return (new Avaview(c, parent, rl));
         }
       });
 }