Oh ok
What is the exact problem with the scrollbar?
Search found 737 matches
- Thu May 07, 2020 12:41 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Trying to make a scrolling menu within a screen
- Replies: 29
- Views: 1127
- Thu May 07, 2020 12:40 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Trying to make a scrolling menu within a screen
- Replies: 29
- Views: 1127
Re: Trying to make a scrolling menu within a screen
Something I missed: The xalign in the text style is redundant with the align in the button. You can put the align into the style. That said, I have absolutely no idea why only your first button is sensitive. Are you on the discord server? It's perfect for quick questions and a lot of people who know...
- Thu May 07, 2020 12:24 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Input text multiple times - How to make each input unique?
- Replies: 3
- Views: 341
Re: Input text multiple times - How to make each input unique?
The problem is that you have exactly one variable for your message and that you reference this variable in msg="[note]". You see, this adds the string "[note]" to your fflog and whenever this is printed, the variable note will fill that in. Try $ fflog.add_chat(msg=note, nick=&qu...
- Thu May 07, 2020 12:07 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Trying to make a scrolling menu within a screen
- Replies: 29
- Views: 1127
Re: Trying to make a scrolling menu within a screen
Very strange. This works for me, change the numbers and see if it works for you too: style my_button is button: # this will change all buttons in screens that have the style_prefix 'my' xalign 0.5 xsize 318 ysize 65 background "images/[prefix_]buttonlong.png" # auto-assigns idle_, hover_ a...
- Thu May 07, 2020 11:34 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Trying to make a scrolling menu within a screen
- Replies: 29
- Views: 1127
Re: Trying to make a scrolling menu within a screen
You have to give the button dimensions. By default it will be as small as possible and because the background is not a child like the text, the image will just spill out. Try giving it a width and height (might be xsize and ysize, however big you want the button to be) and also position the text wit...
- Thu May 07, 2020 11:10 am
- Forum: Ren'Py Questions and Announcements
- Topic: Problem with if statements
- Replies: 2
- Views: 256
Re: Problem with if statements
Capitalization matters. "Drama" is not == "drama"
- Thu May 07, 2020 10:19 am
- Forum: Ren'Py Questions and Announcements
- Topic: Music doesn't fadeout
- Replies: 2
- Views: 247
Re: Music doesn't fadeout
That solution will first fade out the old music, then fade in the new one. For a cross-fade, you can use a second channel: default active_music_channel = 'music' # stores which channel is playing and which not default inactive_music_channel = 'music2' init python: renpy.music.register_channel('music...
- Thu May 07, 2020 9:04 am
- Forum: Ren'Py Questions and Announcements
- Topic: Invetory items quantity
- Replies: 6
- Views: 430
Re: Invetory items quantity
Somehow I never expect predefined classes to have methods that go beyond any basic functionality, but this is python after all ...
- Thu May 07, 2020 7:35 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Trying to make a scrolling menu within a screen
- Replies: 29
- Views: 1127
Re: Trying to make a scrolling menu within a screen
You can use idle_background, hover_background etc. in a button to set those images.
- Thu May 07, 2020 6:08 am
- Forum: Ren'Py Questions and Announcements
- Topic: Invetory items quantity
- Replies: 6
- Views: 430
Re: Invetory items quantity
That's easy to do. Just run a loop that counts the occurrences of "pizza":
Code: Select all
init python:
def count(what):
c = 0
for i in inventory:
if i == what:
c += 1
return c
- Thu May 07, 2020 4:28 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Trying to make a scrolling menu within a screen
- Replies: 29
- Views: 1127
Re: Trying to make a scrolling menu within a screen
You can use button instead of imagebutton and layer images and text inside it: button: add "button.png" text "Click Me" action MyAction() # other button stuff But then you can't use idle, hover etc. It IS possible to use an image and text as we see in the choice screens, but that...
- Thu May 07, 2020 3:46 am
- Forum: Ren'Py Questions and Announcements
- Topic: Call a function in RenPy
- Replies: 6
- Views: 354
Re: Call a function in RenPy
It is important that you understand why this is so: The normal script you use with labels and dialogue lines is not Python, it is Ren'Py script. Functions and most programming is Python only, except for a few things that also work in Ren'Py script because they were implemented, like "if"-c...
- Thu May 07, 2020 3:14 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Trying to make a scrolling menu within a screen
- Replies: 29
- Views: 1127
Re: Trying to make a scrolling menu within a screen
viewport id "nicomenu": scrollbars "vertical" mousewheel True arrowkeys True vbox: imagebutton idle "button1.png" action MyAction() imagebutton idle "button2.png" action MyAction() imagebutton idle "button3.png" action MyAction() # and so on Changin...
- Thu May 07, 2020 3:04 am
- Forum: Ren'Py Questions and Announcements
- Topic: Invetory items quantity
- Replies: 6
- Views: 430
Re: Invetory items quantity
You could use a [name, number] list to store your inventory items. Then you would access the name by that_item[0] and the number by that_item[1]. Alternatively, make a class: init python: class Item: def __init__(self, name, number): self.name = name self.number = number Then do default inventory = ...
- Wed May 06, 2020 4:02 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved] Run code every line?
- Replies: 6
- Views: 511