/// <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); } }
/// <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; }
/// <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); }