Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Module:SMAPI compatibility
(view source)
Revision as of 01:34, 24 October 2018
60 bytes added
,
01:34, 24 October 2018
fix status bugs
Line 8:
Line 8:
local statuses = {
local statuses = {
ok = "ok",
ok = "ok",
−
summary
= "optional",
+
optional
= "optional",
unofficial = "unofficial",
unofficial = "unofficial",
workaround = "workaround",
workaround = "workaround",
Line 96:
Line 96:
-- get background color
-- get background color
local background = '#999'
local background = '#999'
−
if status == statuses.ok or status == statuses.optional then
+
if
compat.
status == statuses.ok or
compat.
status == statuses.optional then
background = '#9F9'
background = '#9F9'
−
elseif status == statuses.workaround or statuses.unofficial then
+
elseif
compat.
status == statuses.workaround or
compat.status ==
statuses.unofficial then
background = '#CF9'
background = '#CF9'
−
elseif status == statuses.broken then
+
elseif
compat.
status == statuses.broken then
background = '#F99'
background = '#F99'
−
elseif status == statuses.obsolete or status == statuses.abandoned then
+
elseif
compat.
status == statuses.obsolete or
compat.
status == statuses.abandoned then
background = '#999'
background = '#999'
end
end
Pathoschild
translators
8,404
edits
Navigation menu
Personal tools
Create account
Log in
Namespaces
Module
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Admin noticeboard
Help Editing
Random page
Official Links
Official Site
Official Forums
Official Merchandise
Discord
Reddit
Tools
Upload file
Special pages
Printable version