This commit is contained in:
ThisIsALegitUsername 2023-03-04 19:17:46 +00:00
parent 3cc9aa1726
commit fb7e6cf827
8 changed files with 60372 additions and 60332 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

3
pp.sh
View File

@ -1 +1,2 @@
cp javascript/classes.js javascript/badwifi
./gradlew teavmc
cp javascript/classes.js javascript/badwifi/

View File

@ -1,11 +1,17 @@
#!/bin/sh
cd javascript
mv assets.epk as.epk
cd javascript/badwifi
rm EaglercraftX_1.8_Offline_en_US.html
rm EaglercraftX_1.8_Offline_International.html
rm Resent_3.6_patch__1.8_US.html
rm Resent_3.6_patch_1.8_International.html
cp assets.epk ../assets.epk
cd ../../
./MakeOfflineDownload.sh
cd javascript/badwifi
mv ../EaglercraftX_1.8_Offline_en_US.html ./Resent_3.6_patch__1.8_US.html
mv ../EaglercraftX_1.8_Offline_International.html ./Resent_3.6_patch_1.8_International.html
cd ../
rm assets.epk
mv as.epk assets.epk

View File

@ -7,12 +7,14 @@ public class NumberSetting extends Setting {
public float value;
public float increment;
public float decrement;
public float initValue;
public float min;
public float max;
public NumberSetting(String name, String description, float value, float min, float max, float increment, float decrement) {
super(name, description);
this.value = value;
this.initValue = value;
this.increment = increment;
this.decrement = decrement;
this.min = min;
@ -39,6 +41,10 @@ public class NumberSetting extends Setting {
return value;
}
public float getInitialValue(){
return initValue;
}
public float getIncrement() {
return increment;
}

View File

@ -12,7 +12,7 @@ public class ClickGui extends Mod{
public BooleanSetting scroll = new BooleanSetting("Smooth scroll", "", false);
public ModeSetting guiTheme = new ModeSetting("Gui theme", "New", "New", "Classic revised");
public NumberSetting test = new NumberSetting("Test, ignore!", "", 50, 1, 255, 5, 5);
public NumberSetting test = new NumberSetting("Test, ignore!", "", 50, 1, 200, 5, 5);
public ClickGui(){
addSetting(scroll, guiTheme, test);

View File

@ -234,8 +234,16 @@ public class ClickGUI extends GuiScreen {
var += 3;
}
NumberSetting ss = ((NumberSetting)s);
if(s instanceof NumberSetting) {
fr.drawStringWithShadow(s.name + ": sof " + sliderOffset + ", val: " + ((NumberSetting)s).getValue(), this.x+24, height+41+var, -1);
drawRect(width-150, height+43+var, width-45, height+47+var, -1);
RenderUtils.drawRoundedRect(width-150+sliderOffset, height+41+var, width-141+sliderOffset, height+50+var, 4, Color.RED.getRGB());
if(dragging) {
sliderOffset = mouseX-(width-150);
ss.setValue(sliderOffset*(ss.max/100));
}
if(sliderOffset < 0) {
@ -243,15 +251,10 @@ public class ClickGUI extends GuiScreen {
sliderOffset = 0;
}
if(width-150+sliderOffset > width-45) {
if(width-141+sliderOffset > width-45) {
dragging = false;
sliderOffset = 100;
}
if(s instanceof NumberSetting) {
fr.drawStringWithShadow(s.name, this.x+24, height+41+var, -1);
drawRect(width-150, height+43+var, width-45, height+47+var, -1);
RenderUtils.drawRoundedRect(width-150+sliderOffset, height+41+var, width-141+sliderOffset, height+50+var, 4, Color.RED.getRGB());
}
if (s instanceof BooleanSetting) {