remove select arrow bc i rly don't think this is necessary

This commit is contained in:
sharlottes
2021-05-28 08:47:50 +09:00
parent ef3d1fe3f3
commit 01440b9c71
5 changed files with 0 additions and 30 deletions

View File

@@ -81,30 +81,6 @@ public class HudUi {
else return unit;
}
public void setDraw(){
Events.run(EventType.Trigger.draw, () -> {
if(!Core.settings.getBool("select")) return;
Unit unit = getUnit();
unitFade = Mathf.lerpDelta(unitFade, Mathf.num(unit != null), 0.1f);
if(unit == null) return;
if(unit2 == null || (unit2.x == 0f && unit2.y == 0f)) unit2 = unit;
Tmp.v1.set(unit2).lerp(unit, Mathf.clamp(Time.delta%60));
if(Tmp.v1.x == unit.x && Tmp.v1.y == unit.y){
hh += Time.delta;
unit2 = unit;
}
for(int i = 0; i < 4; i++){
float rot = i * 90f + 45f + (-Time.time) % 360f;
float length = unit.hitSize * 1.5f + (unitFade * 2.5f);
Draw.color(Tmp.c1.set(Color.orange).lerp(Color.scarlet, Mathf.absin(Time.time, 2f, 1f)).a(settings.getInt("uiopacity") / 100f));
Draw.rect("select-arrow", Tmp.v1.x + Angles.trnsx(rot, length), Tmp.v1.y + Angles.trnsy(rot, length), length / 1.9f, length / 1.9f, rot - 135f);
Draw.reset();
}
});
}
public void addTable(){
mainTable = new Table(table -> {
table.left();

View File

@@ -36,7 +36,6 @@ public class Main extends Mod {
hud.addWaveTable();
hud.addUnitTable();
hud.addTable();
hud.setDraw();
});
Events.on(WorldLoadEvent.class, e -> {

View File

@@ -160,7 +160,6 @@ public class Setting {
addGraphicSetting("panfix");
addGraphicSetting("scan");
addGraphicSetting("range");
addGraphicSetting("select");
addGraphicSetting("infoui");
addGraphicSetting("weaponui");
addGraphicSetting("commandedunitui");
@@ -168,7 +167,6 @@ public class Setting {
addGraphicTypeSetting("wavemax", 100, "@editmaxwave","@invalid", 200);
addGraphicTypeSetting("rangemax", 10, "@editrange","@invalid", 100);
ui.settings.graphics.sliderPref("selectopacity", 50, 0, 100, 5, s -> s + "%");
ui.settings.graphics.sliderPref("baropacity", 100, 0, 100, 5, s -> s + "%");
ui.settings.graphics.sliderPref("uiopacity", 50, 0, 100, 5, s -> s + "%");
ui.settings.graphics.sliderPref("uiscaling", 100, 0, 100, 5, s -> s + "%");
@@ -177,7 +175,6 @@ public class Setting {
Core.settings.defaults("panfix", false);
Core.settings.defaults("scan", true);
Core.settings.defaults("range", false);
Core.settings.defaults("select", true);
Core.settings.defaults("infoui", true);
Core.settings.defaults("weaponui", true);
Core.settings.defaults("commandedunitui", true);