Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Menu Text is Invisible #195

Open
AEFeinstein opened this issue Jul 3, 2019 · 8 comments
Open

Menu Text is Invisible #195

AEFeinstein opened this issue Jul 3, 2019 · 8 comments

Comments

@AEFeinstein
Copy link
Contributor

Just built a34684c for Windows 10, and all the menu text besides the top level one (Settings, Quit, Single Player, etc.) is invisible. The invisible menus are navigable, I see up and down arrows, and there are audio cues

Maybe it's black on a black background? I tried modifying background_color in theme.ini to #00ff00 but that didn't seem to have any effect.

@AEFeinstein
Copy link
Contributor Author

Is there a way to change the theme from Megalight V4 to anything else (for testing) without using the settings menu? Like a *.ini file or something?

@Linkid
Copy link
Member

Linkid commented Jul 4, 2019

You can :

  • do it from the interface, in the settings menu
  • do it by modifying the theme name in fofix.ini (which you can find in your home), in the coffee section (themename).

@AEFeinstein
Copy link
Contributor Author

Found the command line argument, and none of the following work,

  • python FoFiX.py -t "MegaLight" - Top level menu is the only visible menu
  • python FoFiX.py -t "MegaLight GH3" - Top level menu is the only visible menu
  • python FoFiX.py -t "MegaLight V4" - Top level menu is the only visible menu
  • python FoFiX.py -t "Uberlight" - crashes, fofix.log, image

@Linkid
Copy link
Member

Linkid commented Jul 5, 2019

About Uberlight, this is a known bug (see #151).

@Linkid
Copy link
Member

Linkid commented Jul 6, 2019

Menus are either text or images (in text white). You can configure colors for text and background in theme.ini (see https://fofix.readthedocs.io/en/latest/users/themes.html#general).
Can you post your options in theme.ini, please ?

@AEFeinstein
Copy link
Contributor Author

I replaced optionsbg.png with a plain white background and still couldn't see any options text, so I don't think this is a color issue. I also threw in a breakpoint in and verified opt_text_color and opt_selected_color are the values below.

if self.opt_text_color is None:
    self.opt_text_color = (1,1,1)
if self.opt_selected_color is None:
    self.opt_selected_color = (1,0.75,0)

I see two relevant theme.ini files, one in ./data/ and one in ./data/themes/MegaLightV4/. Both of them have no local changes and match what's in master.

Comparing my python packages to what's in requirements.txt, everything matches except Cerealizer. I have 0.8.3 installed, not 0.8.2, but I can't install 0.8.2 from pip either. Oh, and python reports 2.7.16.

I scattered some breakpoints in Menu.render() and Font.render() and nothing seems evidently wrong to me. Would you like any variable values from in there?

@AEFeinstein
Copy link
Contributor Author

I fired up an Xubuntu VM and wasn't able to replicate the issue, even with Cerealizer 0.8.3. This bug seems to be specific to Windows 10, or something else on my Windows 10 machine. Are there any other dependencies I should check for?

@AEFeinstein
Copy link
Contributor Author

OK, I found a workaround. My laptop has both an Intel integrated GPU and an NVIDIA discrete GPU. When python.exe is configured to use the Intel GPU, text does not render. But when it is configured to use the NVIDIA GPU, the text renders correctly.

This is an odd issue, good luck debugging it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants