Skip to content

Commit

Permalink
Menja Preparation 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Taiizor committed Feb 3, 2023
1 parent 4b1b609 commit 8758d92
Show file tree
Hide file tree
Showing 32 changed files with 3,466 additions and 8 deletions.
Binary file added .screenshots/Menja.EN.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .screenshots/Menja.ES.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .screenshots/Menja.TR.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions README.ES.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
![TowerOfHanoi](.screenshots/TowerOfHanoi.ES.png)
![TheAviator](.screenshots/TheAviator.ES.png)
![Coloron](.screenshots/Coloron.ES.png)
![Menja](.screenshots/Menja.ES.png)

</details>

Expand Down
1 change: 1 addition & 0 deletions README.TR.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
![TowerOfHanoi](.screenshots/TowerOfHanoi.TR.png)
![TheAviator](.screenshots/TheAviator.TR.png)
![Coloron](.screenshots/Coloron.TR.png)
![Menja](.screenshots/Menja.TR.png)

</details>

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
![TowerOfHanoi](.screenshots/TowerOfHanoi.EN.png)
![TheAviator](.screenshots/TheAviator.EN.png)
![Coloron](.screenshots/Coloron.EN.png)
![Menja](.screenshots/Menja.EN.png)

</details>

Expand Down
2 changes: 2 additions & 0 deletions src/GamePortal/Enum/GameEnum.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
public enum GameEnum
{
Cube,
Menja,
Coloron,
Hextris,
Lazy2048,
Expand All @@ -27,6 +28,7 @@ public enum GameTypeEnum
Music,
Lucky,
Action,
Arcade,
Racing,
Puzzle,
Sports,
Expand Down
9 changes: 9 additions & 0 deletions src/GamePortal/GamePortal.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,11 @@
<AutoGen>True</AutoGen>
<DependentUpon>MagicSquareLocalization.resx</DependentUpon>
</Compile>
<Compile Update="Resources\Languages\Game\Menja\MenjaLocalization.Designer.cs">
<DependentUpon>MenjaLocalization.resx</DependentUpon>
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
</Compile>
<Compile Update="Resources\Languages\Game\SweetMemory\SweetMemoryLocalization.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
Expand Down Expand Up @@ -215,6 +220,10 @@
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>MagicSquareLocalization.Designer.cs</LastGenOutput>
</EmbeddedResource>
<EmbeddedResource Update="Resources\Languages\Game\Menja\MenjaLocalization.resx">
<LastGenOutput>MenjaLocalization.Designer.cs</LastGenOutput>
<Generator>ResXFileCodeGenerator</Generator>
</EmbeddedResource>
<EmbeddedResource Update="Resources\Languages\Game\SweetMemory\SweetMemoryLocalization.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>SweetMemoryLocalization.Designer.cs</LastGenOutput>
Expand Down
31 changes: 31 additions & 0 deletions src/GamePortal/Pages/Game/GameMenja.razor
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
@page "/menja"
@inject IStringLocalizer<MenjaLocalization> Localizer

<GameMenjaPaper />

@code
{
protected override async Task OnInitializedAsync()
{
AppCenterService.TrackEvent("Game-Menja", "JoinGame", "Joined");

HelperPath.Path = await Location.GetPathname();

await Task.Delay(DelayValue.Initialize);

await Include.StylesheetProtected("css/game/menja/style.css", HelperPath.Path);

await GetRender();
}

private async Task GetRender()
{
await Task.Delay(DelayValue.Render);

await Include.ScriptProtected("js/game/menja/script.js", HelperPath.Path);

await Task.Delay(DelayValue.Localization);

await Interop.Call("SetLocalization", Localizer["NewScore"].Value, Localizer["HighScore"].Value, Localizer["LiveScore"].Value, Localizer["CubeSmash"].Value);
}
}

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

Loading

0 comments on commit 8758d92

Please sign in to comment.