Page 1 of 1

Parser bug?

Posted: Wed Jun 19, 2019 12:28 pm
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?

Re: Parser bug?

Posted: Wed Jun 19, 2019 4:20 pm
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

Code: Select all

 default variable = True
Inside a button is not the correct place though.

Re: Parser bug?

Posted: Wed Jun 19, 2019 4:24 pm
by drKlauz

Re: Parser bug?

Posted: Thu Jun 20, 2019 11:03 am
by rames44
Looks like a bug. I'd put in an issue over on GitHub.