Skip to content
Snippets Groups Projects
Commit e3a40e36 authored by DarkGod's avatar DarkGod
Browse files

reverse colors match

parent f8902573
No related branches found
No related tags found
No related merge requests found
......@@ -23,6 +23,8 @@
colors = {}
colors_simple = {}
r_colors = {}
r_colors_simple = {}
--- Define Color
-- @string name
......@@ -35,6 +37,8 @@ colors_simple = {}
function defineColor(name, r, g, b, br, bg, bb)
colors[name] = {r=r, g=g, b=b, br=br, bg=bg, bb=bb}
colors_simple[name] = {r, g, b}
r_colors[colors[name]] = name
r_colors_simple[colors_simple[name]] = name
end
--- color -> foreground table
......
......@@ -48,6 +48,7 @@ function _M:use(item)
game:unregisterDialog(self)
if item.dialog then
package.loaded["mod.dialogs.debug."..item.dialog] = nil
local d = require("mod.dialogs.debug."..item.dialog).new(item)
game:registerDialog(d)
return
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment