diff --git a/include/Cubed/dev_panel.hpp b/include/Cubed/dev_panel.hpp index 3e2716f..0635bc3 100644 --- a/include/Cubed/dev_panel.hpp +++ b/include/Cubed/dev_panel.hpp @@ -42,6 +42,7 @@ private: TextEditing m_text_editing; bool m_need_save_config = false; int m_theme = 0; + void show_about_table_bar(); void show_biome_table_bar(); void show_settings_tab_item(); void show_world_tab_item(); diff --git a/src/dev_panel.cpp b/src/dev_panel.cpp index 9705575..83702f4 100644 --- a/src/dev_panel.cpp +++ b/src/dev_panel.cpp @@ -76,6 +76,7 @@ void DevPanel::render() { show_settings_tab_item(); show_world_tab_item(); show_player_tab_item(); + show_about_table_bar(); ImGui::EndTabBar(); } ImGui::End(); @@ -84,6 +85,29 @@ void DevPanel::render() { } +void DevPanel::show_about_table_bar() { + if (ImGui::BeginTabItem("about")) { + ImGui::Text("Cubed - A cube game like Minecraft, using C++ and OpenGL."); + ImGui::Text("Author: zhenyan121"); + ImGui::Separator(); + ImGui::Text("Libraries Used"); + ImGui::Text("glad"); + ImGui::Text("GLFW"); + ImGui::Text("SOIL2"); + ImGui::Text("GLM"); + ImGui::Text("FreeType"); + ImGui::Text("toml++"); + ImGui::Text("Dear ImGui"); + ImGui::Separator(); + ImGui::Text("Special Thanks"); + ImGui::Text("TANGERIME"); + ImGui::Text("SkyOnPole"); + ImGui::Text("free_w_cloud"); + ImGui::Text("Last but not least, thanks to you"); + ImGui::EndTabItem(); + } +} + void DevPanel::show_biome_table_bar() { ImGui::Text("Biome"); if (ImGui::BeginTabBar("Biome")) {