Team improvements (#8704)
* Update Team.java * Update ServerControl.java * better * kill me please * kill me please * kill me please * Update bundle_ca.properties * kill me please * Update bundle_da.properties * kill me please * kill me please * Update bundle_et.properties * Update bundle_eu.properties * Update bundle_fi.properties * Update bundle_fil.properties * Update bundle_fr.properties * Update bundle_hu.properties * Update bundle_id_ID.properties * Update bundle_ja.properties * Update bundle_ko.properties * Update bundle_lt.properties * Update bundle_nl.properties * Update bundle_nl_BE.properties * Update bundle_pl.properties * Update bundle_pt_BR.properties * Update bundle_pt_PT.properties * Update bundle_ro.properties * Update bundle_ru.properties * Update bundle_sr.properties * Update bundle_sv.properties * Update bundle_th.properties * Update bundle_tr.properties * Update bundle_tk.properties * Update bundle_uk_UA.properties * Update bundle_vi.properties * Update bundle_zh_CN.properties * Update bundle_zh_TW.properties * Update World.java * Update CustomRulesDialog.java * skill issue * skill issue x2 * skill issue x3
This commit is contained in:
@@ -201,7 +201,6 @@ public class CustomRulesDialog extends BaseDialog{
|
||||
number("@rules.unitcostmultiplier", f -> rules.unitCostMultiplier = f, () -> rules.unitCostMultiplier);
|
||||
number("@rules.unithealthmultiplier", f -> rules.unitHealthMultiplier = f, () -> rules.unitHealthMultiplier);
|
||||
|
||||
|
||||
main.button("@bannedunits", () -> showBanned("@bannedunits", ContentType.unit, rules.bannedUnits, u -> !u.isHidden())).left().width(300f).row();
|
||||
check("@bannedunits.whitelist", b -> rules.unitWhitelist = b, () -> rules.unitWhitelist);
|
||||
|
||||
@@ -280,7 +279,7 @@ public class CustomRulesDialog extends BaseDialog{
|
||||
boolean[] shown = {false};
|
||||
Table wasMain = main;
|
||||
|
||||
main.button("[#" + team.color + "]" + team.localized() + (team.emoji.isEmpty() ? "" : "[] " + team.emoji), Icon.downOpen, Styles.togglet, () -> {
|
||||
main.button(team.coloredName(), Icon.downOpen, Styles.togglet, () -> {
|
||||
shown[0] = !shown[0];
|
||||
}).marginLeft(14f).width(260f).height(55f).update(t -> {
|
||||
((Image)t.getChildren().get(1)).setDrawable(shown[0] ? Icon.upOpen : Icon.downOpen);
|
||||
@@ -300,8 +299,8 @@ public class CustomRulesDialog extends BaseDialog{
|
||||
numberi("@rules.rtsmaxsquadsize", f -> teams.rtsMaxSquad = f, () -> teams.rtsMaxSquad, () -> teams.rtsAi, 1, 1000);
|
||||
number("@rules.rtsminattackweight", f -> teams.rtsMinWeight = f, () -> teams.rtsMinWeight, () -> teams.rtsAi);
|
||||
|
||||
check("@rules.buildai", b -> teams.buildAi = b, () -> teams.buildAi, () -> team != rules.defaultTeam && rules.env != Planets.erekir.defaultEnv && !rules.pvp);
|
||||
//disallow on Erekir (this is broken for mods I'm sure, but whatever)
|
||||
check("@rules.buildai", b -> teams.buildAi = b, () -> teams.buildAi, () -> team != rules.defaultTeam && rules.env != Planets.erekir.defaultEnv && !rules.pvp);
|
||||
number("@rules.buildaitier", false, f -> teams.buildAiTier = f, () -> teams.buildAiTier, () -> teams.buildAi && rules.env != Planets.erekir.defaultEnv && !rules.pvp, 0, 1);
|
||||
|
||||
check("@rules.infiniteresources", b -> teams.infiniteResources = b, () -> teams.infiniteResources);
|
||||
@@ -313,7 +312,6 @@ public class CustomRulesDialog extends BaseDialog{
|
||||
number("@rules.unitcostmultiplier", f -> teams.unitCostMultiplier = f, () -> teams.unitCostMultiplier);
|
||||
number("@rules.unithealthmultiplier", f -> teams.unitHealthMultiplier = f, () -> teams.unitHealthMultiplier);
|
||||
|
||||
|
||||
main = wasMain;
|
||||
}, () -> shown[0]).growX().row();
|
||||
}
|
||||
@@ -327,7 +325,7 @@ public class CustomRulesDialog extends BaseDialog{
|
||||
for(Team team : Team.baseTeams){
|
||||
t.button(Tex.whiteui, Styles.squareTogglei, 38f, () -> {
|
||||
cons.get(team);
|
||||
}).pad(1f).checked(b -> prov.get() == team).size(60f).tooltip(team.localized()).with(i -> i.getStyle().imageUpColor = team.color);
|
||||
}).pad(1f).checked(b -> prov.get() == team).size(60f).tooltip(team.coloredName()).with(i -> i.getStyle().imageUpColor = team.color);
|
||||
}
|
||||
}).padTop(0).row();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user