Menu

#21 Clean up menus

open
nobody
None
5
2008-10-13
2008-10-13
Sid D
No

Noise menus should display descriptive names instead of class names.
FunctionMenu and NoiseMenu should put most of their information in resource files.

Discussion

  • David Burnett

    David Burnett - 2008-10-13

    Hi Sid, I did a little clean up of the menus in the API version so that will be carried forward into pG 2.0 which will hopefully be a tidy up exercise in general, and beyond.

    I'm not entirely sure that extra using resource files would bring us.

     
  • Sid D

    Sid D - 2008-10-14

    Compare the code:

    newMenu = new JMenu("Perlin");
    item = new JMenuItem("plugins.engines.SummedPerlinWorley");
    item.addActionListener(actionListener);
    newMenu.add(item);
    add(newMenu);

    to the line in resource file:
    plugins.engines.SummedPerlinWorley = Perlin/Summed Perlin-Worley

    This will make it so much easier to organize the menus.

     

Log in to post a comment.