Skip to content

Commit

Permalink
Port configurationwidget to roact
Browse files Browse the repository at this point in the history
  • Loading branch information
kbarber committed May 25, 2018
1 parent 00e98e8 commit f88e2eb
Show file tree
Hide file tree
Showing 3 changed files with 171 additions and 220 deletions.
213 changes: 0 additions & 213 deletions src/Models/Core/MainModule/BTKPlugin/ConfigurationWidget.lua

This file was deleted.

7 changes: 2 additions & 5 deletions src/Models/Core/MainModule/BTKPlugin/init.lua
Expand Up @@ -2,7 +2,6 @@

local BaseObject = require(script.Parent.BaseObject)
local MainToolBar = require(script.MainToolBar)
local ConfigurationWidget = require(script.ConfigurationWidget)
local UI = require(script.Parent.UI)
local Roact = require(script.Parent.lib.Roact)

Expand All @@ -21,7 +20,6 @@ function BTKPlugin:initialize(plug)
self._mainScreenGUI.Name = "BTKMainScreenGUI"

self._mainToolBar = MainToolBar:new(plug, self._mainScreenGUI)
self._configurationWidget = ConfigurationWidget:new(plug)

self:AssetsWidget()
self:ConfigurationWidget()
Expand All @@ -34,8 +32,8 @@ function BTKPlugin:AssetsWidget()
Name = "Assets",
Plugin = self._plugin,
})
local assetsWidget = Roact.createElement(UI.AssetsWidget)
Roact.mount(assetsWidget, dockWidget)
local widget = Roact.createElement(UI.AssetsWidget)
Roact.mount(widget, dockWidget)
end

function BTKPlugin:ConfigurationWidget()
Expand All @@ -52,7 +50,6 @@ function BTKPlugin:Deactivate()
self:Trace("Plugin deactivating")
self._mainScreenGUI:Destroy()
self._mainToolBar:Destroy()
self._configurationWidget:Destroy()
self:Trace("Plugin deactivation complete")
end
end
Expand Down

0 comments on commit f88e2eb

Please sign in to comment.