Buttons positioning

Residual structure fixed.
This commit is contained in:
Andrea Rendine
2016-02-16 02:56:44 +01:00
parent def892953a
commit bf7472ba37
+4 -2
View File
@@ -528,7 +528,7 @@ var Events = {
}, },
text: _('leave') text: _('leave')
}); });
Button.cooldown(leaveBtn.appendTo(btns)); Button.cooldown(leaveBtn.appendTo(exitBtns));
var healBtns = $('<div>').appendTo(btns).attr('id','healButtons'); var healBtns = $('<div>').appendTo(btns).attr('id','healButtons');
Events.createEatMeatButton(0).appendTo(btns); Events.createEatMeatButton(0).appendTo(btns);
@@ -827,13 +827,15 @@ var Events = {
} }
// Draw the buttons // Draw the buttons
var exitBtns = $('<div>').attr('id','exitButtons').appendTo($('#buttons', Events.eventPanel()));
leaveBtn = Events.drawButtons(scene); leaveBtn = Events.drawButtons(scene);
$('<div>').addClass('clear').appendTo(exitBtns);
Events.allowLeave(takeETbtn, leaveBtn); Events.allowLeave(takeETbtn, leaveBtn);
}, },
drawButtons: function(scene) { drawButtons: function(scene) {
var btns = $('#buttons', Events.eventPanel()); var btns = $('#exitButtons', Events.eventPanel());
var btnsList = []; var btnsList = [];
for(var id in scene.buttons) { for(var id in scene.buttons) {
var info = scene.buttons[id]; var info = scene.buttons[id];