mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-09-28 14:16:01 -04:00
Fetch main menu strings from game data (#63)
This commit is contained in:
parent
8d1c2e7bd9
commit
bd4c95c28d
@ -39,6 +39,7 @@ namespace OpenDiablo2.Scenes
|
|||||||
public MainMenu(
|
public MainMenu(
|
||||||
IRenderWindow renderWindow,
|
IRenderWindow renderWindow,
|
||||||
ISceneManager sceneManager,
|
ISceneManager sceneManager,
|
||||||
|
ITextDictionary textDictionary,
|
||||||
IResourceManager resourceManager,
|
IResourceManager resourceManager,
|
||||||
ISoundProvider soundProvider,
|
ISoundProvider soundProvider,
|
||||||
IMPQProvider mpqProvider,
|
IMPQProvider mpqProvider,
|
||||||
@ -57,7 +58,7 @@ namespace OpenDiablo2.Scenes
|
|||||||
diabloLogoRightBlack = renderWindow.LoadSprite(ResourcePaths.Diablo2LogoBlackRight, Palettes.Units, new Point(400, 120));
|
diabloLogoRightBlack = renderWindow.LoadSprite(ResourcePaths.Diablo2LogoBlackRight, Palettes.Units, new Point(400, 120));
|
||||||
|
|
||||||
btnSinglePlayer = createButton(eButtonType.Wide);
|
btnSinglePlayer = createButton(eButtonType.Wide);
|
||||||
btnSinglePlayer.Text = "Single Player".ToUpper();
|
btnSinglePlayer.Text = textDictionary.Translate("strStartMenu1");
|
||||||
btnSinglePlayer.Location = new Point(264, 290);
|
btnSinglePlayer.Location = new Point(264, 290);
|
||||||
btnSinglePlayer.OnActivate = OnSinglePlayerClicked;
|
btnSinglePlayer.OnActivate = OnSinglePlayerClicked;
|
||||||
|
|
||||||
@ -67,12 +68,12 @@ namespace OpenDiablo2.Scenes
|
|||||||
btnWebsite.OnActivate = OnVisitWebsiteClicked;
|
btnWebsite.OnActivate = OnVisitWebsiteClicked;
|
||||||
|
|
||||||
btnExit = createButton(eButtonType.Wide);
|
btnExit = createButton(eButtonType.Wide);
|
||||||
btnExit.Text = "Exit Diablo II".ToUpper();
|
btnExit.Text = textDictionary.Translate("strexitentiregame");
|
||||||
btnExit.Location = new Point(264, 500);
|
btnExit.Location = new Point(264, 500);
|
||||||
btnExit.OnActivate = OnExitClicked;
|
btnExit.OnActivate = OnExitClicked;
|
||||||
|
|
||||||
btnCredits = createButton(eButtonType.Short);
|
btnCredits = createButton(eButtonType.Short);
|
||||||
btnCredits.Text = "Credits".ToUpper(); /* TODO: We apparently need a 'half font' option... */
|
btnCredits.Text = textDictionary.Translate("strGameCredits"); /* TODO: We apparently need a 'half font' option... */
|
||||||
btnCredits.Location = new Point(264, 470);
|
btnCredits.Location = new Point(264, 470);
|
||||||
btnCredits.OnActivate = OnCreditsClicked;
|
btnCredits.OnActivate = OnCreditsClicked;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user