Beispiel #1
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="device_">Graphics device to use to draw the widgets.</param>
        /// <param name="contentManager_">Content manager used ton loaad the textures and such.</param>
        public UIManager(RenderTarget target )
        {
            myTarget = target;
            myPainter = new Painter(myTarget);

            myCursor = new Cursor();
        }
Beispiel #2
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="painter">Painter to draw the widgets with</param>
 public DrawEvent(Painter painter, bool debug)
     : base(EventType.DrawEvent)
 {
     Painter = painter;
     DebugDraw = debug;
 }
Beispiel #3
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="painter">Painter to draw the widgets with</param>
 public DrawEvent(Painter painter)
     : base(EventType.DrawEvent)
 {
     Painter = painter;
     DebugDraw = false;
 }