Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Anna: The Series Test, Re-work

An adult NSFW visual novel based around Alleyne's Series Test. A psychological test into humanity. 路 By AnnaSeries

Dialog theme

A topic by Soultaker Spirit created Apr 26, 2023 Views: 215 Replies: 8
Viewing posts 1 to 3

From what I'm seeing of the images. It looks like it won't be handicap friendly with bad eye sight such as myself. Will you be adding the choice for people to choose dialog box and text color? I would like to try this game.

Developer

Hey,

Yes, this is something I am currently looking into implementing into the game when I can. I've not created/coded anything like this before, so I'm still in a learning process with some stuff. Once I got the knowledge on how to do this, it will be available. 

 Currently there is about 8 different font choices you can pick from. I'm aware this doesn't help with colour, and I apologise for that part.  Although, there is a text to speech function within the game at the moment.

I actually have code for Dark Theme but haven't tried it out in my own game yet. lol

Developer

if you're happy to post it here I can test in on the game soon as. If it works I'll release the update. :)

This is for the options screen:


screen options():

    title "Options"

    vbox:

        # Check if the current background is the light mode image

        if renpy.defaultbg == "your_light_mode_background_image_filename.png":

            textbutton _("Enable Dark Mode") action EnableDarkMode()

        else:

            textbutton _("Disable Dark Mode") action DisableDarkMode()

        textbutton _("Back") action Return()

    # Add this line to use the dark_mode_bg style

    style "options" box_style "dark_mode_bg"

    add "ui/hud/options_background.png"
This is for the script.rpy or whatever .rpy that starts the game:

init:

    # Set the default background to the light mode background image

    $ renpy.defaultbg = "your_light_mode_background_image_filename.png"

label EnableDarkMode():

    # Set the background to the dark mode background image

    $ renpy.defaultbg = "your_dark_mode_background_image_filename.png"

label DisableDarkMode():

    # Set the background to the light mode background image

    $ renpy.defaultbg = "your_light_mode_background_image_filename.png"
I hope this works lol

Developer

awesome! Thank you.

I will give this a try soon; however, it looks like this will require a separate textbox to the one already used.  All  U.I elements are hand designed, so give me some time to design a new one and hopefully it'll get working. 馃榾

If you need to make Dark Mode UI, you can put it into a new folder called "bg_dark" and then replace the code in the script.rpy or whatever file you added start to with the code here:

init:

    # Set the default background to the light mode background image

    $ renpy.defaultbg = "your_light_mode_background_image_filename.png"

label EnableDarkMode():

    # Set the background to the dark mode background image

    $ renpy.defaultbg = "bg_dark/your_dark_mode_background_image_filename.png"

label DisableDarkMode():

    # Set the background to the light mode background image

    $ renpy.defaultbg = "your_light_mode_background_image_filename.png"

Developer

Hey.

Just to give you an update this thread. I've spent the last week looking into the code and trying to get a 'dark mode' variant to work, however I've had no luck. I've been able to change the GUI and font colour/style. But I haven't been able to work out how to give the player the choice to change it themselves. I'll try looking into it more, yet I think this may be out of renpy's capability.

Sorry, I did try. :(      (The only other option I can do, is have a set dark mode GUI in the game files, in a separate folder; and then have the  player extract/rename and replace the original with these.)

Ren'py can do it. But maybe it's where I got the code from lol. I'll continue aswell to help.