Closed Nutcha0751 closed 7 months ago
เปลี่ยนสีตัวหนังสือ >> https://github.com/AhoyDev/Rubens-Engine/blob/master/ModuleEditor.cpp How can I change text color of my InputText in ImGui? >> https://stackoverflow.com/questions/61853584/how-can-i-change-text-color-of-my-inputtext-in-imgui
//Adjust the text to be centered on the screen. float textWidth = ImGui::CalcTextSize("Dobby's Calculator").x; float windowWidth = ImGui::GetWindowWidth(); float centerPosX = (windowWidth - textWidth) / 2.0f; ImGui::SetCursorPosX(centerPosX);
//Adjust font size ImGui::SetWindowFontScale(2.0f); ImGui::Text("Dobby's Calculator"); ImGui::SetWindowFontScale(1.0f);