fix texture rotation, add tutorial popup
This commit is contained in:
@@ -666,6 +666,43 @@ namespace Tools
|
||||
auto& level = Game::GetInstance().GameLevel;
|
||||
auto& player = Game::GetInstance().Player;
|
||||
|
||||
if (ImGui::Begin("Hilfe"))
|
||||
{
|
||||
if (ImGui::Button("Spiel Neustarten"))
|
||||
{
|
||||
}
|
||||
ImGui::SameLine();
|
||||
if (ImGui::Button("Zurück zum Anfang"))
|
||||
{
|
||||
player.PlayerCamTransform.Position = {0.0f, 3.0f, 0.0f};
|
||||
}
|
||||
ImGui::Separator();
|
||||
ImGui::Text("Anleitung:");
|
||||
ImGui::Text("Bewege dich mit");
|
||||
ImGui::SameLine();
|
||||
ImGui::TextColored({1.0f, 0.8f, 0.8f, 1.0f}, "W, A, S, D");
|
||||
ImGui::SameLine();
|
||||
ImGui::Text("und schau dich um mit der");
|
||||
ImGui::SameLine();
|
||||
ImGui::TextColored({1.0f, 0.8f, 0.8f, 1.0f}, "Maus.");
|
||||
ImGui::Text("Drücke");
|
||||
ImGui::SameLine();
|
||||
ImGui::TextColored({1.0f, 0.8f, 0.8f, 1.0f}, "Leertaste");
|
||||
ImGui::SameLine();
|
||||
ImGui::Text("um den Spielplan zu öffnen.");
|
||||
ImGui::Text("");
|
||||
auto& inflowTexture = rendering.Textures[10];
|
||||
auto& outflowTexture = rendering.Textures[9];
|
||||
auto& connectionTexture = rendering.Textures[8];
|
||||
ImGui::Text("Pumpe (Wasserquelle):");
|
||||
ImGui::Image(inflowTexture.RenderHandle.idx, {64.0f, 64.0f});
|
||||
ImGui::Text("Abfluss (Ziel):");
|
||||
ImGui::Image(outflowTexture.RenderHandle.idx, {64.0f, 64.0f});
|
||||
ImGui::Text("Verbindung:");
|
||||
ImGui::Image(connectionTexture.RenderHandle.idx, {64.0f, 64.0f});
|
||||
}
|
||||
ImGui::End();
|
||||
|
||||
if (rendering.UIVisible == Game::UIVisibilityState::Debug)
|
||||
{
|
||||
if (ImGui::IsMouseClicked(ImGuiMouseButton_Right))
|
||||
|
||||
Reference in New Issue
Block a user