mirror of
https://github.com/OMGeeky/ItemChecklist.git
synced 2026-02-23 15:38:25 +01:00
tmodPorter
This commit is contained in:
@@ -97,9 +97,9 @@ namespace ItemChecklist.UIElements
|
||||
this.DrawBar(spriteBatch, this._innerTexture, handleRectangle, Color.White * ((this._isDragging || this._isHoveringOverHandle) ? 1f : 0.85f));
|
||||
}
|
||||
|
||||
public override void MouseDown(UIMouseEvent evt)
|
||||
public override void LeftMouseDown(UIMouseEvent evt)
|
||||
{
|
||||
base.MouseDown(evt);
|
||||
base.LeftMouseDown(evt);
|
||||
if (evt.Target == this)
|
||||
{
|
||||
Rectangle handleRectangle = this.GetHandleRectangle();
|
||||
@@ -115,9 +115,9 @@ namespace ItemChecklist.UIElements
|
||||
}
|
||||
}
|
||||
|
||||
public override void MouseUp(UIMouseEvent evt)
|
||||
public override void LeftMouseUp(UIMouseEvent evt)
|
||||
{
|
||||
base.MouseUp(evt);
|
||||
base.LeftMouseUp(evt);
|
||||
this._isDragging = false;
|
||||
}
|
||||
}
|
||||
@@ -139,11 +139,11 @@ namespace ItemChecklist.UIElements
|
||||
UserInterface.ActiveInstance = temp;
|
||||
}
|
||||
|
||||
public override void MouseDown(UIMouseEvent evt)
|
||||
public override void LeftMouseDown(UIMouseEvent evt)
|
||||
{
|
||||
UserInterface temp = UserInterface.ActiveInstance;
|
||||
UserInterface.ActiveInstance = userInterface;
|
||||
base.MouseDown(evt);
|
||||
base.LeftMouseDown(evt);
|
||||
UserInterface.ActiveInstance = temp;
|
||||
}
|
||||
}
|
||||
@@ -162,11 +162,11 @@ namespace ItemChecklist.UIElements
|
||||
UserInterface.ActiveInstance = temp;
|
||||
}
|
||||
|
||||
public override void MouseDown(UIMouseEvent evt)
|
||||
public override void LeftMouseDown(UIMouseEvent evt)
|
||||
{
|
||||
UserInterface temp = UserInterface.ActiveInstance;
|
||||
UserInterface.ActiveInstance = userInterface;
|
||||
base.MouseDown(evt);
|
||||
base.LeftMouseDown(evt);
|
||||
UserInterface.ActiveInstance = temp;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user