mirror of
https://github.com/lalbornoz/roar.git
synced 2024-11-22 23:36:36 +00:00
libtools/ToolText.py:onMouseEvent(): only set self.textPos on is{Left,Right}Down.
This commit is contained in:
parent
c9102f3462
commit
34dddd3e2b
@ -33,8 +33,9 @@ class ToolText(Tool):
|
|||||||
#
|
#
|
||||||
# onMouseEvent(self, event, atPoint, brushColours, brushSize, isDragging, isLeftDown, isRightDown, dispatchFn, eventDc): XXX
|
# onMouseEvent(self, event, atPoint, brushColours, brushSize, isDragging, isLeftDown, isRightDown, dispatchFn, eventDc): XXX
|
||||||
def onMouseEvent(self, event, atPoint, brushColours, brushSize, isDragging, isLeftDown, isRightDown, dispatchFn, eventDc):
|
def onMouseEvent(self, event, atPoint, brushColours, brushSize, isDragging, isLeftDown, isRightDown, dispatchFn, eventDc):
|
||||||
self.textPos = list(atPoint)
|
if isLeftDown or isRightDown:
|
||||||
dispatchFn(eventDc, True, [*self.textPos, *brushColours, 0, "_"])
|
self.textPos = list(atPoint)
|
||||||
|
dispatchFn(eventDc, True, [*atPoint, *brushColours, 0, "_"])
|
||||||
|
|
||||||
# __init__(self, *args): initialisation method
|
# __init__(self, *args): initialisation method
|
||||||
def __init__(self, *args):
|
def __init__(self, *args):
|
||||||
|
Loading…
Reference in New Issue
Block a user