aboutsummaryrefslogtreecommitdiff
path: root/features/settings/settingThings
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-01-29 06:56:21 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-01-29 06:56:21 +0800
commit42b7d4ff248e3832c792d37034fad076861dac28 (patch)
tree62d9bcc1e3525d3721d606a0960521c8e5fee2a5 /features/settings/settingThings
parentdc4a2cb096b3fd7ddb7d133853f6a5436026b2ca (diff)
downloadSoopyV2-42b7d4ff248e3832c792d37034fad076861dac28.tar.gz
SoopyV2-42b7d4ff248e3832c792d37034fad076861dac28.tar.bz2
SoopyV2-42b7d4ff248e3832c792d37034fad076861dac28.zip
blaze solver + make spotify box go to width of the max scroll + normalise text on spotify overlay so it doesent render an invalid caracter when the text has a dialect or something
Diffstat (limited to 'features/settings/settingThings')
-rw-r--r--features/settings/settingThings/location.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/features/settings/settingThings/location.js b/features/settings/settingThings/location.js
index 9655764..b158e03 100644
--- a/features/settings/settingThings/location.js
+++ b/features/settings/settingThings/location.js
@@ -166,7 +166,7 @@ class LocationSetting extends ButtonSetting {
clicked(mouseX, mouseY){
let width = this.getWidth()
- let height = this.parent.getHeight()
+ let height = this.parent.getHeight(true)
let locations = [[this.x, this.y], [this.x+width*this.scale, this.y], [this.x, this.y+height*this.scale], [this.x+width*this.scale, this.y+height*this.scale]]
@@ -195,12 +195,12 @@ class LocationSetting extends ButtonSetting {
}
getWidth(){
- return this.parent.getWidth()
+ return this.parent.getWidth(true)
}
updateLocation(mouseX, mouseY, drawCollidingBox){
let width = this.getWidth()
- let height = this.parent.getHeight()
+ let height = this.parent.getHeight(true)
if(this.dragging){
this.x = mouseX+this.dragOffset[0]
@@ -283,7 +283,7 @@ class LocationSetting extends ButtonSetting {
}
let width = this.getWidth()
- let height = this.parent.getHeight()
+ let height = this.parent.getHeight(true)
this.updateLocation(mouseX, mouseY, true)
@@ -313,7 +313,7 @@ class LocationSetting extends ButtonSetting {
renderBox(drawHandles){
let width = this.getWidth()
- let height = this.parent.getHeight()
+ let height = this.parent.getHeight(true)
Renderer.drawRect(Renderer.color(255, 255, 255), this.x, this.y, width*this.scale, 1)
Renderer.drawRect(Renderer.color(255, 255, 255), this.x, this.y, 1, height*this.scale)