mirror of
https://github.com/yawaflua/Informatis.git
synced 2025-12-10 03:59:26 +02:00
fixed bug, improve some descriptions
This commit is contained in:
@@ -92,6 +92,8 @@ warning = Too many waves to display! Lag may occur.
|
||||
hud.unit = Unit Info
|
||||
hud.wave = Wave Info
|
||||
hud.core = Core Info
|
||||
hud.tile = Tile Info
|
||||
hud.item = Item Info
|
||||
hud.item = Resource Info
|
||||
hud.cancel = Hidden
|
||||
|
||||
#Mod
|
||||
shar-description = Multifunctional information mod that shows various information in game.\n\n[#AE00FB]In-game UI:[] Located at left side, shows unit/build by cursor, wave list, core and resource info.\n\n[#B5FFD9]Unit/Build Info:[] Shows unit/build information by cursor.\n\n[#B5FFD9]Wave Info:[] Shows wave list, including type/amount/boss. can click to view detail info.\n\n[#B5FFD9]Core Info:[] Shows core position/health for each team. can click to change camera.\n\n[#B5FFD9]Tile Info:[] Shows block/floor/ore icon and position on the cursor. if map has wave, shows remaining wave units too.\n\n[#B5FFD9]Resource Info:[] Shows current resources(inc/decrement), unit amount for each team.\n\n\n[#AE00FB]In-game Drawer:[] draws on the screen, drawing location can be each block or unit.\n\n[#B5FFD9]Block Scanner:[] draws turret/wall health and range near the cursor.\n\n[#B5FFD9]Unit Bar:[] draws unit ammo/shield/health under each unit.\n\n[#B5FFD9]Turret Range:[] draws turret range.\n\n[#B5FFD9]Power Link:[] overdraws green power node on blocks which is power-connected with the selected block.\n\n[#B5FFD9]Mass Link:[] draws mass link lines between selected mass driver and another mass driver.
|
||||
|
||||
@@ -94,6 +94,8 @@ warning = 표시될 웨이브 수가 너무 많습니다! 많은 랙이 걸릴
|
||||
hud.unit = 유닛 정보
|
||||
hud.wave = 단계 정보
|
||||
hud.core = 코어 정보
|
||||
hud.tile = 타일 정보
|
||||
hud.item = 자원 정보
|
||||
hud.cancel = 닫음
|
||||
hud.cancel = 닫음
|
||||
|
||||
#Mod
|
||||
shar-description = 여러가지 다양한 정보들을 인게임에서 보여주는 다기능 정보 모드.\n\n[#AE00FB]인게임 UI:[] 좌측 탭에 위치했으며 커서를 통한 유닛/건물이나 단계 목록, 코어, 자원 정보를 알려줍니다.\n\n[#B5FFD9]유닛/건물 정보:[] 커서로 유닛이나 건물의 정보를 표시합니다.\n\n[#B5FFD9]단계 정보:[] 유닛 종류와 수, 보스 유무를 목록에 담아 보여줍니다. 클릭해서 유닛 정보도 열람할 수 있습니다.\n\n[#B5FFD9]코어 정보:[] 각 팀의 코어 위치와 체력을 보여줍니다. 클릭해서 카메라 위치를 변경할 수 있습니다.\n\n[#B5FFD9]타일 정보:[] 커서 위치의 블록/타일/광물 아이콘과 좌표를 보여줍니다. 남은 단계 유닛도 보여줍니다.\n\n[#B5FFD9]자원 정보:[] 각 팀의 현재 자원(증감치)와 유닛 수를 보여줍니다.\n\n\n[#AE00FB]인게임 그리기:[] 각 유닛이나 블록같은 특정 위치에 여러가지 정보를 덧그립니다.\n\n[#B5FFD9]블록 스캐너:[] 커서 주변의 포탑과 벽의 사거리와 체력을 바로 표시합니다.\n\n[#B5FFD9]유닛 바:[] 각 팀의 유닛의 탄약, 방어막, 체력을 바로 보여줍니다.\n\n[#B5FFD9]포탑 사거리:[] 포탑 사거리를 표시합니다.\n\n[#B5FFD9]전선 연결 표시:[] 커서에 있는 블록과 전력으로 연결된 다른 블록들을 초록색 전선으로 이어서 그립니다.\n\n[#B5FFD9]매스 연결 표시:[] 커서에 있는 드라이버와 연결된 다른 드라이버들을 선으로 이어서 그립니다.\n\n
|
||||
@@ -2,10 +2,10 @@
|
||||
"name": "unitinfo",
|
||||
"displayName": "Unit Infomation",
|
||||
"author": "Sharlotte",
|
||||
"description": "The mod displays more information ingame, such as unit/building, wave, core, tile, item/unit total info etc",
|
||||
"version": "1.3",
|
||||
"description": "The mod displays more information in-game, such as unit/building, wave, core, tile, item/unit total info etc",
|
||||
"version": "1.3.3.1",
|
||||
"main": "UnitInfo.core.Main",
|
||||
"minGameVersion": "129.2",
|
||||
"minGameVersion": "130",
|
||||
"dependencies": [],
|
||||
"hidden": true,
|
||||
"java": true
|
||||
|
||||
@@ -3,6 +3,6 @@ pArtifactFilename = UnitInfo.jar
|
||||
# Group of project (should line up with dirs in src/)
|
||||
pGroup = sharlotte
|
||||
# Version of Mindustry to use (if not working, consult jitpack.io)
|
||||
pMindustryVersion = v129.2
|
||||
pMindustryVersion = v130
|
||||
# Minimum API level for d8 (if you don't know what this is, leave it unless d8 yells at you)
|
||||
pMinApi = 26
|
||||
@@ -150,13 +150,7 @@ public class BarInfo {
|
||||
strings.set(2, bundle.format("shar-stat.itemCapacity", floatFormat(b.items.total()), floatFormat(cb.storageCapacity * content.items().count(UnlockableContent::unlockedNow))));
|
||||
numbers.set(2, cb.items.total() / (cb.storageCapacity * content.items().count(UnlockableContent::unlockedNow) * 1f));
|
||||
}
|
||||
else if(target instanceof StorageBlock.StorageBuild sb && !sb.canPickup()){
|
||||
CoreBlock.CoreBuild cb = null /*sb.linkedCore TODO: Replace null with this comment when v130 exists*/;
|
||||
try { // Backwards compatibility
|
||||
cb = Version.build <= 129 ? (CoreBlock.CoreBuild) linkedCore.get(sb): null;
|
||||
} catch (IllegalAccessException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
else if(target instanceof StorageBlock.StorageBuild sb && !sb.canPickup() && sb.linkedCore instanceof CoreBlock.CoreBuild cb){
|
||||
strings.set(2, bundle.format("shar-stat.itemCapacity", floatFormat(sb.items.total()), floatFormat(cb.storageCapacity * content.items().count(UnlockableContent::unlockedNow))));
|
||||
numbers.set(2, sb.items.total() / (cb.storageCapacity * content.items().count(UnlockableContent::unlockedNow) * 1f));
|
||||
}
|
||||
|
||||
@@ -48,6 +48,13 @@ public class Main extends Mod {
|
||||
|
||||
@Override
|
||||
public void init(){
|
||||
Core.app.post(() -> {
|
||||
Mods.ModMeta meta = Vars.mods.locateMod("unitinfo").meta;
|
||||
meta.displayName = "[#B5FFD9]Unit Infomation[]";
|
||||
meta.author = "[#B5FFD9]Sharlotte[lightgray]#0018[][]";
|
||||
meta.description = bundle.get("shar-description");
|
||||
});
|
||||
|
||||
Events.on(ClientLoadEvent.class, e -> {
|
||||
hud = new HudUi();
|
||||
settingAdder.init();
|
||||
|
||||
Reference in New Issue
Block a user