Beispiel #1
0
        public override void Initialize()
        {
            if (Font == null)
            {
                Font = ResourceManager.Load <SpriteFont>("Fonts/CourierNew_11");
                Text = Text;
            }
            if (Texture == null)
            {
                Texture = ResourceManager.Load <Texture2D>("GUI/BackgroundBlack");
            }

            contextMenu.Add("Undo");
            contextMenu.Add("Redo");
            contextMenu.Add(null);
            contextMenu.Add("Copy");
            contextMenu.Add("Cut");
            contextMenu.Add("Paste");
            contextMenu.onElementSelected += new ContextMenu.ElementSelectedHandler(contextMenu_onElementSelected);

            base.Initialize();
        }
Beispiel #2
0
 public void ItemsAdd(String s)
 {
     contextMenu.Add(s);
 }