SkinMgr.renderTreeLeafs (skinset)
render the list of skins of a branch

  • Parameter Object:
    array containing the skins
  • Parameter String:
    key of the current branch
Sourcecode in SkinMgr/renderFunctions.js:
1:   function renderTreeLeafs(skinset) {
2:      res.push();
3:      for (var i in skinset.skins) {
4:         var sp = {key: skinset.skins[i], skinset: skinset.key};
5:         var splitKey = sp.key.split(".");
6:         var s = this.getSkin(splitKey[0], splitKey[1]);
7:         if (s)
8:            sp.status = s.renderSkinAsString("status");
9:         var desc = this.getSkinDescription("skin", sp.key);
10:        sp.title = desc[0];
11:        sp.text = desc[1];
12:        this.renderSkin("treeleaf", sp);
13:     }
14:     return res.pop();
15:  }