Search found 51 matches

by tofuuu
Thu Aug 23, 2018 6:21 pm
Forum: Ren'Py Questions and Announcements
Topic: How to access Python class in Renpy?
Replies: 6
Views: 136

Re: How to access Python class in Renpy?

But if i use init python, i can't access renpy.input, since i want to ask user for their input :(
by tofuuu
Wed Aug 22, 2018 10:52 pm
Forum: Ren'Py Questions and Announcements
Topic: How to access Python class in Renpy?
Replies: 6
Views: 136

Re: How to access Python class in Renpy?

ah solved it! i should put the python block inside the start label. Thank you! Hope you have a good day :)
by tofuuu
Wed Aug 22, 2018 10:18 pm
Forum: Ren'Py Questions and Announcements
Topic: How to access Python class in Renpy?
Replies: 6
Views: 136

How to access Python class in Renpy?

Hi! I'm sorry if you saw me too often. I was playing around with renpy and python, so i tried to access a python class in renpy. I want to get user input for the numbers, but somehow it didn't work, Btw i know this code isn't applied for visual novel, i just took an easiest example to tested out. So...
by tofuuu
Wed Aug 22, 2018 12:33 am
Forum: Ren'Py Questions and Announcements
Topic: get_sensitive() and get_selected() methods in FileLoad() class (in 00action_file.rpy)
Replies: 1
Views: 67

get_sensitive() and get_selected() methods in FileLoad() class (in 00action_file.rpy)

def get_sensitive(self): if _in_replay: return False return renpy.can_load(__slotname(self.name, self.page)) def get_selected(self): if not self.confirm or not self.newest: return False return __newest_slot() == __slotname(self.name, self.page) Can you help me about this methods, when will this met...
by tofuuu
Wed Aug 22, 2018 12:28 am
Forum: Ren'Py Questions and Announcements
Topic: How to change hover color of slots?
Replies: 1
Views: 74

How to change hover color of slots?

When a slot hovered, there's that vertical bar(i don't know actually what is that called).
1.png
1.png (59.05 KiB) Viewed 74 times
3.png
3.png (1.35 KiB) Viewed 74 times
2.png
2.png (1.57 KiB) Viewed 74 times
I don't have a problem to change the color of the text (the filetime) but how can I change that left bar color when we hovered a slot? Thank you!
by tofuuu
Tue Aug 21, 2018 11:16 pm
Forum: Ren'Py Questions and Announcements
Topic: How to get current text speed?
Replies: 3
Views: 68

Re: How to get current text speed?

Btw, in case someone need the code

Code: Select all

    python:
        def get_speed():
            return _preferences.text_cps
    $ current_speed = get_speed()
    label _("Text Speed ([cur_speed)")
it shows the value of your text speed beside the Text Speed text :)
by tofuuu
Tue Aug 21, 2018 11:11 pm
Forum: Ren'Py Questions and Announcements
Topic: How to get current text speed?
Replies: 3
Views: 68

Re: How to get current text speed?

Ah so i still can access it. Thank you Kia for your answer!
by tofuuu
Tue Aug 21, 2018 8:58 pm
Forum: Ren'Py Questions and Announcements
Topic: How to get current text speed?
Replies: 3
Views: 68

How to get current text speed?

Hi, so umm it's me again.

Since we can change text speed through slider, can we get the value of text speed that has changed? Is there any renpy function that return value from a slider? Thank you.
by tofuuu
Tue Aug 21, 2018 3:17 pm
Forum: Ren'Py Questions and Announcements
Topic: Can we draw Renpy Scripts to Class Diagram?
Replies: 5
Views: 133

Re: Can we draw Renpy Scripts to Class Diagram?

Um... Okay i'll try to explain as clear as i can. Let me know if it's not clear enough 😅 So, in screen.rpy there's some renpy classes that we used, like Frame(), Preference(), FileAction() and manymore. To use it, we don't need to make an object so we can call it. We just stated out in the script li...
by tofuuu
Sun Aug 19, 2018 9:48 pm
Forum: Ren'Py Questions and Announcements
Topic: Can we draw Renpy Scripts to Class Diagram?
Replies: 5
Views: 133

Re: Can we draw Renpy Scripts to Class Diagram?

Yes, i know that renpy used python and we can create a block of class using python. But, as i stated above that i didn't create any classes by myself. I just used the basic renpy script for my game.

However, thank you for your answer trooper6 :)
by tofuuu
Sun Aug 19, 2018 7:25 pm
Forum: Ren'Py Questions and Announcements
Topic: Can we draw Renpy Scripts to Class Diagram?
Replies: 5
Views: 133

Can we draw Renpy Scripts to Class Diagram?

Hi! I wonder can we draw renpy scripts to a class diagram? I use the basic renpy code (i don't add my own class in the script with python). But when I read renpy documentation, it has Classes and Functions (https://www.renpy.org/doc/html/py-function-class-index.html). So, back to my first question, ...
by tofuuu
Sun Aug 19, 2018 7:20 pm
Forum: Ren'Py Questions and Announcements
Topic: How to Reset Preference Setting?
Replies: 4
Views: 153

Re: How to Reset Preference Setting?

I just realized that it will be bothersome for player if the preference got restart when the game started. So i'll use the Restart button. Thank you for your answer!
by tofuuu
Wed Aug 15, 2018 12:32 am
Forum: Ren'Py Questions and Announcements
Topic: How to change Page Name(Title) in load/save screen to a Text not a Button?
Replies: 3
Views: 119

Re: How to change Page Name(Title) in load/save screen to a Text not a Button?

In save/load screen there's screenshot and the file time. So the file time name will be added first and then followed by screenhot?
Kia wrote:
Tue Aug 14, 2018 11:40 am
order_reverse causes the items in a hbox or vbox to be added in reverse order you need more than one item in the box to see it's effect