(kind of) "Bug" in "new" gui

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
korova
Veteran
Posts: 217
Joined: Sat Jun 27, 2009 5:15 pm
Completed: Ivy, Chocolate, Time, Clair Obscur
Projects: Writing exercises, The House [Nano18]
Tumblr: korova08
itch: korova
Location: Normandie, France
Contact:

(kind of) "Bug" in "new" gui

#1 Post by korova »

Hello !

I've created a brand new project for NaNoRenO using the (not so new now) GUI.
Actually, it's not the first time I've tested that GUi, but till now, I've always used the black versions of it. So, I decided to give the white version a go (and it seemed more suitable for my game this time).

The white version looked OK, until... I put a menu in my game. To my great surprise, the menu captions were like invisible.
After a my initial fright ("What did I break this time ?!?!") I realised that the text was white on white. See for yourself :
(Should I mention that I touched nothing in gui.rpy or anywhere else in predefined .rpy files ?)
Choice menu
choice_screen1.png
Choice menu with 2nd choice hovered
choice_screen2.png
Of course, I can (and will) change the text color of the unhovered caption (when I find the appropriate gui option), but I wonder if this concern should be adressed in the gui models ?

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3792
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: (kind of) "Bug" in "new" gui

#2 Post by Imperf3kt »

I get black text when selecting a white theme.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

User avatar
korova
Veteran
Posts: 217
Joined: Sat Jun 27, 2009 5:15 pm
Completed: Ivy, Chocolate, Time, Clair Obscur
Projects: Writing exercises, The House [Nano18]
Tumblr: korova08
itch: korova
Location: Normandie, France
Contact:

Re: (kind of) "Bug" in "new" gui

#3 Post by korova »

I don't know what to say. I tried to change theme several times from white to black and black to white and my menus are still like that. (latest stable renpy version)

User avatar
Scribbles
Miko-Class Veteran
Posts: 636
Joined: Wed Sep 21, 2016 4:15 pm
Completed: Pinewood Island, As We Know It
Projects: In Blood
Organization: Jaime Scribbles Games
Deviantart: breakfastdoodles
itch: scribbles
Location: Ohio
Contact:

Re: (kind of) "Bug" in "new" gui

#4 Post by Scribbles »

Code: Select all

style choice_button_text is default:
    properties gui.button_text_properties("choice_button")

Code: Select all

## The color of button text in various states.
define gui.button_text_idle_color = gui.idle_color
define gui.button_text_hover_color = gui.hover_color
define gui.button_text_selected_color = gui.selected_color
define gui.button_text_insensitive_color = gui.insensitive_color

Code: Select all

## The color used for a text button when it is neither selected nor hovered.
define gui.idle_color = "#000000"
look over those and see if you set up any of them to be white?
Image - Image -Image

User avatar
Ocelot
Lemma-Class Veteran
Posts: 2402
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Re: (kind of) "Bug" in "new" gui

#5 Post by Ocelot »

change theme
This might be the problem. IIRC if you change theme only images are replaced, style properties are not changed. You need to create project with that theme in first place.
< < insert Rick Cook quote here > >

User avatar
korova
Veteran
Posts: 217
Joined: Sat Jun 27, 2009 5:15 pm
Completed: Ivy, Chocolate, Time, Clair Obscur
Projects: Writing exercises, The House [Nano18]
Tumblr: korova08
itch: korova
Location: Normandie, France
Contact:

Re: (kind of) "Bug" in "new" gui

#6 Post by korova »

Ocelot wrote: Mon Mar 05, 2018 11:28 am
change theme
This might be the problem. IIRC if you change theme only images are replaced, style properties are not changed. You need to create project with that theme in first place.
That's what I did! I changed to black afterwards to see if there was any difference.
Actually, when you change theme, you're given choice between only regenerating images ord define new colors. (of course I used the second option).

Long story short, I created a new project in white version, and same thing happens. I realized that in fact, the text in not really white but a very pale shade of grey. Surrounded by a black background, it's unreadable.
demo (with newly created project)
screenshot0079.png
So, under these special circumstances, the very light grey color of idle menu choice is very hard to read.

Ultimately, I'll solve this problem by customizing the gui for my game, but maybe a stronger shade of grey would be more suitable for the default theme (very personal opinion)

Post Reply

Who is online

Users browsing this forum: piinkpuddiin