mirror of
https://github.com/overte-org/overte.git
synced 2025-04-16 18:53:37 +02:00
Display directory button just above edit toobar
This commit is contained in:
parent
f51feca37d
commit
9e3ce344fb
1 changed files with 2 additions and 1 deletions
|
@ -21,12 +21,13 @@ var directory = (function () {
|
|||
BUTTON_ALPHA = 0.9,
|
||||
BUTTON_MARGIN = 8,
|
||||
directoryButton,
|
||||
EDIT_TOOLBAR_BUTTONS = 10, // Number of buttons in edit.js toolbar
|
||||
viewport;
|
||||
|
||||
function updateButtonPosition() {
|
||||
Overlays.editOverlay(directoryButton, {
|
||||
x: viewport.x - BUTTON_WIDTH - BUTTON_MARGIN,
|
||||
y: BUTTON_MARGIN
|
||||
y: (viewport.y - (EDIT_TOOLBAR_BUTTONS + 1) * (BUTTON_HEIGHT + BUTTON_MARGIN) - BUTTON_MARGIN) / 2 - 1
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue