add new sprite

This commit is contained in:
Sharlotte
2021-07-19 16:41:24 +09:00
parent 87de3b9f30
commit d72b9cd208
9 changed files with 12 additions and 3 deletions

View File

@@ -45,6 +45,7 @@ setting.weaponui.name = Display weapon info UI
setting.select.name = Display select Arrow setting.select.name = Display select Arrow
setting.unithealthui.name = Display Unit Bar setting.unithealthui.name = Display Unit Bar
setting.ssim.name = Change Bar style [lightgray](made by ssim)[] setting.ssim.name = Change Bar style [lightgray](made by ssim)[]
setting.shar.name = Change Bar style [lightgray](made by shar)[]
setting.gaycursor.name = Enable mouse trail effect. [lightgray](only for desktop)[] setting.gaycursor.name = Enable mouse trail effect. [lightgray](only for desktop)[]
#Dialog #Dialog

View File

@@ -46,7 +46,8 @@ setting.infoui.name = 정보 UI 표시
setting.weaponui.name = 무기 정보 UI 표시 setting.weaponui.name = 무기 정보 UI 표시
setting.select.name = 선택 화살표 표시 setting.select.name = 선택 화살표 표시
setting.unithealthui.name = 유닛 바 표시 setting.unithealthui.name = 유닛 바 표시
setting.ssim.name = 바 스타일 변경 [lightgray](ssim님이 만듬)[] setting.ssim.name = 바 스타일 변경 [lightgray](ssim 만듬)[]
setting.shar.name = 바 스타일 변경 [lightgray](shar 만듬)[]
setting.gaycursor.name = 마우스 꼬리효과 [lightgray](PC 전용)[] setting.gaycursor.name = 마우스 꼬리효과 [lightgray](PC 전용)[]
#Dialog #Dialog

View File

@@ -13,6 +13,7 @@ shar-stat.power = 可控制数?: {0} / {1}
# Settings # Settings
setting.ssim.name = 更改条形图样式 [lightgray](made by ssim)[] setting.ssim.name = 更改条形图样式 [lightgray](made by ssim)[]
setting.shar.name = 更改条形图样式 [lightgray](made by shar)[]
setting.select.name = 显示选择箭头 setting.select.name = 显示选择箭头
setting.gaycursor.name = 启用鼠标轨迹效果。仅适用于电脑 setting.gaycursor.name = 启用鼠标轨迹效果。仅适用于电脑
setting.wavemax.name = 要显示的波数 setting.wavemax.name = 要显示的波数

Binary file not shown.

Before

Width:  |  Height:  |  Size: 267 B

After

Width:  |  Height:  |  Size: 253 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 254 B

After

Width:  |  Height:  |  Size: 243 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 471 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 412 B

View File

@@ -288,6 +288,7 @@ public class Setting {
addGraphicCheckSetting("select", false); addGraphicCheckSetting("select", false);
addGraphicCheckSetting("unithealthui", true); addGraphicCheckSetting("unithealthui", true);
addGraphicCheckSetting("ssim", false); addGraphicCheckSetting("ssim", false);
addGraphicCheckSetting("shar", false);
addGraphicCheckSetting("gaycursor", false); addGraphicCheckSetting("gaycursor", false);
} }
} }

View File

@@ -58,6 +58,7 @@ public class SBar extends Element{
boolean valid = true; boolean valid = true;
if(fraction == null || !valid) return; if(fraction == null || !valid) return;
boolean ssim = Core.settings.getBool("ssim"); boolean ssim = Core.settings.getBool("ssim");
boolean shar = Core.settings.getBool("shar");
float computed; float computed;
try{ try{
@@ -81,12 +82,16 @@ public class SBar extends Element{
blink = Mathf.lerpDelta(blink, 0f, 0.2f); blink = Mathf.lerpDelta(blink, 0f, 0.2f);
value = Mathf.lerpDelta(value, computed, 0.05f); value = Mathf.lerpDelta(value, computed, 0.05f);
NinePatchDrawable bar = ssim ? (NinePatchDrawable) drawable("unitinfo-barSS", 14, 14, 19, 19) : (NinePatchDrawable) drawable("unitinfo-barS", 10, 10, 9, 9); NinePatchDrawable bar = (NinePatchDrawable) drawable("unitinfo-barS", 10, 10, 9, 9);
if(ssim) bar = (NinePatchDrawable) drawable("unitinfo-barSS", 14, 14, 19, 19);
if(shar) bar = (NinePatchDrawable) drawable("unitinfo-barSSS", 25, 25, 17, 17);
Draw.colorl(0.1f); Draw.colorl(0.1f);
bar.draw(x, y, width, height); bar.draw(x, y, width, height);
Draw.color(color.cpy().mul(Pal.lightishGray), blinkColor, blink); Draw.color(color.cpy().mul(Pal.lightishGray), blinkColor, blink);
NinePatchDrawable top = ssim ? (NinePatchDrawable) drawable("unitinfo-barSS-top", 14, 14, 19, 19) : (NinePatchDrawable) drawable("unitinfo-barS-top", 10, 10, 9, 9); NinePatchDrawable top = (NinePatchDrawable) drawable("unitinfo-barS-top", 10, 10, 9, 9);
if(ssim) top = (NinePatchDrawable) drawable("unitinfo-barSS-top", 14, 14, 19, 19);
if(shar) top = (NinePatchDrawable) drawable("unitinfo-barSSS-top", 25, 25, 17, 17);
float topWidth = width * value; float topWidth = width * value;
if(topWidth > (ssim ? Core.atlas.find("unitinfo-barSS-top").width : Core.atlas.find("unitinfo-barS-top").width)){ if(topWidth > (ssim ? Core.atlas.find("unitinfo-barSS-top").width : Core.atlas.find("unitinfo-barS-top").width)){