Search found 1736 matches

by nyaatrap
Fri Dec 16, 2016 9:58 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] A way to change properties of screen element?
Replies: 5
Views: 388

Re: Is there a way to change properties of screen element?

Ocelot wrote:
you could use id
It is interesting too, is there any examples? Documentation doesn't tell anything useful about id at all.
Yeah that's the problem. There's no documentation so it needs to search ren'py folder directly.
by nyaatrap
Fri Dec 16, 2016 9:54 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Possible to reset multiple persistent variables?
Replies: 4
Views: 466

Re: is it possible to mass reset multiple persistent variabl

Like this?

Code: Select all

init python:
    for i in xrange(100):
        setattr(persistent, "trig"+str(i), 0)
by nyaatrap
Fri Dec 16, 2016 9:40 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] A way to change properties of screen element?
Replies: 5
Views: 388

Re: Is there a way to change properties of screen element?

Code: Select all

screen something(color=style.menu_text.color):
   text "smg" color color
I don't know what is the faster way, it's depending on your screen's complexity.
by nyaatrap
Fri Dec 16, 2016 9:17 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] A way to change properties of screen element?
Replies: 5
Views: 388

Re: Is there a way to change properties of screen element?

screen something(styling="a"): style_prefix styling style a_something: style b_something:#write anything Won't something like this work? You could also use if clause for style_prefix. For example when defining character, you can pass something like who_color='#000' and it would passed as a color pr...
by nyaatrap
Mon Dec 12, 2016 8:33 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]if [config.version] >= 0.2.2 (Is this possible?)
Replies: 5
Views: 444

Re: if [config.version] >= 0.2.2 (Is this possible?)

If you're mentioning user's savedata, its code won't work. Configs are not saved in user's save data. You should define persistent data then check it in the label after_load.
by nyaatrap
Sun Dec 11, 2016 12:20 pm
Forum: Ren'Py Questions and Announcements
Topic: Ren'Py 6.99.12 Prereleased
Replies: 48
Views: 4926

Re: Ren'Py 6.99.12 Prereleased

I'm third on this, though it's not a major issue. I'd appreciate if this matter fixed in the future.
by nyaatrap
Sat Dec 10, 2016 10:21 am
Forum: Ren'Py Questions and Announcements
Topic: Scrollbar In-Game Menu Coding?
Replies: 7
Views: 1364

Re: Scrollbar In-Game Menu Coding?

Wrap viewport by fixed or frame, giving its xysize. You only need to modify screens.rpy. screen choice(items): style_prefix "choice" fixed pos (x,y) xysize (x,y): #or frame, window viewport: scrollbars "vertical" mousewheel True draggable True side_yfill True vbox: for i in items: textbutton i.capti...
by nyaatrap
Fri Dec 09, 2016 3:48 pm
Forum: Ren'Py Questions and Announcements
Topic: Scrollbar In-Game Menu Coding?
Replies: 7
Views: 1364

Re: Scrollbar In-Game Menu Coding?

Add viewport on the choice screen in screens.rpy. screen choice(items): style_prefix "choice" viewport: scrollbars "vertical" mousewheel True draggable True side_yfill True vbox: for i in items: textbutton i.caption action i.action
by nyaatrap
Fri Dec 09, 2016 7:30 am
Forum: Ren'Py Questions and Announcements
Topic: How to use retain after load to save values?
Replies: 7
Views: 896

Re: How to use retain after load to save values?

Ren'Py saves data of the current rollback memory. It means changing variables in a same screen won't be saved, except you added $ renpy.retain_after_load() directly before showing it's screen. You have to call this function every time before showing screens that modifies variables.
by nyaatrap
Mon Dec 05, 2016 2:03 pm
Forum: Ren'Py Questions and Announcements
Topic: Ren'Py 6.99.12 Prereleased
Replies: 48
Views: 4926

Re: Ren'Py 6.99.12 Prereleased

Oh BTW, don't you think to hide 'roll back side' from unrelated hardwares? The first time I saw it, I though 'what the fuck this preference'. Now I know this is for touch hardwares, but still I think it's annoying to see this preference on unrelated hardwares.
by nyaatrap
Mon Dec 05, 2016 1:30 pm
Forum: Ren'Py Questions and Announcements
Topic: Ren'Py 6.99.12 Prereleased
Replies: 48
Views: 4926

Re: Ren'Py 6.99.12 Prereleased

I remember that 'disappearing scrollbars issue'. I thought this is came form my own code problem, but it looks it happens more majorly.
by nyaatrap
Sat Dec 03, 2016 1:55 pm
Forum: Ren'Py Questions and Announcements
Topic: Ren'Py 6.99.12 Prereleased
Replies: 48
Views: 4926

Re: Ren'Py 6.99.12 Prereleased

Donmai wrote:The only problem that persists is that Ren'Py keep showing English names for the month and day of the week.
I think this is a problem I also got. I couldn't find what is an issue exactly so didn't reported yet.
by nyaatrap
Fri Dec 02, 2016 8:43 am
Forum: Asset Creation: Writing
Topic: Knowing many VNs make your writing richer or more biased?
Replies: 7
Views: 1157

Re: Knowing many VNs make your writing richer or more biased

Knowing ONLY VNs could make your writing more biased.
Knowing many arts always make your writing richer.
by nyaatrap
Fri Dec 02, 2016 8:38 am
Forum: Ren'Py Questions and Announcements
Topic: Languages in new GUI Interface
Replies: 2
Views: 277

Re: Languages in new GUI Interface

No language is translated for new gui yet. Currently, you have to translate files by yourself.
by nyaatrap
Tue Nov 29, 2016 6:42 am
Forum: Ren'Py Questions and Announcements
Topic: Need help with attribute error
Replies: 4
Views: 542

Re: Need help with attribute error

You have to define setter.

Code: Select all

@TOTAL_CURRENT_HP.setter
def TOTAL_CURRENT_HP(self, value)