Advertisement
Guest User

Untitled

a guest
Jan 20th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.76 KB | None | 0 0
  1. javascript:temp1=settingsWidget.pages[3].pages[0];temp1.SCALE=new EQHSlider2(temp1);temp1.SCALE.disableWheel=!0;temp1.SCALE.w=570;temp1.SCALE.setKey("none");temp1.SCALE.defaultValue=.33;temp1.SCALE.haveMarks=!0;temp1.SCALE.setAnchors(250,50*(temp1.widgets.length-1),null,null);temp1.SCALE.setVal=function(a){settingsStorage.set("customScale",bound(a,.33,1))};temp1.SCALE.getVal=function(){return settingsStorage.get("customScale")};temp1.SCALE.innerSet=function(a){this.setVal(a);this.value=a;regUpdate(this)};temp1.SCALE.onUp=function(){this.oldValue=this.value;this.pressPoint=[-1,-1];this.slide=!1;if(this.value>.1){setCustomScale(true,this.value)}};regUpdate(settingsWidget);temp1.paint=function(){ctx.fillStyle=color.eqBg;ctx.fillRect(0,this.offsetY,this.w,this.h);ctx.textAlign="right";var a={shadow:Shadow.main};IS_UI_24&&(ctx.font=font.settings,ctx.fillStyle="hsl(180,30%,78%)",this.SOLO_VOL&&ctx.drawText(lang.SOLO_LEVEL+":",this.SOLO_VOL.x-25,this.SOLO_VOL.y+29,a),ctx.fillStyle="hsl(200,30%,78%)",ctx.drawText(lang.HP_VOLUME.format(1)+":",this.HP_L.x-25,this.HP_L.y+29,a),ctx.fillStyle="hsl(220,30%,78%)",ctx.drawText(lang.HP_VOLUME.format(2)+":",this.HP_R.x-25,this.HP_R.y+29,a),ctx.drawText("UI SCALE:",this.SCALE.x-25,this.SCALE.y+29,a));ctx.font=font.editbox;ctx.fillStyle=color.yellow;this.PEDAL&&ctx.drawText(lang.PEDAL_FUNCTION,this.PEDAL.x+34,this.PEDAL.y-12,a);0<this.maxY&&(ctx.fillStyle="rgba(255,255,255,0.07)",ctx.fillRoundRect(this.w-11,this.offsetY+2,10,this.h-4,4),ctx.fillStyle="rgba(255,255,255,0.4)",a=this.h/(this.h+this.maxY)*(this.h-4),ctx.fillRoundRect(this.w-11,this.offsetY+(2+this.offsetY/this.maxY*(this.h-4-a)|0),10,a,4))};settings.customScale=1;settings.customScaleEnabled=true;settingsStorage.put("customScaleEnabled",true);regUpdate(settingsWidget);resize();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement