me when
This commit is contained in:
parent
3cc9aa1726
commit
fb7e6cf827
File diff suppressed because it is too large
Load Diff
60326
javascript/classes.js
60326
javascript/classes.js
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
3
pp.sh
3
pp.sh
|
@ -1 +1,2 @@
|
|||
cp javascript/classes.js javascript/badwifi
|
||||
./gradlew teavmc
|
||||
cp javascript/classes.js javascript/badwifi/
|
|
@ -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
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -234,24 +234,27 @@ public class ClickGUI extends GuiScreen {
|
|||
var += 3;
|
||||
}
|
||||
|
||||
if(dragging) {
|
||||
sliderOffset = mouseX-(width-150);
|
||||
}
|
||||
|
||||
if(sliderOffset < 0) {
|
||||
dragging = false;
|
||||
sliderOffset = 0;
|
||||
}
|
||||
|
||||
if(width-150+sliderOffset > width-45) {
|
||||
dragging = false;
|
||||
sliderOffset = 100;
|
||||
}
|
||||
NumberSetting ss = ((NumberSetting)s);
|
||||
|
||||
if(s instanceof NumberSetting) {
|
||||
fr.drawStringWithShadow(s.name, this.x+24, height+41+var, -1);
|
||||
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) {
|
||||
dragging = false;
|
||||
sliderOffset = 0;
|
||||
}
|
||||
|
||||
if(width-141+sliderOffset > width-45) {
|
||||
dragging = false;
|
||||
sliderOffset = 100;
|
||||
}
|
||||
}
|
||||
|
||||
if (s instanceof BooleanSetting) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user