aboutsummaryrefslogtreecommitdiff
path: root/features/dungeonMap/index.js
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-04-13 19:31:35 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-04-13 19:31:35 +0800
commit957eed606234a4bc5e1b847580000a583ab9ee5b (patch)
tree52dc09298d0506e05f76ab82a3e1fea3bbcacf69 /features/dungeonMap/index.js
parent68129573d5412314b1fecf5b3e576e68bc150ce2 (diff)
downloadSoopyV2-957eed606234a4bc5e1b847580000a583ab9ee5b.tar.gz
SoopyV2-957eed606234a4bc5e1b847580000a583ab9ee5b.tar.bz2
SoopyV2-957eed606234a4bc5e1b847580000a583ab9ee5b.zip
-dungeon map border and background
-guild event lb command (sbg event only)
Diffstat (limited to 'features/dungeonMap/index.js')
-rw-r--r--features/dungeonMap/index.js14
1 files changed, 11 insertions, 3 deletions
diff --git a/features/dungeonMap/index.js b/features/dungeonMap/index.js
index a76f665..f8abb4e 100644
--- a/features/dungeonMap/index.js
+++ b/features/dungeonMap/index.js
@@ -32,7 +32,7 @@ class DungeonMap extends Feature {
this.renderMap = new ToggleSetting("Render Map", "Toggles Rendering the map on the hud", false, "dmap_render", this)
this.mapLocation = new ImageLocationSetting("Map Location", "Sets the location of the map on the hud","dmap_location", this, [10,10, 1], new Image(javax.imageio.ImageIO.read(new java.io.File("./config/ChatTriggers/modules/SoopyV2/features/dungeonMap/map.png"))),100,100)
- this.mapBackground = new ToggleSetting("Map Background", "Puts a white background begind the map", false, "dmap_background", this)
+ this.mapBackground = new ToggleSetting("Map Background And Border", "Puts a grey background behind the map + Black border", false, "dmap_background", this)
this.brBox = new ToggleSetting("Box around doors in br", "In map category because it uses map to find location (no esp)", true, "dmap_door", this)
this.brBoxDisableWhenBloodOpened = new ToggleSetting("Disable blood rush box when blood open", "", true, "dmap_door_disable", this).requires(this.brBox)
this.spiritLeapOverlay = new ToggleSetting("Spirit leap overlay", "Cool overlay for the spirit leap menu", true, "spirit_leap_overlay", this)
@@ -177,6 +177,8 @@ class DungeonMap extends Feature {
drawMap(x, y, size, scale){
if(this.mapImage){
+ if(this.mapBackground.getValue()) Renderer.drawRect(Renderer.color(0,0,0,100), x, y, size, size)
+
if(this.boringMap){
this.mapImage.draw(x, y, size, size)
return
@@ -224,6 +226,12 @@ class DungeonMap extends Feature {
this.drawPlayersLocations(x+xOff, y+yOff, size, scale)
renderLibs.stopScizzor()
+
+
+ if(this.mapBackground.getValue()) Renderer.drawRect(Renderer.color(0,0,0), x, y, size, 2)
+ if(this.mapBackground.getValue()) Renderer.drawRect(Renderer.color(0,0,0), x, y, 2, size)
+ if(this.mapBackground.getValue()) Renderer.drawRect(Renderer.color(0,0,0), x+size-2, y, 2, size)
+ if(this.mapBackground.getValue()) Renderer.drawRect(Renderer.color(0,0,0), x, y+size-2, size, 2)
}
}
@@ -372,9 +380,9 @@ class DungeonMap extends Feature {
let graphics = this.renderImage.getGraphics()
- if(!this.mapBackground.getValue())graphics.setComposite(AlphaComposite.Clear);
+ graphics.setComposite(AlphaComposite.Clear);
graphics.fillRect(0,0,this.IMAGE_SIZE,this.IMAGE_SIZE)
- if(!this.mapBackground.getValue())graphics.setComposite(AlphaComposite.SrcOver);
+ graphics.setComposite(AlphaComposite.SrcOver);
let mapData
try {