diff --git a/UI/index.html b/UI/index.html index 8e9487d..e13acf8 100644 --- a/UI/index.html +++ b/UI/index.html @@ -45,6 +45,9 @@ function updateEvent() { buttonAdd("#Deck_"+deck.name,null,"Draw", function () { window.gameSession.send('{"action":"draw","deck":"'+deckID+'","hand":"'+"default"+'"}'); // Will need to be updated when I figure out selection }, "deck_button draw","div"); + buttonAdd("#Deck_"+deck.name,null,"X", function () { + window.gameSession.send('{"action":"del","type":"deck","id":"'+deckID+'"}'); + }, "deck_button delete", "div"); }); buttonAdd("#decks",null,"+",function () { popupDialog("addDeck","Please name new deck",true, inputDialog,{"inputType":"text"},function (newDeckName) { @@ -67,13 +70,18 @@ function updateEvent() { myHands.forEach(function (handID) { var hand = window.gameState.hands[handID]; window.UI.display[handID] = elementPlace("#hands","Hand_"+hand.name,"hand","li"); - window.UI.display[handID].innerText = hand.name; + window.UI.display[handID].controls = elementPlace("#Hand_"+hand.name,null,"controls","div"); + window.UI.display[handID].controls.innerHTML = "