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'):addClass('skill-tree-container')
     local html = mw.html.create('div'):css({
    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
         local nodeDiv = html:tag('div')
         local nodeDiv = html:tag('div')
            :addClass('skill-tree-node')
             :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()
393

edits