Using text tags
https://www.renpy.org/doc/html/text.html#text-tag-color
Search found 165 matches
- Sun Aug 09, 2020 7:19 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED]Multiple colours in textbox
- Replies: 1
- Views: 309
- Sun Aug 09, 2020 3:59 am
- Forum: Ren'Py Questions and Announcements
- Topic: Is Digitally Signing EXE Required?
- Replies: 10
- Views: 777
Re: Is Digitally Signing EXE Required?
window_icon does only change the icon in the taskbar and the window, not the exe. Like you said, the .ico file is all that's needed to change the exe icon. But I do know some anti virus' detect renpy games as a false positive, which is a problem with the anti virus not renpy, but shouldn't be an iss...
- Sat Jul 18, 2020 3:33 am
- Forum: Ren'Py Questions and Announcements
- Topic: For loop in Screen to populate buttons?
- Replies: 1
- Views: 420
Re: For loop in Screen to populate buttons?
You're trying to assign a class instance to a string instead of a variable and python statements should either use the one line python thingy $ or put into a python block.
Also you should default your variables instead of using $.
Also you should default your variables instead of using $.
- Fri Jul 10, 2020 5:07 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Is there a way to have hovered tooltip on a text?
- Replies: 7
- Views: 520
Re: Is there a way to have hovered tooltip on a text?
Use a textbutton in place of the text
- Wed Jul 08, 2020 12:48 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Translating a font for everything
- Replies: 7
- Views: 545
Re: Translating a font for everything
The translate_font function only seems to be for configuring translations in the launcher, not games.
As for the other way, the style for the choice button should be "choice_button_text" I would think.
As for the other way, the style for the choice button should be "choice_button_text" I would think.
- Sat Jul 04, 2020 11:19 am
- Forum: Ren'Py Questions and Announcements
- Topic: I can't load slots on one of my load screens
- Replies: 2
- Views: 358
Re: I can't load slots on one of my load screens
It's because of the screen name and the FileAction action. FileAction checks if the screen name is "load" and returns the FileLoad action else it returns the FileSave action. if renpy.current_screen().screen_name[0] == "load": return FileLoad(name, page=page, **kwargs) else: retu...
- Sat Jul 04, 2020 4:05 am
- Forum: Ren'Py Questions and Announcements
- Topic: Procedurally unlock menu options
- Replies: 4
- Views: 485
Re: Procedurally unlock menu options
Out of curiosity, I decided to mess around with a choices screen to see what can be done. Probably worse than doing it that other way but it works so far. screen unlock_choices(items): style_prefix 'choice' default controls = {} default sensitive = True ## Create a dict of item controls for i in ite...
- Fri Jul 03, 2020 5:45 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] How do you get the attribute (?) of an item?
- Replies: 10
- Views: 606
Re: How do you get the attribute (?) of an item?
First of all, self.fruit = False is wrong. This will set fruit attribute to false even if you set it to true when creating the object. Should be self.fruit = fruit. Second If hasattr(item,’fruit’) == True: $ Jump(“eatfruit”) is only checking if the attribute exists, which will return true for all of...
- Fri Jun 26, 2020 9:12 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [solved] Having the main menu music not loop?
- Replies: 3
- Views: 561
Re: Having the main menu music not loop?
what is your code so we can help you better As it's related to the main menu, probably using the config.main_menu_music variable. So doing what Ray mentioned and using the before_main_menu label, (I can't remember what the no loop comment is, but it should be somewhere in the docs) label before_mai...
- Thu Jun 25, 2020 1:54 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED]positioning menu lables so they are centered
- Replies: 5
- Views: 622
Re: positioning menu lables so they are centered
Labels are text within a container, so you need to move the label itself, not the label text.
That should position the label at the centre.
Don't forget to remove the positional properties from the label text style.
Code: Select all
style game_menu_label:
xalign 0.5
Don't forget to remove the positional properties from the label text style.
- Sun Jun 21, 2020 5:55 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Loading different Multi-game Persistence files
- Replies: 2
- Views: 369
Re: Loading different Multi-game Persistence files
Init blocks load when renpy starts up, so the init blocks in your menu are running at the very start. And because multi-persistents have to be loaded during init, you should load both and then have the user pick one: init python: mp1 = MultiPersistent("pt1Slot1") mp2 = MultiPersistent(&quo...
- Thu Jun 18, 2020 5:55 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Layered Images and Variables
- Replies: 2
- Views: 408
Re: Layered Images and Variables
I don't think you can set variables within layered images. Couldn't you just use the outfit variable to check the outfit? Instead of checking if $ towel is true or false, you could just check if $ outfit is 1. As for the new towel thing, you could use a condition switch for the image image towel = C...
- Wed Jun 17, 2020 5:55 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Is it possible a texbutton with two colors? Doesn't work the hover color!
- Replies: 3
- Views: 401
Re: Is it possible a texbutton with two colors? Doesn't work the hover color!
Not sure if there's a good way to do this but you could use the hover unhover to set a text variable default button_text = "{color=#ff5a7d}DON'T{/color}" textbutton "Please, [button_text] choose me" action Return("continue") style "colorfulbutton": hovered Set...
- Wed Jun 17, 2020 8:51 am
- Forum: Ren'Py Questions and Announcements
- Topic: Help with conditional IF statements (In regards to time of day))
- Replies: 1
- Views: 263
Re: Help with conditional IF statements (In regards to time of day))
Should be time_of_day[0] rather than time_of_day[day]
- Thu Jun 11, 2020 11:51 am
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved] Textbutton set variable instead of jumping label?
- Replies: 1
- Views: 247
Re: Textbutton set variable instead of jumping label?
You'll want the SetVariable action https://www.renpy.org/doc/html/screen_a ... etVariable
Code: Select all
textbutton "blue" action SetVariable("color", "Blue")