No target lines fixed
This commit is contained in:
1 parent
bf4edec2e0
commit
82bc086e92
3 files changed
+4
-33
No files matched your search
@@ -78,11 +78,11 @@ function newCircularProgressBar () {
|
||||
}
|
||||
}
|
||||
|
||||
function drawBackground (pFloatingObject) {
|
||||
function drawForeground (pFloatingObject) {
|
||||
|
||||
}
|
||||
|
||||
function drawForeground (pFloatingObject) {
|
||||
function drawBackground (pFloatingObject) {
|
||||
const VISIBLE_RADIUS = thisObject.container.frame.radius * 2
|
||||
|
||||
let visiblePosition = {
|
||||
|
||||
@@ -288,18 +288,6 @@ function newFloatingLayer () {
|
||||
}
|
||||
|
||||
switch (floatingObject.type) {
|
||||
|
||||
case 'Profile Ball': {
|
||||
payload.targetPosition = floatingObject.payload.profile.position
|
||||
payload.visible = floatingObject.payload.profile.visible
|
||||
break
|
||||
}
|
||||
case 'Note': {
|
||||
payload.targetPosition = floatingObject.payload.notes[floatingObject.payloadNoteIndex].position
|
||||
payload.visible = floatingObject.payload.notes[floatingObject.payloadNoteIndex].visible
|
||||
|
||||
break
|
||||
}
|
||||
case 'UI Object': {
|
||||
payload.targetPosition = floatingObject.payload.targetPosition
|
||||
payload.visible = floatingObject.payload.visible
|
||||
@@ -559,15 +547,6 @@ function newFloatingLayer () {
|
||||
}
|
||||
|
||||
switch (floatingObject2.type) {
|
||||
|
||||
case 'Profile Ball': {
|
||||
payload.targetPosition = floatingObject2.payload.profile.position
|
||||
break
|
||||
}
|
||||
case 'Note': {
|
||||
payload.targetPosition = floatingObject2.payload.notes[floatingObject2.payloadNoteIndex].position
|
||||
break
|
||||
}
|
||||
case 'UI Object': {
|
||||
payload.targetPosition = floatingObject2.payload.targetPosition
|
||||
break
|
||||
|
||||
@@ -868,8 +868,8 @@ function newUiObject () {
|
||||
if (thisObject.payload.chainParent === undefined) { return }
|
||||
|
||||
let targetPoint = {
|
||||
x: thisObject.payload.targetPosition.x,
|
||||
y: thisObject.payload.targetPosition.y
|
||||
x: thisObject.payload.chainParent.payload.floatingObject.container.frame.position.x,
|
||||
y: thisObject.payload.chainParent.payload.floatingObject.container.frame.position.y
|
||||
}
|
||||
|
||||
let position = {
|
||||
@@ -881,8 +881,6 @@ function newUiObject () {
|
||||
position = thisObject.container.frame.frameThisPoint(position)
|
||||
|
||||
if (thisObject.container.frame.radius > 1) {
|
||||
/* Target Line */
|
||||
|
||||
let LINE_STYLE = UI_COLOR.TITANIUM_YELLOW
|
||||
if (thisObject.payload.floatingObject.angleToParent !== ANGLE_TO_PARENT.NOT_FIXED) {
|
||||
LINE_STYLE = UI_COLOR.GOLDEN_ORANGE
|
||||
@@ -911,8 +909,6 @@ function newUiObject () {
|
||||
}
|
||||
|
||||
if (thisObject.container.frame.radius > 0.5) {
|
||||
/* Target Spot */
|
||||
|
||||
let radius = 1
|
||||
|
||||
browserCanvasContext.beginPath()
|
||||
@@ -945,8 +941,6 @@ function newUiObject () {
|
||||
let LINE_STYLE = UI_COLOR.GREY
|
||||
|
||||
if (thisObject.container.frame.radius > 1) {
|
||||
/* Target Line */
|
||||
|
||||
browserCanvasContext.beginPath()
|
||||
browserCanvasContext.moveTo(position.x, position.y)
|
||||
browserCanvasContext.lineTo(targetPoint.x, targetPoint.y)
|
||||
@@ -967,8 +961,6 @@ function newUiObject () {
|
||||
}
|
||||
|
||||
if (thisObject.container.frame.radius > 0.5) {
|
||||
/* Target Spot */
|
||||
|
||||
let radius = 1
|
||||
|
||||
browserCanvasContext.beginPath()
|
||||
|
||||
Reference in new issue
Block a user