[*] The great require parens fixup©

master
Lorenzo Cogotti 2 years ago
parent 18fdaee15d
commit acf9403291

@ -1,7 +1,7 @@
local BASE = (...):gsub('button', '') local BASE = (...):gsub('button', '')
local Widget = require BASE..'widget' local Widget = require(BASE..'widget')
local core = require BASE..'core' local core = require(BASE..'core')
local shadowtext = require 'lib.gear.shadowtext' local shadowtext = require 'lib.gear.shadowtext'
local T = require('lib.moonspeak').translate local T = require('lib.moonspeak').translate

@ -1,7 +1,7 @@
local BASE = (...):gsub('checkbox', '') local BASE = (...):gsub('checkbox', '')
local Widget = require BASE..'widget' local Widget = require(BASE..'widget')
local core = require BASE..'core' local core = require(BASE..'core')
local shadowtext = require 'lib.gear.shadowtext' local shadowtext = require 'lib.gear.shadowtext'
local T = require('lib.moonspeak').translate local T = require('lib.moonspeak').translate

@ -1,7 +1,7 @@
local BASE = (...):gsub('choice', '') local BASE = (...):gsub('choice', '')
local Widget = require BASE..'widget' local Widget = require(BASE..'widget')
local core = require BASE..'core' local core = require(BASE..'core')
local shadowtext = require 'lib.gear.shadowtext' local shadowtext = require 'lib.gear.shadowtext'
local T = require('lib.moonspeak').translate local T = require('lib.moonspeak').translate

@ -1,6 +1,6 @@
local BASE = (...):gsub('columns', '') local BASE = (...):gsub('columns', '')
local Layout = require BASE..'layout' local Layout = require(BASE..'layout')
local Columns = setmetatable({}, Layout) local Columns = setmetatable({}, Layout)
Columns.__index = Columns Columns.__index = Columns

@ -1,7 +1,7 @@
local BASE = (...):gsub('input', '') local BASE = (...):gsub('input', '')
local Widget = require BASE..'widget' local Widget = require(BASE..'widget')
local core = require BASE..'core' local core = require(BASE..'core')
local utf8 = require 'utf8' local utf8 = require 'utf8'

@ -1,7 +1,7 @@
local BASE = (...):gsub('label', '') local BASE = (...):gsub('label', '')
local Widget = require BASE..'widget' local Widget = require(BASE..'widget')
local core = require BASE..'core' local core = require(BASE..'core')
local shadowtext = require 'lib.gear.shadowtext' local shadowtext = require 'lib.gear.shadowtext'
local T = require('lib.moonspeak').translate local T = require('lib.moonspeak').translate

@ -1,7 +1,7 @@
local BASE = (...):gsub('layout', '') local BASE = (...):gsub('layout', '')
local Widget = require BASE..'widget' local Widget = require(BASE..'widget')
local core = require BASE..'core' local core = require(BASE..'core')
local utils = require 'lib.gear' local utils = require 'lib.gear'

@ -1,6 +1,6 @@
local BASE = (...):gsub('rows') local BASE = (...):gsub('rows')
local Layout = require BASE..'layout' local Layout = require(BASE..'layout')
local Rows = setmetatable({}, Layout) local Rows = setmetatable({}, Layout)
Rows.__index = Rows Rows.__index = Rows

@ -1,7 +1,7 @@
local BASE = (...):gsub('slider', '') local BASE = (...):gsub('slider', '')
local Widget = require BASE..'widget' local Widget = require(BASE..'widget')
local core = require BASE..'core' local core = require(BASE..'core')
local Slider = setmetatable({}, Widget) local Slider = setmetatable({}, Widget)
Slider.__index = Slider Slider.__index = Slider

@ -1,6 +1,6 @@
local BASE = (...):gsub('spacer', '') local BASE = (...):gsub('spacer', '')
local Widget = require BASE..'widget' local Widget = require(BASE..'widget')
-- Spacers don't accept focus -- Spacers don't accept focus
local Spacer = setmetatable({ nofocus = true }, Widget) local Spacer = setmetatable({ nofocus = true }, Widget)

@ -1,7 +1,7 @@
local BASE = (...):gsub('ui', '') local BASE = (...):gsub('ui', '')
local Widget = require BASE..'widget' local Widget = require(BASE..'widget')
local Layout = require BASE..'layout' local Layout = require(BASE..'layout')
local gear = require 'lib.gear' local gear = require 'lib.gear'

Loading…
Cancel
Save