mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 03:04:40 +02:00
- debug message removal (oops)
- smaller timer textbox, allows you to grab around the edges and still drag the toolbar
This commit is contained in:
parent
b21bd3afa9
commit
097db9a7f9
1 changed files with 5 additions and 6 deletions
|
@ -90,7 +90,7 @@ function setupToolBar() {
|
||||||
visible: true
|
visible: true
|
||||||
}, false);
|
}, false);
|
||||||
|
|
||||||
timerOffset = toolBar.width;
|
timerOffset = toolBar.width + ToolBar.SPACING;
|
||||||
spacing = toolBar.addSpacing(0);
|
spacing = toolBar.addSpacing(0);
|
||||||
|
|
||||||
saveIcon = toolBar.addTool({
|
saveIcon = toolBar.addTool({
|
||||||
|
@ -116,8 +116,8 @@ function setupTimer() {
|
||||||
text: (0.00).toFixed(3),
|
text: (0.00).toFixed(3),
|
||||||
backgroundColor: COLOR_OFF,
|
backgroundColor: COLOR_OFF,
|
||||||
x: 0, y: 0,
|
x: 0, y: 0,
|
||||||
width: 200, height: 37,
|
width: 200, height: 25,
|
||||||
leftMargin: 5, topMargin: 10,
|
leftMargin: 5, topMargin: 3,
|
||||||
alpha: 1.0, backgroundAlpha: 1.0,
|
alpha: 1.0, backgroundAlpha: 1.0,
|
||||||
visible: true
|
visible: true
|
||||||
});
|
});
|
||||||
|
@ -149,10 +149,9 @@ function setupTimer() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function onToolbarMove(newX, newY, deltaX, deltaY) {
|
function onToolbarMove(newX, newY, deltaX, deltaY) {
|
||||||
print(newX);
|
|
||||||
Overlays.editOverlay(timer, {
|
Overlays.editOverlay(timer, {
|
||||||
x: newX + timerOffset - ToolBar.SPACING,
|
x: newX + timerOffset - ToolBar.SPACING,
|
||||||
y: newY - ToolBar.SPACING
|
y: newY
|
||||||
});
|
});
|
||||||
|
|
||||||
slider.x = newX - ToolBar.SPACING;
|
slider.x = newX - ToolBar.SPACING;
|
||||||
|
@ -182,7 +181,7 @@ function updateTimer() {
|
||||||
text: text,
|
text: text,
|
||||||
width: timerWidth
|
width: timerWidth
|
||||||
});
|
});
|
||||||
toolBar.changeSpacing(timerWidth, spacing);
|
toolBar.changeSpacing(timerWidth + ToolBar.SPACING, spacing);
|
||||||
|
|
||||||
if (Recording.isRecording()) {
|
if (Recording.isRecording()) {
|
||||||
slider.pos = 1.0;
|
slider.pos = 1.0;
|
||||||
|
|
Loading…
Reference in a new issue