функция:
package dev.ctrax123.functions.impl.visual;
import dev.ctrax123.functions.api.Category;
import dev.ctrax123.functions.api.Function;
import dev.ctrax123.functions.api.FunctionRegister;
import dev.ctrax123.functions.settings.impl.BooleanSetting;
@FunctionRegister(name = "ClickGui", type = Category.VISUAL)
public class ClickGui extends Function {
private static ClickGui instance;
private final BooleanSetting glow = new BooleanSetting("Размитые", true);
public ClickGui() {
toggle();
instance = this;
addSettings(glow);
}
public boolean getGlow() {
return glow.get();
}
public static ClickGui getInstance() {
return instance;
}
}
код в dropdown:
boolean glow = ClickGui.getInstance().getGlow();
if (glow) {
KawaseBlur.blur.updateBlur(2, 3);
KawaseBlur.blur.BLURRED.draw();
}
{
}
package dev.ctrax123.functions.impl.visual;
import dev.ctrax123.functions.api.Category;
import dev.ctrax123.functions.api.Function;
import dev.ctrax123.functions.api.FunctionRegister;
import dev.ctrax123.functions.settings.impl.BooleanSetting;
@FunctionRegister(name = "ClickGui", type = Category.VISUAL)
public class ClickGui extends Function {
private static ClickGui instance;
private final BooleanSetting glow = new BooleanSetting("Размитые", true);
public ClickGui() {
toggle();
instance = this;
addSettings(glow);
}
public boolean getGlow() {
return glow.get();
}
public static ClickGui getInstance() {
return instance;
}
}
код в dropdown:
boolean glow = ClickGui.getInstance().getGlow();
if (glow) {
KawaseBlur.blur.updateBlur(2, 3);
KawaseBlur.blur.BLURRED.draw();
}
{
}