Search found 53 matches

by Pierrou
Tue Jan 20, 2015 6:48 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] How to scroll Viewport with Imagebutton ?
Replies: 27
Views: 6191

Re: How to scroll Viewport with Imagebutton ?

My ability to help you without access to code/resources is very limited in this case. I pasted the whole code before. Do you need something else ? Tell me :) Did you try setting something like child_size (800, 10000)? Maybe it will help. Viewport is coded in such a way that even if child is huge, a...
by Pierrou
Tue Jan 20, 2015 6:20 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] How to scroll Viewport with Imagebutton ?
Replies: 27
Views: 6191

Re: How to scroll Viewport with Imagebutton ?

My point remains the same, did you try: default adj = NewAdj(changed = store_yvalue, step = 300) instead of: $ adj = NewAdj(changed = store_yvalue, step = 300) Yes... Same problem... When i hit the button i jump to the first line instead of go 1 line up. If you want to use my code, your code needs ...
by Pierrou
Tue Jan 20, 2015 5:55 pm
Forum: Ren'Py Questions and Announcements
Topic: Stupid error codes in Ren'py -_-
Replies: 1
Views: 441

Re: Stupid error codes in Ren'py -_-

As the error says, you need to indent well your lines ;) label girl: $ bl_game=False "The lecture was pretty time consuming, but at least I learned some things....The overall lecture was good." "The one thing I was thinking about though was that one question." "The question I've been meaning to ask ...
by Pierrou
Tue Jan 20, 2015 5:32 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] How to scroll Viewport with Imagebutton ?
Replies: 27
Views: 6191

Re: How to scroll Viewport with Imagebutton ?

I dind't paste the whole code cause it's really huge. But i forget to paste this : init python: yvalue = 1.0 class NewAdj(renpy.display.behavior.Adjustment): def change(self,value): if value > self._range and self._value == self._range: return Return() else: return renpy.display.behavior.Adjustment....
by Pierrou
Tue Jan 20, 2015 4:48 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] How to scroll Viewport with Imagebutton ?
Replies: 27
Views: 6191

Re: How to scroll Viewport with Imagebutton ?

I tried to use your function :) This is my code : screen text_history: #use navigation tag menu key "b" action Return() if not current_line and len(readback_buffer) == 0: $ lines_to_show = [] elif current_line and len(readback_buffer) == 0: $ lines_to_show = [current_line] elif current_line and not ...
by Pierrou
Tue Jan 20, 2015 2:04 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] How to scroll Viewport with Imagebutton ?
Replies: 27
Views: 6191

Re: How to scroll Viewport with Imagebutton ?

Yes and that's why i don't want to put a scrollbar but only 4 imagebutton ^^
by Pierrou
Tue Jan 20, 2015 1:46 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] How to scroll Viewport with Imagebutton ?
Replies: 27
Views: 6191

Re: How to scroll Viewport with Imagebutton ?

Hahaha thank you again Xela ;) I already found ui.adjustment statement : http://www.renpy.org/doc/html/screen_python.html#ui.adjustment But it's hard to understand how it works :o I found many threads in the forum. No one of them use imagebutton but they are using "bar"... My navigation is like this...
by Pierrou
Tue Jan 20, 2015 12:16 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] How to scroll Viewport with Imagebutton ?
Replies: 27
Views: 6191

[SOLVED] How to scroll Viewport with Imagebutton ?

Hi again :) I'm using this code http://www.renpy.org/wiki/renpy/doc/cookbook/Text_History for a readback. I try to use some button for the navigation. But i can't make the screen scrolling when you hit the button. I tried this code : imagebutton auto "image/ui/backlog/previous_page_%s.png" xpos 745 ...
by Pierrou
Mon Jan 19, 2015 8:57 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] QuickLoad() function for last manual saved game
Replies: 20
Views: 3305

Re: Different QuickLoad() function ? (for last saved game)

My bad sorry ! I didn't understand that Ren'Py need the hover statement. I thought i could put idle only for a locked button. This is the code if someone is looking at this :) Thank you Xela and Qirien for your help ! <3 screen raccourcis: key "mouseup_3" action If(renpy.get_screen("pop_up_raccourci...
by Pierrou
Mon Jan 19, 2015 5:41 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] QuickLoad() function for last manual saved game
Replies: 20
Views: 3305

Re: Different QuickLoad() function ? (for last saved game)

Of course :) screen raccourcis: key "mouseup_3" action If(renpy.get_screen("pop_up_raccourcis"), Hide("pop_up_raccourcis"), Show("pop_up_raccourcis")) screen pop_up_raccourcis: tag menu zorder 90 hbox: default mouse_clicked = False fixed at KeymapTransform([('mousedown_1', SetScreenVariable('mouse_c...
by Pierrou
Mon Jan 19, 2015 5:15 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] QuickLoad() function for last manual saved game
Replies: 20
Views: 3305

Re: Different QuickLoad() function ? (for last saved game)

You should really figure out how buttons work before working with this. Otherwise the error lights up because you didn't specify hover image for your imagebutton. Either add that or use If() action for the normal button. Asceai gave us this code a while back that made it possible to use the variabl...
by Pierrou
Mon Jan 19, 2015 11:29 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] QuickLoad() function for last manual saved game
Replies: 20
Views: 3305

Re: Different QuickLoad() function ? (for last saved game)

I know that imagebutton are like that :

Code: Select all

imagebutton auto "image/ui/save_%s.png" xpos x ypos 136 focus_mask None action ShowMenu('save')
But you should really figure out that this code can't show the "clicked" option :

idle
hover
ground
selected_idle
selected_hover

There's is no "on click".
by Pierrou
Mon Jan 19, 2015 2:19 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] QuickLoad() function for last manual saved game
Replies: 20
Views: 3305

Re: Different QuickLoad() function ? (for last saved game)

Oops :3 I answer too fast ^^° I've 2 bugs : 1) I tried to add a "lock button" when there's no manual saves $ recent_save = renpy.newest_slot(r"\d+") if (recent_save is not None): $ recent_save_page, recent_save_name = recent_save.split("-") imagebutton idle "image/ui/raccourcis/select_idle.png" hove...
by Pierrou
Mon Jan 19, 2015 1:07 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] QuickLoad() function for last manual saved game
Replies: 20
Views: 3305

Re: Different QuickLoad() function ? (for last saved game)

It works fine ! Thank you so much for this help <3
by Pierrou
Sun Jan 18, 2015 10:06 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] QuickLoad() function for last manual saved game
Replies: 20
Views: 3305

Re: Different QuickLoad() function ? (for last saved game)

Hmmm, I'm not sure. Maybe add a debugging statement to see if it has found your saved games: $ recent_save = renpy.newest_slot("[^_]") text recent_save #This should print the save name that it found. It shows "auto-1". It doesn't find the save but the autosave but i think it works... I tried to sav...