Search found 485 matches

by gas
Sat Jan 25, 2020 8:21 pm
Forum: Ren'Py Questions and Announcements
Topic: How do I get a integer from FilePageNameInputValue?
Replies: 1
Views: 31

Re: How do I get a integer from FilePageNameInputValue?

FileCurrentPage()
Returns the current file page as a string.

So, probably

Code: Select all

$ page_num=int(FileCurrentPage())
But beware that this turn a bit messy if you're in the "quick" or "auto" page.
by gas
Sat Jan 25, 2020 8:00 pm
Forum: Ren'Py Questions and Announcements
Topic: Slider thumb image looks pixelated?
Replies: 1
Views: 40

Re: Slider thumb image looks pixelated?

Apply to the thumb image style properties.

Code: Select all

thumb "gui/slider/horizontal_[prefix_]thumb.png" xsize 20 ysize 50
Obviously change with your values.
That should do the trick.
by gas
Tue Jan 21, 2020 4:54 am
Forum: Ren'Py Questions and Announcements
Topic: I have two loading screens by mistake?
Replies: 6
Views: 162

Re: I have two loading screens by mistake?

Sorry, but you're continually posting a navigation screen calling it "main menu", and not the actual main_menu().

I'm quite sure the whole error come from a wrong main_menu() screen and contexts, but I can't tell until you post that code.
by gas
Mon Jan 20, 2020 2:06 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]List and Index
Replies: 2
Views: 54

Re: List and Index

EDIT (my bad).

That's exactly what dictionaries are made for.

Code: Select all

default mylist = {"Event1": False, "Event2": False}
and use default, not define, you want to apply some change.
by gas
Mon Jan 20, 2020 7:21 am
Forum: Ren'Py Questions and Announcements
Topic: Button "PRESSED" state, I got it working! Or I should say [SOLVED]
Replies: 2
Views: 105

Re: Button "PRESSED" state, I got it working! Or I should say [SOLVED]

You should post it in the cookbook section too, people can find it helpfull.
by gas
Mon Jan 20, 2020 7:13 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]A Call Label in A For Loop
Replies: 3
Views: 66

Re: A Call Label in A For Loop

I don't see the point when you can use a 'call expression' instead of using python equivalents. Anyway, the call statement push the NEXT statement in the return stack (for obvious reasons), so probably the iterator method isn't just called again after the first iteration. You can try a while: statem...
by gas
Mon Jan 20, 2020 6:39 am
Forum: Ren'Py Questions and Announcements
Topic: Custom load slot screenshot [SOLVED]
Replies: 8
Views: 136

Re: Custom load slot screenshot [help]

You can use a JSON function to determine a slot icon to show based on game values. Let's pretend you have a value called 'lover', that register the character you're dating. There are 3 of them, with a value from 0 to 2 to identify them. If you're dating no one, you have your face instead. Add the JS...
by gas
Mon Jan 20, 2020 6:30 am
Forum: Ren'Py Questions and Announcements
Topic: How to 'stop' game when I show player interactivemap?
Replies: 7
Views: 109

Re: How to 'stop' game when I show player interactivemap?

strayerror wrote:
Sun Jan 19, 2020 11:38 pm
...
[/code]
You don't need a Return() that way, you can simply Hide() as action. That doesn't require the need to directly hide the screen.
Anyway, I suppose that button is there to actually show somethingm, probably that map screen... Who knows XD.
by gas
Sun Jan 19, 2020 8:15 pm
Forum: Ren'Py Questions and Announcements
Topic: How to 'stop' game when I show player interactivemap?
Replies: 7
Views: 109

Re: How to 'stop' game when I show player interactivemap?

I dunno if you want for that "text" to stay put, but more probably what you want for is to CALL that screen. call screen mybutton The execution stop until something do a Return action. Your button can Show another screen the same and execution doesn't proceed as long as you don't give a Return actio...
by gas
Fri Jan 17, 2020 8:32 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Custom hovering on save slot buttons
Replies: 5
Views: 132

Re: Custom hovering on save slot buttons

I think is the top_padding of this style definition you can find in the game_menu screen.

Code: Select all

style game_menu_outer_frame:
    bottom_padding 25
    top_padding 100

    background "gui/overlay/game_menu.png"
(but I can't test it right now).
by gas
Fri Jan 17, 2020 6:46 pm
Forum: Ren'Py Questions and Announcements
Topic: I have two loading screens by mistake?
Replies: 6
Views: 162

Re: I have two loading screens by mistake?

The game_menu lack the 'use navigation' statement. Original screen: side_yfill True transclude else: transclude use navigation ### <--- THIS one textbutton _("Return"): style "return_button" action Return() label title And so I'm asking again how your main menu buttons are actually displaying XD.
by gas
Fri Jan 17, 2020 1:21 pm
Forum: Creator Discussion
Topic: Enrich a dialogue only experience
Replies: 5
Views: 189

Re: Enrich a dialogue only experience

I may be missing your question (feel free to correct me if I'm wrong!), but a LOT of VNs are, more or less, click to talk to someone. (I'd argue that this is more or less what all of them are.) Dating sims, in particular, are "click to talk to someone" games in general. (Although there may be plot ...
by gas
Fri Jan 17, 2020 7:01 am
Forum: Creator Discussion
Topic: Enrich a dialogue only experience
Replies: 5
Views: 189

Enrich a dialogue only experience

Premise. I was fascinated for some reason of mine by the very simple dialogue phase of Match of The Millennium , for NeoGeoPocket. In the Olympic section you can talk both to Karin or Rimururu. Each time a random tense is sorted out. Tenses become more and more intimate the more Medals you'll colle...
by gas
Fri Jan 17, 2020 6:35 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Custom hovering on save slot buttons
Replies: 5
Views: 132

Re: Custom hovering on save slot buttons

That blue border is in fact a graphical .png picture, not a style definition. You should change the picture in the GUI folder with the one with proper borders. And you should adjust size and paddings of the slot area in the GUI definition script, as they have a left padding for that blue border by d...