Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions mod.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: "caster-ui-java"
displayName: "Caster User interface"
description: "Aming to make the client a bit better for casting! with ease of use, simplicity and elegance in mind \n \n Java rewrite of 'JiroCab/Caster-Ui' which was based off 'Ferlern/extended-UI' \nconflicts with 'Ferlern/extended-UI' \n\nPLEASE DON'T THIS FOR AN ADVANTAGE IN PVP THANKS"
author: "RushieWashie, WMF Industries"
subtitle: "v5.2 (v7) Helping you cast games~"
version: 5.2
subtitle: "v5.3 (v7) Helping you cast games~"
version: 5.3

minGameVersion: 140.4
hidden: true
Expand Down
4 changes: 2 additions & 2 deletions src/casterui/io/ui/CuiFragment.java
Original file line number Diff line number Diff line change
Expand Up @@ -384,9 +384,9 @@ public void buildTeamItemTable() {
new Label((!settings.getBool("cui-TeamItemsShortenItems") ? amount : UI.formatAmount(amount)) + " ")
).fontScale(teamItemsFontSize).size(iconSizes * teamItemsIconSize).center();
}else {
if(iconPlace == 0)sub.label(() -> (!settings.getBool("cui-TeamItemsShortenItems") ? amount : UI.formatAmount(amount)) + " ").fontScale(teamItemsFontSize);
sub.image(item.uiIcon).size(iconSizes * teamItemsIconSize).left();
if(iconPlace == 2) sub.label(() -> (!settings.getBool("cui-TeamItemsShortenItems") ? amount : UI.formatAmount(amount)) + " ").fontScale(teamItemsFontSize);
sub.image(item.uiIcon).size(iconSizes * teamItemsIconSize).left();
if(iconPlace == 0)sub.label(() -> (!settings.getBool("cui-TeamItemsShortenItems") ? amount : UI.formatAmount(amount)) + " ").fontScale(teamItemsFontSize);
}

if (itemTypes[0] >= teamItemsMax) {
Expand Down
4 changes: 2 additions & 2 deletions src/casterui/io/ui/dialog/CuiSettingsDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public void counterCategory(SettingsMenuDialog.SettingsTable table) {

subTable.pref(new CollapserSetting("cui-offset-div", 6));
subTable.sliderPref("cui-unitsIconSize", 32, 1, 100, String::valueOf);
subTable.sliderPref("cui-unitsPlayerTableFont", 20, 0, fontScaleMax, s-> "x" + decForS.format(s == 0 ? 0.01f : s/20f) + "x");
subTable.sliderPref("cui-unitsPlayerTableFont", 20, 0, fontScaleMax, s-> "x" + decForS.format(s == 0 ? 0.01f : s/20f) );
subTable.sliderPref("cui-PlayerUnitsTableSide", 1, 0, 8, s -> bundle.get("cui-side"+s));
subTable.sliderPref("cui-playerunitstablestyle", 0, 0 , 9, s -> bundle.get("cui-blockinfostyle-s" + s ));
subTable.sliderPref("cui-playerunitstables-x", 0, -offsetMinMax , offsetMinMax, String::valueOf);
Expand Down Expand Up @@ -240,7 +240,7 @@ public void teamsCategory(SettingsMenuDialog.SettingsTable table){
subTable.checkPref("cui-TeamItemsShortenItems", true);
subTable.sliderPref("cui-TeamItemsAlpha", 8, 0, 10, s -> s > 0 ? s != 10 ? s + "0%" : "100%" : "@off");
subTable.sliderPref("cui-TeamItemsRow", 6, 0, 10, s -> s +1 + "");
subTable.sliderPref("cui-TeamItemsIconStyle", 0, 0, 2, s -> bundle.get("cui-unitsplayer-style" + s));
subTable.sliderPref("cui-TeamItemsIconStyle", 2, 0, 2, s -> bundle.get("cui-unitsplayer-style" + s));

subTable.pref(new CollapserSetting("cui-offset-div", 6));
subTable.sliderPref("cui-TeamItemsSide", 8, 0, 8, s -> bundle.get("cui-side"+s));
Expand Down