mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 14:03:17 +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
|
||||
}, false);
|
||||
|
||||
timerOffset = toolBar.width;
|
||||
timerOffset = toolBar.width + ToolBar.SPACING;
|
||||
spacing = toolBar.addSpacing(0);
|
||||
|
||||
saveIcon = toolBar.addTool({
|
||||
|
@ -116,8 +116,8 @@ function setupTimer() {
|
|||
text: (0.00).toFixed(3),
|
||||
backgroundColor: COLOR_OFF,
|
||||
x: 0, y: 0,
|
||||
width: 200, height: 37,
|
||||
leftMargin: 5, topMargin: 10,
|
||||
width: 200, height: 25,
|
||||
leftMargin: 5, topMargin: 3,
|
||||
alpha: 1.0, backgroundAlpha: 1.0,
|
||||
visible: true
|
||||
});
|
||||
|
@ -149,10 +149,9 @@ function setupTimer() {
|
|||
}
|
||||
|
||||
function onToolbarMove(newX, newY, deltaX, deltaY) {
|
||||
print(newX);
|
||||
Overlays.editOverlay(timer, {
|
||||
x: newX + timerOffset - ToolBar.SPACING,
|
||||
y: newY - ToolBar.SPACING
|
||||
y: newY
|
||||
});
|
||||
|
||||
slider.x = newX - ToolBar.SPACING;
|
||||
|
@ -182,7 +181,7 @@ function updateTimer() {
|
|||
text: text,
|
||||
width: timerWidth
|
||||
});
|
||||
toolBar.changeSpacing(timerWidth, spacing);
|
||||
toolBar.changeSpacing(timerWidth + ToolBar.SPACING, spacing);
|
||||
|
||||
if (Recording.isRecording()) {
|
||||
slider.pos = 1.0;
|
||||
|
|
Loading…
Reference in a new issue