fixed
This commit is contained in:
parent
7c7f76b188
commit
a9af97925e
12 changed files with 329 additions and 30 deletions
|
|
@ -360,6 +360,11 @@ function editorMouseHandler(x, y, button)
|
|||
end
|
||||
end
|
||||
end
|
||||
else
|
||||
-- click landed on the grid (game area): place the selected asset
|
||||
if editorView == "room" and button == 1 and selectedAsset then
|
||||
currentRoom:attemptPlace(selectedAsset, gameAssets[selectedAsset], x, y, selectedColor)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -117,9 +117,9 @@ function GUI:onClic(button)
|
|||
print(button)
|
||||
print("hey!!! u cliced on me. my name is ", self.name, self.text)
|
||||
GUI.pressSound:play()
|
||||
if button == "l" then
|
||||
if button == 1 then
|
||||
self.clic:left()
|
||||
elseif button == "r" then
|
||||
elseif button == 2 then
|
||||
self.clic:right()
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue