Esempio n. 1
0
        /// <see cref="UIObject.Render_i"/>
        protected override void Render_i(IUIRenderContext renderContext)
        {
            UIMouseSensor sensor  = this.activeSensor != null ? this.activeSensor : this.touchedSensors[this.touchedSensors.Count - 1];
            UIPointer     pointer = sensor.GetMousePointer(this.pointerPosition);

            if (pointer == null)
            {
                pointer = this.defaultMousePointer;
            }
            if (pointer != null)
            {
                renderContext.RenderSprite(pointer.Icon,
                                           this.pointerPosition - pointer.Offset);
            }
        }
Esempio n. 2
0
 /// <summary>
 /// Sets the default mouse pointer.
 /// </summary>
 /// <param name="defaultPointer">The default mouse pointer or null if no default pointer is defined.</param>
 public void SetDefaultMousePointer(UIPointer defaultPointer)
 {
     this.defaultMousePointer = defaultPointer;
 }
Esempio n. 3
0
 /// <summary>
 /// Sets the default mouse pointer.
 /// </summary>
 /// <param name="defaultPointer">The default mouse pointer or null if no default pointer is defined.</param>
 public void SetDefaultMousePointer(UIPointer defaultPointer)
 {
     this.mouseManager.SetDefaultMousePointer(defaultPointer);
 }