Search found 46 matches

by Queex
Mon Feb 18, 2019 6:14 am
Forum: Ren'Py Questions and Announcements
Topic: Problems with position of a custom displayable
Replies: 1
Views: 415

Re: Problems with position of a custom displayable

Giving this a bump.

I can probably work around the problem by defining a new position that places it where I want it, but I suspect the underlying issue is something I'm doing wrong with these custom displayables and I'd prefer to find out what before I make too many more of them.
by Queex
Thu Feb 14, 2019 10:54 am
Forum: Ren'Py Questions and Announcements
Topic: TypeError: coercing to Unicode
Replies: 1
Views: 327

Re: TypeError: coercing to Unicode

I think you need to remove the quotes round the variable names:

pos(bakerypos)

When you put it in quotes, it's treated as a string, not a reference to the variable you've defined.
by Queex
Wed Feb 13, 2019 12:10 pm
Forum: Ren'Py Questions and Announcements
Topic: Problems with position of a custom displayable
Replies: 1
Views: 415

Problems with position of a custom displayable

I've defined a custom displayable with a number of child displayables arranged in a grid. It appears to render correctly. However, when trying to show it in the centre with 'truecenter' the bottom right-hand corner is placed in the centre. If it was the top left, I would assume that the width and he...
by Queex
Sat Mar 24, 2018 2:57 pm
Forum: Creative Commons
Topic: █████▓▒░ UNCLE MUGEN'S FREE VN (OELVN) RESOURCES ░▒▓█████
Replies: 821
Views: 1772139

Re: █████▓▒░ UNCLE MUGEN'S FREE VN (OELVN) RESOURCES ░▒▓█████

This is all amazing work and an absolute godsend for those of us who are... artistically challenged. I might have missed it somewhere in this epic thread, but I haven't seen any hotel interiors. Seems like the sort of thing that might get used a lot. Reception, corridors, rooms. Any chance you have ...
by Queex
Thu Apr 13, 2017 11:14 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] New GUI choice prompt without narrator
Replies: 3
Views: 581

Re: New GUI choice prompt without narrator

This might not be the best way, but it works, at least: Slip this: if i.action==None: textbutton "{color=[gui.accent_color]}"+i.caption+"{/color}" action None else: <original textbutton statement> into the choice screen and it will give the accent colour to any line without an as...
by Queex
Wed Apr 12, 2017 6:48 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] New GUI choice prompt without narrator
Replies: 3
Views: 581

Re: New GUI choice prompt without narrator

That's one place I've been looking, but I haven't found it yet. It's possible it's in common with a certain button state, but I've gone goggle-eyed trying to work out what shares a style with what.
by Queex
Wed Apr 12, 2017 6:18 pm
Forum: Ideas
Topic: Sails Without Wind
Replies: 0
Views: 778

Sails Without Wind

Endless worlds are joined by a waterless sea. Strange indeed are the vessels that sail between them, slipping through nexuses known only to a few. Stranger still are the wanderers, the itchy-footed travellers driven to see as many worlds as they can. They go where the currents of life take them and ...
by Queex
Wed Apr 12, 2017 4:59 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] New GUI choice prompt without narrator
Replies: 3
Views: 581

[SOLVED] New GUI choice prompt without narrator

If I'm using the setting for the choice prompt to appear as an unselectable entry in the choice list, rather than in the say box, is it possible to specify styles for that prompt in the new gui? It seems like it should be easy enough, but the style inspector implies it's the same styling as the entr...
by Queex
Sun Apr 09, 2017 7:24 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Choice menu with additional info pane
Replies: 10
Views: 2978

Re: Choice menu with additional info pane

I believe I have it licked, functionally. screen choice(items): default choice_context=None style_prefix "choice" frame: has vbox for i in items: if '|' in i.caption: textbutton i.caption.split('|')[0] action i.action hovered SetScreenVariable("choice_context", i.caption.split('|...
by Queex
Sun Apr 09, 2017 7:08 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Choice menu with additional info pane
Replies: 10
Views: 2978

Re: Choice menu with additional info pane

Do you want a pop up screen or a screen that is ever present? Ideally something that quietly hides itself if there is no context data. Eventually I want to style the choice menus so they're nice and compact in one corner, with the contextual panel in the facing corner if present. I tried to get fan...
by Queex
Sat Apr 08, 2017 4:41 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Choice menu with additional info pane
Replies: 10
Views: 2978

Re: Choice menu with additional info pane

So some further digging in https://www.renpy.org/doc/html/screens.html suggests that I can give the items a hover action to change a screen variable. Then, I think, I can reference that screen variable and display it in a window, as defined in the choice window. However, I think then I need to manua...
by Queex
Sat Apr 08, 2017 3:13 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Choice menu with additional info pane
Replies: 10
Views: 2978

[SOLVED] Choice menu with additional info pane

This seems like it should be a question that already has an answer, but my googling has let me down. What I want is something that behaves like the standard choice menu, except that there is an additional window providing more information on the currently highlighted choice. So when a new option is ...
by Queex
Sun Mar 13, 2016 2:03 pm
Forum: Ren'Py Questions and Announcements
Topic: Text in custom displayables
Replies: 5
Views: 949

Re: Text in custom displayables

It's inside the render() method of a class extending Displayable; so bare renpy directives didn't work. def render(self, width, height, st, at): child_render=renpy.render(self.child, width, height, st, at) self.width, self.height = child_render.get_size() self.width+=40 self.height+=40 name=renpy.te...
by Queex
Sun Mar 13, 2016 1:32 pm
Forum: Ren'Py Questions and Announcements
Topic: Text in custom displayables
Replies: 5
Views: 949

Re: Text in custom displayables

None of that is usage within a custom Displayable object. Surely nothing involving a show method is applicable? What I think I need is the pure python invocation of creating a text object, but that's what I can't find any documentation of. I'm sorry, but an uncaught exception occurred. While running...
by Queex
Sun Mar 13, 2016 10:51 am
Forum: Ren'Py Questions and Announcements
Topic: Text in custom displayables
Replies: 5
Views: 949

Text in custom displayables

I want to add a text object to the custom displayable I'm writing; but can't find an example to work from. Adding images is simple enough, using the example in the manual, but I'm foxed at trying to add text. Using renpy.displayable() seems to require the displayable to be registered in renpy, and t...