From 5cdedf5597b7b89b2c4fc1a34e030dcb77b74d63 Mon Sep 17 00:00:00 2001 From: "marcins78@gmail.com" Date: Sat, 22 Dec 2012 17:34:43 +0000 Subject: [PATCH] Working on deck panel. --- .../src/main/webapp/js/gemp-012/DeckPanel.js | 33 ++++++++++++++++--- 1 file changed, 28 insertions(+), 5 deletions(-) diff --git a/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gemp-012/DeckPanel.js b/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gemp-012/DeckPanel.js index 679614126..b50442db3 100644 --- a/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gemp-012/DeckPanel.js +++ b/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gemp-012/DeckPanel.js @@ -1,10 +1,33 @@ var DeckPanel = Class.extend({ - deckDiv:null, + tabs:null, + + ringBearerDiv:null, + ringDiv: null, + sitesDiv:null, + fpDiv:null, + shadowDiv:null, init:function (deckDiv) { - this.deckDiv = deckDiv; - $(this.deckDiv).tabs(); - + var tabGroup = $(""); + tabGroup.append("
  • Ring-bearer (0)
  • "); + tabGroup.append("
  • Ring (0)
  • "); + tabGroup.append("
  • Sites (0)
  • "); + tabGroup.append("
  • Free People (0)
  • "); + tabGroup.append("
  • Shadow (0)
  • "); + deckDiv.append(tabGroup); + + this.ringBearerDiv = $("
    "); + deckDiv.append(this.ringBearerDiv); + this.ringDiv = $("
    "); + deckDiv.append(this.ringDiv); + this.sitesDiv = $("
    "); + deckDiv.append(this.sitesDiv); + this.fpDiv = $("
    "); + deckDiv.append(this.fpDiv); + this.shadowDiv = $("
    "); + deckDiv.append(this.shadowDiv); + + this.tabs = $(deckDiv).tabs(); }, clearDeck: function() { @@ -12,6 +35,6 @@ var DeckPanel = Class.extend({ }, layoutUi: function(x, y, width, height) { - + this.tabs.css({"left": x, "top": y, "width": width, "height": height}); } }); \ No newline at end of file