Exemple #1
0
 public static void CreateStrMenu(MenuItem[] items, Color c, ref SurfaceCollection surfaces, ref Rectangle[] rects, int width = 300, int height = -1)
 {
     CreateStrMenu(items, c, ResourceManager.SmallPFont, ref surfaces, ref rects, width, height);
 }
Exemple #2
0
 public static void CreateStrMenu(MenuItem[] items, Color c, SdlDotNet.Graphics.Font font, ref SurfaceCollection surfaces, ref Rectangle[] rects, int width = 300, int height = -1)
 {
     CreateStrMenu(Array.ConvertAll<MenuItem, string>(items, (mi) =>
     {
         return mi.ToString();
     }), c, font, ref surfaces, ref rects, width, height);
 }