Fix xHandler key conflict. Close #147
This commit is contained in:
@@ -161,7 +161,6 @@
|
|||||||
(doFor i (range columnWidths.length)
|
(doFor i (range columnWidths.length)
|
||||||
(unless (> columnTexts.length i)
|
(unless (> columnTexts.length i)
|
||||||
(let [ftext (new FlxText (fHalf width) height 0 (columnTextStr i) textSize)]
|
(let [ftext (new FlxText (fHalf width) height 0 (columnTextStr i) textSize)]
|
||||||
// TODO make clickable action
|
|
||||||
(set ftext.cameras [controlCamera])
|
(set ftext.cameras [controlCamera])
|
||||||
(-= ftext.x (fHalf ftext.width))
|
(-= ftext.x (fHalf ftext.width))
|
||||||
(-= ftext.y ftext.height)
|
(-= ftext.y ftext.height)
|
||||||
@@ -213,6 +212,7 @@
|
|||||||
(controls.clear)
|
(controls.clear)
|
||||||
(inputTexts.clear)
|
(inputTexts.clear)
|
||||||
(keyHandler.clear)
|
(keyHandler.clear)
|
||||||
|
(xHandler.clear)
|
||||||
(makeXControls)
|
(makeXControls)
|
||||||
(set nextControlX 0)
|
(set nextControlX 0)
|
||||||
(set nextControlY 0)
|
(set nextControlY 0)
|
||||||
|
Reference in New Issue
Block a user