[*] The great require parens fixup©

This commit is contained in:
Lorenzo Cogotti 2022-08-16 00:23:52 +02:00
parent 18fdaee15d
commit acf9403291
11 changed files with 19 additions and 19 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

4
ui.lua
View File

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