Search found 11 matches

by fayknaim
Sun Oct 10, 2021 12:00 am
Forum: Ren'Py Questions and Announcements
Topic: How do I use a BMFont as a text style property?
Replies: 5
Views: 442

Re: How do I use a BMFont as a text style property?

Unfortunately this doesn't work for me. I started with using "bmfont" in double quotes, as written in the original post. Removing the double quotes was only a later experiment. I see that using a BMFont in Ren'Py is not advised. Although I haven't used it much, the downsides are apparent. ...
by fayknaim
Sat Oct 09, 2021 10:55 am
Forum: Ren'Py Questions and Announcements
Topic: How do I use a BMFont as a text style property?
Replies: 5
Views: 442

Re: How do I use a BMFont as a text style property?

That was a good experiment - but it looks like a similar error. I'm sorry, but an uncaught exception occurred. While running game code: File "game/script.rpy", line 28, in script pause File "renpy/common/000statements.rpy", line 455, in execute_pause renpy.pause() File "game...
by fayknaim
Sat Oct 09, 2021 1:55 am
Forum: Ren'Py Questions and Announcements
Topic: How do I use a BMFont as a text style property?
Replies: 5
Views: 442

How do I use a BMFont as a text style property?

I've created a BMFont that I want to use as the font for a text statement in screen language. The documentation explains how to do this: https://www.renpy.org/doc/html/style_properties.html#style-property-font font - string A string giving the name of the font used to render text. For a TrueType fon...
by fayknaim
Sat Oct 09, 2021 1:01 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] BMFont Error: "list index out of range" in parse_bmfont_line
Replies: 2
Views: 1311

Re: BMFont Error: "list index out of range" in parse_bmfont_line

Works like a charm.

Image

I have more BMFont questions for you, but I will create a new post.

Thanks PyTom - it's an honest pleasure interacting with you after my 15 years of lurking.
by fayknaim
Fri Oct 08, 2021 1:54 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] BMFont Error: "list index out of range" in parse_bmfont_line
Replies: 2
Views: 1311

[Solved] BMFont Error: "list index out of range" in parse_bmfont_line

I created my own BMFont using ShoeBox. https://i.imgur.com/Xs7jGTv.png I tried to include it in Renpy as explained in the documentation: https://www.renpy.org/doc/html/text.html?highlight=text#image-based-fonts init python: renpy.register_bmfont("bmfont", 50, filename="gui/bmfont.fnt&...
by fayknaim
Tue Oct 05, 2021 1:57 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] How Do I Select Buttons and Focus Buttons in Renpy?
Replies: 10
Views: 848

Re: How Do I Select Buttons and Focus Buttons in Renpy?

This works like a charm.

The one change necessary - while implementing Alex's code that I needed to use on "replace" instead of (or in addition to) on "show"

This is because all my phone screens use the same tag.
by fayknaim
Sat Oct 02, 2021 9:18 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] How Do I Select Buttons and Focus Buttons in Renpy?
Replies: 10
Views: 848

Re: How Do I Select Buttons and Focus Buttons in Renpy?

The latest code from Alex does what I wanted, so I'll play around with it.

Thanks!
by fayknaim
Sat Oct 02, 2021 12:58 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] How Do I Select Buttons and Focus Buttons in Renpy?
Replies: 10
Views: 848

Re: How Do I Programmatically Select A Button?

Thanks Jeff - even if your experiments didn't pan out, this is useful data (now I know default_focus may not work) To better demonstrate the problem for anybody reading this thread, here's the phone from the Steins;Gate VN. https://i.imgur.com/icRljor.gif In this screen capture, I'm navigating via k...
by fayknaim
Fri Oct 01, 2021 10:16 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] How Do I Select Buttons and Focus Buttons in Renpy?
Replies: 10
Views: 848

Re: How Do I Programmatically Select A Button?

Your example does work - thank you for this helpful code snippet. What I'm looking for could be a variant of what you provided, as it also involves some intuitive keyboard navigation. In the code you've provided, the textbutton "Button 1" will be stylized as selected when the "test_bu...
by fayknaim
Fri Oct 01, 2021 2:38 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] How Do I Select Buttons and Focus Buttons in Renpy?
Replies: 10
Views: 848

Re: How Do I Programmatically Select A Button?

Thanks for the link, Alex For some reason this doesn't seem to work for me and I am on the latest Renpy 7.4.8. I've updated my code with the bare-basic example: init python: dummy_true_value = True and #action Show("phone_mailscreen") action [NullAction(), SetVariable("dummy_true_valu...
by fayknaim
Fri Oct 01, 2021 11:38 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] How Do I Select Buttons and Focus Buttons in Renpy?
Replies: 10
Views: 848

[Solved] How Do I Select Buttons and Focus Buttons in Renpy?

Background: I am attempting to create my own "phone trigger" functionality, wherein the MC can pull out his cellphone and do various cellphone stuff. Here is my approach. When you press a key to open the phone, a new phone screen will appear with the phone's main menu. On the phone's main ...