mirror of
https://github.com/doublespeakgames/adarkroom.git
synced 2026-06-12 07:27:12 +08:00
Buttons positioning
Residual structure fixed.
This commit is contained in:
+4
-2
@@ -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];
|
||||||
|
|||||||
Reference in New Issue
Block a user