Skip to content

Commit

Permalink
Circular module reference.
Browse files Browse the repository at this point in the history
  • Loading branch information
nagolove committed Feb 11, 2021
1 parent c46e965 commit 84386af
Show file tree
Hide file tree
Showing 11 changed files with 1,984 additions and 1,469 deletions.
1 change: 1 addition & 0 deletions cmn.tl
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
require "love"
require "nbtypes"
require "constants"

local i18n = require "i18n"
local gooi = require "gooi.gooi"
local serpent = require "serpent"
Expand Down
2 changes: 1 addition & 1 deletion drawstat.tl
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ function StatisticRender:keyreleased(key: string)
gooi.keyreleased(nil, key)
end

function StatisticRender:mousepressed(_: number, _: number, _: number)
function StatisticRender:mousepressed(_: number, _: number, _: number, _: boolean)
gooi.pressed()
end

Expand Down
3 changes: 3 additions & 0 deletions globals.tl
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,20 @@
require "menu"
require "pviewer"
require "help"
require "tiledbackground"

global menu: Menu
global pviewer: Pviewer
global help: Help
global tiledback: TiledBackround
--global nback: Nback

local function initGlobals()
menu = require "menu".new()
pviewer = require "pviewer".new()
help = require "help".new()
--nback = require "nback".new()
tiledback = require "tiledbackground":new()
end

return {
Expand Down
1 change: 0 additions & 1 deletion init.tl
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ local i18n = require "i18n"
local linesbuf = require "kons".new()
local cam = require "camera".new()
local profiCam = require "camera".new()
local tiledback = require "tiledbackground":new()

local fonts = require "fonts"

Expand Down
Loading

0 comments on commit 84386af

Please sign in to comment.