In this forum we discuss the future of Ren'Py, both bug fixes and longer-term development. Pre-releases are announced and discussed here.
-
drKlauz
- Veteran
- Posts: 239
- Joined: Mon Oct 12, 2015 3:04 pm
-
Contact:
#1
Post
by drKlauz »
This works:
Code: Select all
textbutton 'Test textbutton':
action ShowMenu('load')
default True
And this works:
Code: Select all
button default True:
text 'Test button'
action ShowMenu('preferences')
And this works:
Code: Select all
button:
text 'Test button'
action ShowMenu('preferences') default True
But this fail to run with "Expected '=' not found" at "default True" line:
Code: Select all
screen test:
vbox:
button:
text 'Test button'
action ShowMenu('preferences')
default True
label start:
call screen test
return
Is it parser bug or am i missing something important?
-
Imperf3kt
- Lemma-Class Veteran
- Posts: 3791
- Joined: Mon Dec 14, 2015 5:05 am
- itch: Imperf3kt
- Location: Your monitor
-
Contact:
#2
Post
by Imperf3kt »
What does default True do? I cannot find mention of it in the documentation.
https://www.renpy.org/doc/html/gui.html#buttons
I think the error is asking you to define something
Inside a button is not the correct place though.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project:
GGD Mentor
Twitter
-
rames44
- Veteran
- Posts: 233
- Joined: Sun May 29, 2016 4:38 pm
-
Contact:
#4
Post
by rames44 »
Looks like a bug. I'd put in an issue over on GitHub.
Users browsing this forum: No registered users