Skip to content
Closed
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
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public enum TechBunkerAmountType
}

[UsedImplicitly(ImplicitUseTargetFlags.WithMembers)]
[Desc("How many TechBunkers should be spawned on the map.")]
[Desc("Quantos Tech Bunkers aparecem no mapa.")]
public class TechBunkerAmountInfo : TraitInfo, ILobbyOptions
{
public const string Id = "TechBunkerAmount";
Expand All @@ -42,17 +42,17 @@ IEnumerable<LobbyOption> ILobbyOptions.LobbyOptions(MapPreview mapPreview)
{
yield return new(
TechBunkerAmountInfo.Id,
"Amount",
"How many TechBunkers should be spawned on the map.",
"Quantidade",
"Quantos Tech Bunkers aparecem no mapa.",
true,
0,
new ReadOnlyDictionary<string, string>(
new Dictionary<TechBunkerAmountType, string>
{
{ TechBunkerAmountType.None, "None" },
{ TechBunkerAmountType.One, "1 per map" },
{ TechBunkerAmountType.OnePerTwoPlayers, "1 per 2 players" },
{ TechBunkerAmountType.All, "All" }
{ TechBunkerAmountType.None, "Nenhum" },
{ TechBunkerAmountType.One, "1 por mapa" },
{ TechBunkerAmountType.OnePerTwoPlayers, "1 a cada 2 jogadores" },
{ TechBunkerAmountType.All, "Todos" }
}.ToDictionary(e => e.Key.ToString(), e => e.Value)
),
TechBunkerAmountInfo.Default.ToString(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public enum TechBunkerContainsType
}

[UsedImplicitly]
[Desc("What a TechBunker may contain.")]
[Desc("O que um Tech Bunker pode conter.")]
public class TechBunkerContainsInfo : TraitInfo, ILobbyOptions
{
public const string Id = "TechBunkerContains";
Expand All @@ -36,14 +36,14 @@ IEnumerable<LobbyOption> ILobbyOptions.LobbyOptions(MapPreview mapPreview)
{
yield return new(
TechBunkerContainsInfo.Id,
"Contains",
"What a TechBunker may contain.",
"Conteúdo",
"O que um Tech Bunker pode conter.",
true,
0,
new ReadOnlyDictionary<string, string>(
new Dictionary<TechBunkerContainsType, string>
{
{ TechBunkerContainsType.Resources, "Resources" }, { TechBunkerContainsType.Units, "Units" }, { TechBunkerContainsType.Both, "Both" }
{ TechBunkerContainsType.Resources, "Recursos" }, { TechBunkerContainsType.Units, "Unidades" }, { TechBunkerContainsType.Both, "Ambos" }
}.ToDictionary(e => e.Key.ToString(), e => e.Value)
),
TechBunkerContainsInfo.Default.ToString(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public enum TechBunkerUsageType
}

[UsedImplicitly]
[Desc("How a TechBunker can be opened.")]
[Desc("Como um Tech Bunker pode ser aberto.")]
public class TechBunkerUsageInfo : TraitInfo, ILobbyOptions
{
public const string Id = "TechBunkerUsage";
Expand All @@ -35,12 +35,12 @@ IEnumerable<LobbyOption> ILobbyOptions.LobbyOptions(MapPreview mapPreview)
{
yield return new(
TechBunkerUsageInfo.Id,
"Usage",
"How a TechBunker can be opened.",
"Abertura",
"Como um Tech Bunker pode ser aberto.",
true,
0,
new ReadOnlyDictionary<string, string>(
new Dictionary<TechBunkerUsageType, string> { { TechBunkerUsageType.Proximity, "Proximity" }, { TechBunkerUsageType.Technician, "Technician" } }
new Dictionary<TechBunkerUsageType, string> { { TechBunkerUsageType.Proximity, "Proximidade" }, { TechBunkerUsageType.Technician, "Technician" } }
.ToDictionary(e => e.Key.ToString(), e => e.Value)
),
TechBunkerUsageInfo.Default.ToString(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public enum TechBunkerUsesType
}

[UsedImplicitly]
[Desc("How many times a TechBunker can be used.")]
[Desc("Quantas vezes um Tech Bunker pode ser usado.")]
public class TechBunkerUsesInfo : TraitInfo, ILobbyOptions
{
public const string Id = "TechBunkerUses";
Expand All @@ -35,12 +35,12 @@ IEnumerable<LobbyOption> ILobbyOptions.LobbyOptions(MapPreview mapPreview)
{
yield return new(
TechBunkerUsesInfo.Id,
"Uses",
"How many times a TechBunker can be used.",
"Usos",
"Quantas vezes um Tech Bunker pode ser usado.",
true,
0,
new ReadOnlyDictionary<string, string>(
new Dictionary<TechBunkerUsesType, string> { { TechBunkerUsesType.Once, "Once" }, { TechBunkerUsesType.Infinitely, "Infinitely" } }
new Dictionary<TechBunkerUsesType, string> { { TechBunkerUsesType.Once, "Uma vez" }, { TechBunkerUsesType.Infinitely, "Ilimitado" } }
.ToDictionary(e => e.Key.ToString(), e => e.Value)
),
TechBunkerUsesInfo.Default.ToString(),
Expand Down
6 changes: 3 additions & 3 deletions OpenRA.Mods.OpenKrush/Mechanics/Oil/LobbyOptions/OilAmount.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class OilAmountInfo : TraitInfo, ILobbyOptions
public const string Id = "OilAmount";

public readonly int[] OilAmounts = { 25000, 50000, 75000, 100000, -1 };
public readonly string[] OilAmountNames = { "Scarce", "Normal", "Abundant", "Maximum", "Infinite" };
public readonly string[] OilAmountNames = { "Escasso", "Normal", "Abundante", "Máximo", "Infinito" };

IEnumerable<LobbyOption> ILobbyOptions.LobbyOptions(MapPreview mapPreview)
{
Expand All @@ -38,8 +38,8 @@ IEnumerable<LobbyOption> ILobbyOptions.LobbyOptions(MapPreview mapPreview)

yield return new(
OilAmountInfo.Id,
"Amount",
"Amount of oil every OilPatch contains.",
"Quantidade",
"Quantidade de petróleo em cada poço.",
true,
0,
new ReadOnlyDictionary<string, string>(values),
Expand Down
4 changes: 2 additions & 2 deletions OpenRA.Mods.OpenKrush/Mechanics/Oil/LobbyOptions/OilBurn.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ IEnumerable<LobbyOption> ILobbyOptions.LobbyOptions(MapPreview mapPreview)

yield return new(
OilBurnInfo.Id,
"Burn",
"Percent amount of oil to burn when ignited.",
"Queima",
"Porcentagem de petróleo que queima quando o poço pega fogo.",
true,
0,
new ReadOnlyDictionary<string, string>(values),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ IEnumerable<LobbyOption> ILobbyOptions.LobbyOptions(MapPreview mapPreview)

yield return new(
ResearchDurationInfo.Id,
"Duration",
"Research duration.",
"Duração",
"Duração da pesquisa.",
true,
0,
new ReadOnlyDictionary<string, string>(values),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ IEnumerable<LobbyOption> ILobbyOptions.LobbyOptions(MapPreview mapPreview)
{
yield return new(
ResearchModeInfo.Id,
"Mode",
"Wether to research a full tech level or a single technology.",
"Modo",
"Pesquisar um nível tecnológico inteiro ou uma tecnologia por vez.",
true,
0,
new ReadOnlyDictionary<string, string>(
new Dictionary<ResearchModeType, string> { { ResearchModeType.FullLevel, "Full Level" }, { ResearchModeType.SingleTech, "Single Tech" } }
new Dictionary<ResearchModeType, string> { { ResearchModeType.FullLevel, "Nível inteiro" }, { ResearchModeType.SingleTech, "Uma tecnologia" } }
.ToDictionary(e => e.Key.ToString(), e => e.Value)
),
ResearchModeInfo.Default.ToString(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ IEnumerable<LobbyOption> ILobbyOptions.LobbyOptions(MapPreview mapPreview)

yield return new(
TechLimitInfo.Id,
"Limit",
"Maximum tech level.",
"Limite",
"Nível tecnológico máximo.",
true,
0,
new ReadOnlyDictionary<string, string>(values),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public enum SaboteurUsageType
}

[UsedImplicitly]
[Desc("What happens when a saboteur conquers a building.")]
[Desc("O que acontece quando um Saboteur conquista um prédio.")]
public class SaboteurUsageInfo : TraitInfo, ILobbyOptions
{
private const string LobbyOptionsCategory = "saboteur";
Expand All @@ -36,12 +36,12 @@ IEnumerable<LobbyOption> ILobbyOptions.LobbyOptions(MapPreview mapPreview)
{
yield return new(
SaboteurUsageInfo.Id,
"Usage",
"What happens when a saboteur conquers a building.",
"Efeito",
"O que acontece quando um Saboteur conquista um prédio.",
true,
0,
new ReadOnlyDictionary<string, string>(
new Dictionary<SaboteurUsageType, string> { { SaboteurUsageType.Destroy, "Destroy" }, { SaboteurUsageType.Conquer, "Conquer" } }.ToDictionary(
new Dictionary<SaboteurUsageType, string> { { SaboteurUsageType.Destroy, "Destruir" }, { SaboteurUsageType.Conquer, "Conquistar" } }.ToDictionary(
e => e.Key.ToString(),
e => e.Value
)
Expand Down
2 changes: 1 addition & 1 deletion OpenRA.Mods.OpenKrush/OpenRA.Mods.OpenKrush.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net10.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public sealed class BomberButtonWidget : SidebarButtonWidget
public BomberButtonWidget(SidebarWidget sidebar)
: base(sidebar, "button")
{
this.TooltipTitle = "Aircrafts";
this.TooltipTitle = "Aeronaves";
}

public override bool HandleKeyPress(KeyInput e)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class OptionsButtonWidget : SidebarButtonWidget
public OptionsButtonWidget(SidebarWidget sidebar)
: base(sidebar, "button")
{
this.TooltipTitle = "Options";
this.TooltipTitle = "Opções";
}

public override bool HandleKeyPress(KeyInput e)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class RepairButtonWidget : SidebarButtonWidget
public RepairButtonWidget(SidebarWidget sidebar)
: base(sidebar, "button")
{
this.TooltipTitle = "Repair";
this.TooltipTitle = "Consertar";
}

public override bool HandleKeyPress(KeyInput e)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class ResearchButtonWidget : SidebarButtonWidget
public ResearchButtonWidget(SidebarWidget sidebar)
: base(sidebar, "button")
{
this.TooltipTitle = "Research";
this.TooltipTitle = "Pesquisar";
}

public override bool HandleKeyPress(KeyInput e)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class SellButtonWidget : SidebarButtonWidget
public SellButtonWidget(SidebarWidget sidebar)
: base(sidebar, "button")
{
this.TooltipTitle = "Sell";
this.TooltipTitle = "Vender";
}

public override bool HandleKeyPress(KeyInput e)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ bool IsActive()
IsFocused = () => this.Parent.Children.Count > 1 && this.IsFocused,
TooltipTitle = buildableItem.TraitInfoOrDefault<TooltipInfo>().Name,
TooltipText =
$"{(valued == null ? "" : $"Cost: {valued.Cost}\n")}Time: {buildTime}{(description != null ? $"\n{description.Description}" : null)}"
$"{(valued == null ? "" : $"Custo: {valued.Cost}\n")}Tempo: {buildTime}{(description != null ? $"\n{description.Description}" : null)}"
};

this.AddChild(button);
Expand Down
10 changes: 5 additions & 5 deletions OpenRA.Mods.OpenKrush/Widgets/Ingame/SidebarWidget.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ public SidebarWidget(IngameUiWidget ingameUi)

ChromeMetrics.TryGet($"ButtonArea-{this.IngameUi.World.LocalPlayer.Faction.InternalName}", out this.ButtonArea);

this.AddChild(new ProductionCategoryButtonWidget(this, 0, new[] { "infantry" }, "Infantry"));
this.AddChild(new ProductionCategoryButtonWidget(this, 1, new[] { "vehicle", "beast" }, "Vehicles"));
this.AddChild(new ProductionCategoryButtonWidget(this, 2, new[] { "building" }, "Buildings"));
this.AddChild(new ProductionCategoryButtonWidget(this, 3, new[] { "tower" }, "Towers"));
this.AddChild(new ProductionCategoryButtonWidget(this, 4, new[] { "wall" }, "Walls"));
this.AddChild(new ProductionCategoryButtonWidget(this, 0, new[] { "infantry" }, "Infantaria"));
this.AddChild(new ProductionCategoryButtonWidget(this, 1, new[] { "vehicle", "beast" }, "Veículos"));
this.AddChild(new ProductionCategoryButtonWidget(this, 2, new[] { "building" }, "Construções"));
this.AddChild(new ProductionCategoryButtonWidget(this, 3, new[] { "tower" }, "Torres"));
this.AddChild(new ProductionCategoryButtonWidget(this, 4, new[] { "wall" }, "Muros"));

this.AddChild(this.bomber = new(this));

Expand Down
2 changes: 1 addition & 1 deletion mods/openkrush/actors/oilpatch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ oilpatch:
Tooltip:
Name: Oilpatch
TooltipDescription:
Description: Deploy a Derrick here
Description: Posicione um Derrick aqui
2 changes: 1 addition & 1 deletion mods/openkrush/chrome/ingame-menu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Container@INGAME_MENU:
Y: 20
Width: 200
Height: 30
Text: Options
Text: Opções
Align: Center
Font: Bold
Button@BUTTON_TEMPLATE:
Expand Down
2 changes: 1 addition & 1 deletion mods/openkrush/chrome/ingame-player.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,6 @@ Container@PLAYER_WIDGETS:
Width: PARENT_RIGHT - 30
Height: 25
Align: Right
Text: Audio Muted
Text: Áudio silenciado
Contrast: true
IngameUi@INGAMEUI:
Loading