Search found 20 matches

by Paulaner
Wed Mar 07, 2012 3:14 am
Forum: Development of Ren'Py
Topic: Bug on underlining hyperlinks in justified text
Replies: 2
Views: 866

Bug on underlining hyperlinks in justified text

When text is justified, underlines in hyperlinks are not continuous and appear as broken lines. In my opinion this is due to the inserted whitespaces not being correctly underlined. See images below.

Image

Image
by Paulaner
Tue Feb 14, 2012 1:00 pm
Forum: Development of Ren'Py
Topic: Nasty bug on hyperlinks focus underlining
Replies: 2
Views: 775

Re: Nasty bug on hyperlinks focus underlining

I had several ui.text piled up in a vbox. Every paragraph you see in the animation was a single ui.text.
I tried summing up the whole text in a single ui.text widget and all was fine.
by Paulaner
Mon Feb 13, 2012 8:30 am
Forum: Development of Ren'Py
Topic: Nasty bug on hyperlinks focus underlining
Replies: 2
Views: 775

Nasty bug on hyperlinks focus underlining

A quick and short animation is better than words. Anyway, as you may see, when hovering on different hyperlinks, the underlining is totally messed up:

underlining focus bug animation

Using version 6.13.8.1675
by Paulaner
Mon Jan 23, 2012 7:00 pm
Forum: Ren'Py Questions and Announcements
Topic: scrolling a viewport to bottom automatically
Replies: 3
Views: 956

Re: scrolling a viewport to bottom automatically

is there any way that I can set the viewport to scroll down automatically with a python command or something? I tried looking at ui.adjustment but honestly, I didn't understand much :oops: It's not an easy task. I did it using a pure python defined screen, a ui.adjustment object and a "ranged&...
by Paulaner
Sat Jan 21, 2012 1:54 pm
Forum: Development of Ren'Py
Topic: Bug on justifying text with negative fractional kerning?
Replies: 2
Views: 1197

Re: Bug on justifying text with negative fractional kerning?

Just to confirm, is this with 6.13.8? Also, is this actually wrong? Ren'Py's justification ensures that all lines are the same length, but it doesn't pad them out to any particular width. (Which might be something to add, come to think of it.) It looks like what's happening here is that the reduced...
by Paulaner
Sat Jan 21, 2012 11:10 am
Forum: Development of Ren'Py
Topic: Bug on justifying text with negative fractional kerning?
Replies: 2
Views: 1197

Bug on justifying text with negative fractional kerning?

I'm working with justified text. Using a -0.2 kerning, the result is somewhat corrupted. See the attached pictures: Fig. 1 uses the default kerning. Fig. 2 uses a -0.2 kerning. If I don't justify text, everything is fine. Fig. 1 [default kerning] http://i39.tinypic.com/4io2kx.png Fig. 2 [-0.2 kernin...
by Paulaner
Thu Jan 19, 2012 1:26 pm
Forum: Development of Ren'Py
Topic: Bug on hyperlink focus function
Replies: 0
Views: 643

Bug on hyperlink focus function

Working with hyperlinks and hyperlink focus functions I experienced a buggy behaviour: let's suppose we have two very close hyperlinks (i.e. one directly above the other on two different lines); when I move the mouse over link1, the focus function is correctly triggering a "gain focus" eve...
by Paulaner
Thu Jan 19, 2012 12:06 pm
Forum: Ren'Py Questions and Announcements
Topic: Mouse pointer on hyperlinks
Replies: 0
Views: 452

Mouse pointer on hyperlinks

Maybe a silly question: how do I change the mouse pointer on hyperlinks? Thank you.

EDIT: I thought about using a hyperlink focus function to change config.mouse configuration on the fly, but see this bug report.
by Paulaner
Thu Jan 12, 2012 5:16 am
Forum: Ren'Py Questions and Announcements
Topic: Right-click on hyperlinks
Replies: 2
Views: 567

Re: Right-click on hyperlinks

You can change what the right click does (I think it's in the keymaps... mouse_3 or something...) but that will control all of the behavior of the right click, not just when operating a hyperlink. Yes, I know. I need a way to handle two different actions on hyperlinks, left-click and right-click, b...
by Paulaner
Wed Jan 11, 2012 1:50 pm
Forum: Ren'Py Questions and Announcements
Topic: Right-click on hyperlinks
Replies: 2
Views: 567

Right-click on hyperlinks

Let's suppose I have a python defined screen with a text full of hyperlinks. Left-click on links is handled by the regular "hyperlink_functions" property in ui.text widgets. Is there a way to handle right-clicks, too? I wish I could do one thing on left-click, and another thing on right-cl...
by Paulaner
Thu Oct 06, 2011 5:16 pm
Forum: Ren'Py Questions and Announcements
Topic: Coordinates of a displayable
Replies: 0
Views: 387

Coordinates of a displayable

renpy.focus_coordinates() finds the coordinates of the currently-focused displayable. How do I get the coordinates of any other shown displayable (i.e. obtained by a renpy.get_widget() ) ?
by Paulaner
Tue Sep 20, 2011 10:48 am
Forum: Ren'Py Questions and Announcements
Topic: Getting size of elements in a screen
Replies: 0
Views: 343

Getting size of elements in a screen

Let's suppose I have two screens. The first screen is shown, and the second screen needs to know the size of the main frame element in the first screen. (size of screen1 is not fixed, but dynamically defined by its contents). From screen2 I can get the frame widget in screen1 using something like: f...
by Paulaner
Fri Mar 04, 2011 12:05 pm
Forum: Ren'Py Questions and Announcements
Topic: Obfuscating modules and packages
Replies: 0
Views: 348

Obfuscating modules and packages

In my project, most of the logic and data structures of the main libraries are in modules and packages.

Is there a way to obfuscate the *.py sources? I don't see *.pyc files anywhere, and I don't want to distribute the whole source of my libraries.
by Paulaner
Sat Nov 06, 2010 12:47 pm
Forum: Ren'Py Questions and Announcements
Topic: Different hyperlink styles [SOLVED]
Replies: 2
Views: 1106

Re: Different hyperlink styles

That should do the trick. I could use rich hyperlink labels, parse them and code complex behaviors in the hyperlink styler.
Thank you so much.

Suggestion: how about having a hyperlink style property for text based widgets in future versions of Ren'Py ?