Skip to content

Commit

Permalink
improved board clicking and selection
Browse files Browse the repository at this point in the history
  • Loading branch information
blinkybool committed Feb 12, 2024
1 parent 0c7bd5b commit 16419a4
Show file tree
Hide file tree
Showing 9 changed files with 194 additions and 380 deletions.
47 changes: 0 additions & 47 deletions lib/Client/BoardButton.lua

This file was deleted.

16 changes: 0 additions & 16 deletions lib/Client/SurfaceCanvas.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ local ValueObject = require(root.Util.ValueObject)
local Blend = require(root.Util.Blend)
local Sift = require(root.Parent.Sift)
local BoardUtils = require(root.BoardUtils)
local BoardButton = require(script.Parent.BoardButton)
local BoardState = require(script.Parent.Parent.BoardState)
local Rx = require(root.Util.Rx)
local Rxi = require(root.Util.Rxi)
Expand Down Expand Up @@ -69,21 +68,6 @@ function SurfaceCanvas.new(part: Part, service)
end
end)

self._maid:GiveTask(
BoardButton {
Active = Blend.Computed(service.OpenedBoardPart, self.Loading, function(openedBoardPart: Part, isLoading: boolean)
return not isLoading and openedBoardPart == nil
end),
SurfaceCFrame = self.SurfaceCFrame,
SurfaceSize = self.SurfaceSize,
OnClick = function()
service:OpenBoard(self._obj)
end,
}:Subscribe(function(button)
button.Parent = workspace
end)
)

self._maid:GiveTask(service.BoardClientBinder:Observe(self._obj):Subscribe(function(board)
if not board then
self._maid.board = nil
Expand Down
18 changes: 0 additions & 18 deletions lib/Client/VRInput/Eraser.lua

This file was deleted.

27 changes: 0 additions & 27 deletions lib/Client/VRInput/Pen.lua

This file was deleted.

256 changes: 0 additions & 256 deletions lib/Client/VRInput/init.lua

This file was deleted.

Loading

0 comments on commit 16419a4

Please sign in to comment.