More Settings
This commit is contained in:
1 parent
8c0bf4af80
commit
0ecb2c7ae1
3 files changed
+14
-4
No files matched your search
@@ -189,7 +189,7 @@ function newCircularMenu() {
|
||||
function onFocus() {
|
||||
for (let i = 0; i < menuItems.length; i++) {
|
||||
let menuItem = menuItems[i]
|
||||
menuItem.targetRadius = menuItem.rawRadius * 1.5
|
||||
menuItem.targetRadius = menuItem.rawRadius * 1.5 * canvas.floatingSpace.settings.node.menuItem.radiusPercentage / 100
|
||||
menuItem.isDeployed = true
|
||||
}
|
||||
thisObject.isDeployed = true
|
||||
|
||||
@@ -59,7 +59,7 @@ function newCircularMenuItem() {
|
||||
thisObject.container.frame.position.x = 0
|
||||
thisObject.container.frame.position.y = 0
|
||||
thisObject.container.frame.width = 0
|
||||
thisObject.container.frame.height = 40
|
||||
thisObject.container.frame.height = 0
|
||||
|
||||
let isMouseOver = false
|
||||
|
||||
@@ -222,8 +222,10 @@ function newCircularMenuItem() {
|
||||
if (thisObject.type === 'Icon & Text') {
|
||||
thisObject.container.frame.width = 220 * canvas.floatingSpace.settings.node.menuItem.widthPercentage / 100
|
||||
} else {
|
||||
thisObject.container.frame.width = 50
|
||||
thisObject.container.frame.width = 50 * canvas.floatingSpace.settings.node.menuItem.widthPercentage / 100
|
||||
}
|
||||
|
||||
thisObject.container.frame.height = 40 * canvas.floatingSpace.settings.node.menuItem.heightPercentage / 100
|
||||
}
|
||||
|
||||
function backgroundColorPhysics() {
|
||||
|
||||
@@ -93,7 +93,9 @@ function newFloatingSpace() {
|
||||
radiusPercentage: 100,
|
||||
massPercentage: 100,
|
||||
menuItem: {
|
||||
widthPercentage: 100
|
||||
widthPercentage: 100,
|
||||
heightPercentage: 100,
|
||||
radiusPercentage: 100
|
||||
}
|
||||
},
|
||||
physics: true
|
||||
@@ -509,6 +511,12 @@ function newFloatingSpace() {
|
||||
if (configSettings.node.menuItem.widthPercentage !== undefined) {
|
||||
thisObject.settings.node.menuItem.widthPercentage = configSettings.node.menuItem.widthPercentage
|
||||
}
|
||||
if (configSettings.node.menuItem.heightPercentage !== undefined) {
|
||||
thisObject.settings.node.menuItem.heightPercentage = configSettings.node.menuItem.heightPercentage
|
||||
}
|
||||
if (configSettings.node.menuItem.radiusPercentage !== undefined) {
|
||||
thisObject.settings.node.menuItem.radiusPercentage = configSettings.node.menuItem.radiusPercentage
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user