mirror of
https://github.com/doublespeakgames/adarkroom.git
synced 2026-05-28 00:01:54 +08:00
- scroll path when outfit gets long
This commit is contained in:
@@ -57,3 +57,12 @@ div.perkRow {
|
|||||||
div.perkRow .row_key {
|
div.perkRow .row_key {
|
||||||
float: none;
|
float: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#pathScroller {
|
||||||
|
padding-top: 10px;
|
||||||
|
position: relative;
|
||||||
|
top: -10px;
|
||||||
|
max-height: 660px;
|
||||||
|
width: 475px;
|
||||||
|
overflow-y: auto;
|
||||||
|
}
|
||||||
+4
-2
@@ -32,9 +32,11 @@ var Path = {
|
|||||||
this.panel = $('<div>').attr('id', "pathPanel")
|
this.panel = $('<div>').attr('id', "pathPanel")
|
||||||
.addClass('location')
|
.addClass('location')
|
||||||
.appendTo('div#locationSlider');
|
.appendTo('div#locationSlider');
|
||||||
|
|
||||||
|
this.scroller = $('<div>').attr('id', 'pathScroller').appendTo(this.panel);
|
||||||
|
|
||||||
// Add the outfitting area
|
// Add the outfitting area
|
||||||
var outfitting = $('<div>').attr({'id': 'outfitting', 'data-legend': _('supplies:')}).appendTo(this.panel);
|
var outfitting = $('<div>').attr({'id': 'outfitting', 'data-legend': _('supplies:')}).appendTo(this.scroller);
|
||||||
$('<div>').attr('id', 'bagspace').appendTo(outfitting);
|
$('<div>').attr('id', 'bagspace').appendTo(outfitting);
|
||||||
|
|
||||||
// Add the embark button
|
// Add the embark button
|
||||||
@@ -44,7 +46,7 @@ var Path = {
|
|||||||
click: Path.embark,
|
click: Path.embark,
|
||||||
width: '80px',
|
width: '80px',
|
||||||
cooldown: World.DEATH_COOLDOWN
|
cooldown: World.DEATH_COOLDOWN
|
||||||
}).appendTo(this.panel);
|
}).appendTo(this.scroller);
|
||||||
|
|
||||||
Path.outfit = $SM.get('outfit');
|
Path.outfit = $SM.get('outfit');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user