問題描述
libGDX ‑ 更改屏幕後的黑色按鈕和文本 (libGDX ‑ Black buttons and text after changing screen)
我最近在我的 libGDX 程序中發現了一個奇怪的問題。當我啟動我的程序時,我首先顯示一個 SplashScreen
,然後是 MainMenu
屏幕,然後您就可以進入程序了。問題是,如果我在主菜單上更改 screen
,我的所有 TextButton
都會變成完全黑色,並且它們的文本字符會變成黑框。
libGDX ‑ 更改屏幕後的黑色按鈕和文本 (libGDX ‑ Black buttons and text after changing screen)
我最近在我的 libGDX 程序中發現了一個奇怪的問題。當我啟動我的程序時,我首先顯示一個 SplashScreen
,然後是 MainMenu
屏幕,然後您就可以進入程序了。問題是,如果我在主菜單上更改 screen
,我的所有 TextButton
都會變成完全黑色,並且它們的文本字符會變成黑框。