mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-08 07:22:25 +02:00
horizontal
This commit is contained in:
parent
795d866da9
commit
b52406e127
1 changed files with 7 additions and 3 deletions
|
@ -53,6 +53,7 @@ selectionManager.addEventListener(function() {
|
|||
var toolIconUrl = HIFI_PUBLIC_BUCKET + "images/tools/";
|
||||
var toolHeight = 50;
|
||||
var toolWidth = 50;
|
||||
var TOOLBAR_MARGIN_Y = 25;
|
||||
|
||||
var DEGREES_TO_RADIANS = Math.PI / 180.0;
|
||||
var RADIANS_TO_DEGREES = 180.0 / Math.PI;
|
||||
|
@ -179,11 +180,14 @@ var toolBar = (function() {
|
|||
newParticleButton
|
||||
|
||||
function initialize() {
|
||||
toolBar = new ToolBar(0, 0, ToolBar.VERTICAL, "highfidelity.edit.toolbar", function(windowDimensions, toolbar) {
|
||||
toolBar = new ToolBar(0, 0, ToolBar.HORIZONTAL, "highfidelity.edit.toolbar", function(windowDimensions, toolbar) {
|
||||
return {
|
||||
x: windowDimensions.x - 8 - toolbar.width,
|
||||
y: (windowDimensions.y - toolbar.height) / 2
|
||||
x: windowDimensions.x / 2,
|
||||
y: windowDimensions.y
|
||||
};
|
||||
}, {
|
||||
x: toolWidth,
|
||||
y: -TOOLBAR_MARGIN_Y - toolHeight
|
||||
});
|
||||
|
||||
activeButton = toolBar.addTool({
|
||||
|
|
Loading…
Reference in a new issue