Module:GameInputs
Jump to navigation
Jump to search
Documentation for this module may be created at Module:GameInputs/doc
local p = {}
local inputStyles = {
normal = '<font face="Roboto Slab" color="#b566ff" style="border:1px solid #b566ff; font-size:12px; border-radius: 5px; padding-left:1px; padding-right:1px;">NORMAL</font>',
stand = '<font face="Roboto Slab" color="#91b704" style="border:1px solid #91b704; font-size:12px; border-radius: 5px; padding-left:1px; padding-right:1px;">STAND</font>',
chargeable = '<font face="Roboto Slab" color="#8d7cff" style="border:1px solid #8d7cff; font-size:12px; border-radius: 5px; padding-left:1px; padding-right:1px;">CHARGEABLE</font>',
["on ground"] = '<font face="Roboto Slab" color="#ff9966" style="border:1px solid #ff9966; font-size:12px; border-radius: 5px; padding-left:1px; padding-right:1px;">ON GROUND</font>',
["when downed"] = '<font face="Roboto Slab" color="#EA5AE8" style="border:1px solid #EA5AE8; font-size:12px; border-radius: 5px; padding-left:1px; padding-right:1px;">WHEN DOWNED</font>',
["in air ok"] = '<font face="Roboto Slab" color="#64bbd5" style="border:1px solid #64bbd5; font-size:12px; border-radius: 5px; padding-left:1px; padding-right:1px;">IN AIR OK</font>',
["ex skill"] = '<font face="Roboto Slab" color="#af4748" style="border:1px solid #af4748; font-size:12px; border-radius: 5px; padding-left:1px; padding-right:1px;">EX SKILL</font>',
trap = '<font face="Roboto Slab" color="#c378ed" style="border:1px solid #c378ed; font-size:12px; border-radius: 5px; padding-left:1px; padding-right:1px;">TRAP</font>',
["switch mode"] = '<font face="Roboto Slab" color="#b9691e" style="border:1px solid #b9691e; font-size:12px; border-radius: 5px; padding-left:1px; padding-right:1px;">SWITCH MODE</font>',
ptnnormal = '<font face="Roboto Slab" color="white" style="background-color:#898d96; font-size:12px; padding: 3px;">Normal ATK</font>',
ptnultimate = '<font face="Roboto Slab" color="white" style="background-color:#a12932; font-size:12px; padding: 3px;">Ultimate</font>',
ptnpassive = '<font face="Roboto Slab" color="white" style="background-color:#4e699e; font-size:12px; padding: 3px;">Passive</font>',
}
function p.renderInputs(frame)
local args = frame.args
local output = {}
for _, value in ipairs(args) do
if inputStyles[value] then
table.insert(output, '<span style="display:inline-block; margin:0 5px;">' .. inputStyles[value] .. '</span>')
end
end
return table.concat(output, " ")
end
return p