Skip to content

Commit

Permalink
Translation for tutorial buttons graphic; #377
Browse files Browse the repository at this point in the history
  • Loading branch information
vanjac committed Jan 19, 2024
1 parent b4858b9 commit c0cf52c
Show file tree
Hide file tree
Showing 6 changed files with 166 additions and 18 deletions.
55 changes: 39 additions & 16 deletions Assets/Resources/Tutorials/toolbar_buttons.png.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
121 changes: 121 additions & 0 deletions Assets/Resources/Tutorials/toolbar_buttons_portuguese.png.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Assets/VoxelEditor/GUI/localization/GUIStringSet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -875,6 +875,8 @@ public class GUIStringSet
"By selecting faces and pushing/pulling them, you can sculpt the world.";
public virtual string TutorialButtons =>
"These buttons appear at the top of the screen, based on context.";
public virtual string TutorialButtonsResource =>
"Tutorials/toolbar_buttons";
public virtual string TutorialHelpMenu =>
"That's enough to get started! You can access more tutorials by choosing Help in the menu.";
public virtual string TutorialLinks =>
Expand Down
2 changes: 2 additions & 0 deletions Assets/VoxelEditor/GUI/localization/PortugueseStrings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -841,6 +841,8 @@ public class PortugueseStrings : GUIStringSet
"Ao selecionar faces e empurrá-los/puxá-los, você pode esculpir o mundo.";
public override string TutorialButtons =>
"Esses botões aparecem na parte superior da tela, com base no contexto.";
public override string TutorialButtonsResource =>
"Tutorials/toolbar_buttons_portuguese";
public override string TutorialHelpMenu =>
"Isso é o suficiente para começar! Você pode acessar mais tutoriais escolhendo Ajuda no menu.";
public override string TutorialLinks =>
Expand Down
4 changes: 2 additions & 2 deletions Assets/VoxelEditor/TutorialPages.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using UnityEngine;
using UnityEngine;

public static class Tutorials
{
Expand All @@ -18,7 +18,7 @@ public static class Tutorials
() => new TutorialIntroSelectWall(),
() => new SimpleTutorialPage(StringSet.TutorialSculpt),
() => new FullScreenTutorialPage(StringSet.TutorialButtons,
"Tutorials/toolbar_buttons", width:1536, height:798), // TODO: localize!
StringSet.TutorialButtonsResource, width:1536, height:798),
() => new SimpleTutorialPage(StringSet.TutorialHelpMenu),
() => new SimpleTutorialPage(StringSet.TutorialLinks),
};
Expand Down

0 comments on commit c0cf52c

Please sign in to comment.