mirror of
https://github.com/yawaflua/Informatis.git
synced 2025-12-11 15:56:21 +02:00
update icon lol
This commit is contained in:
@@ -78,7 +78,6 @@ public class CoresItemsDisplay {
|
||||
t.clear();
|
||||
|
||||
t.update(() -> {
|
||||
if(!Core.settings.getBool("infoui")) return;
|
||||
core = team.core();
|
||||
heat += Time.delta;
|
||||
|
||||
@@ -109,7 +108,6 @@ public class CoresItemsDisplay {
|
||||
HandCursorListener listener1 = new HandCursorListener();
|
||||
image.addListener(listener1);
|
||||
image.update(() -> {
|
||||
if(!Core.settings.getBool("infoui")) return;
|
||||
image.color.lerp(!listener1.isOver() ? Color.lightGray : Color.white, Mathf.clamp(0.4f * Time.delta));
|
||||
});
|
||||
}
|
||||
@@ -136,7 +134,6 @@ public class CoresItemsDisplay {
|
||||
});
|
||||
t.row();
|
||||
t.table().update(itemTable -> {
|
||||
if(!Core.settings.getBool("infoui")) return;
|
||||
itemTable.clear();
|
||||
final int[] i = {0};
|
||||
for(Item item : content.items()){
|
||||
@@ -165,7 +162,6 @@ public class CoresItemsDisplay {
|
||||
});
|
||||
t.row();
|
||||
t.table().update(unitTable -> {
|
||||
if(!Core.settings.getBool("infoui")) return;
|
||||
unitTable.clear();
|
||||
final int[] i = {0};
|
||||
for(UnitType unit : content.units()){
|
||||
|
||||
14
src/UnitInfo/ui/SIcons.java
Normal file
14
src/UnitInfo/ui/SIcons.java
Normal file
@@ -0,0 +1,14 @@
|
||||
package UnitInfo.ui;
|
||||
|
||||
import arc.Core;
|
||||
import arc.graphics.g2d.TextureRegion;
|
||||
|
||||
public class SIcons {
|
||||
public static TextureRegion health = Core.atlas.find("unitinfo-health");
|
||||
public static TextureRegion shield = Core.atlas.find("unitinfo-shield");
|
||||
public static TextureRegion item = Core.atlas.find("unitinfo-item");
|
||||
public static TextureRegion liquid = Core.atlas.find("unitinfo-liquid");
|
||||
public static TextureRegion power = Core.atlas.find("unitinfo-power");
|
||||
public static TextureRegion ammo = Core.atlas.find("unitinfo-ammo");
|
||||
public static TextureRegion reload = Core.atlas.find("unitinfo-reload");
|
||||
}
|
||||
Reference in New Issue
Block a user