Anonymous

Module:Sandbox/SkillTree: Difference between revisions

From Melvor Idle
no edit summary
No edit summary
No edit summary
Line 53: Line 53:
     end
     end


     local html = mw.html.create('div'):css({
     local html = mw.html.create('div')
    background = '#333',
    color = '#fff',
    padding = '10px',
    ['border-radius'] = '5px'
}):wikitext('This is a skill tree node')
 


     for _, node in ipairs(skillNodes) do
     for _, node in ipairs(skillNodes) do
Line 65: Line 59:
             :tag('h4'):wikitext(node.name):done()
             :tag('h4'):wikitext(node.name):done()
             :tag('p'):wikitext('Points: ' .. node.costs.points):done()
             :tag('p'):wikitext('Points: ' .. node.costs.points):done()
            :css({
    background = '#333',
    color = '#fff',
    padding = '10px',
    ['border-radius'] = '5px'
})


         if node.modifiers then
         if node.modifiers then
393

edits