Page 1 of 1

Error: end of line expected

Posted: Tue Apr 19, 2022 12:50 pm
by neometalero
I have this screen that shows with a transformation

Code: Select all

show screen palabraIra at saltoRapido
but Im getting the error "end of line expected", no idea what im doing wrong.

Re: Error: end of line expected

Posted: Tue Apr 19, 2022 1:14 pm
by Xiael
Does the error go away if you delete "at saltoRapido"?
If yes then you can't use transforms with screens. What you can do is that you can but the transform inside your screen and add an on show/hide to it.
Like so:

Code: Select all

transform transformName:
   on show:
      alpha 0
      linear 1 alpha 1
   on hide:
      alpha 1
      linear 1 alpha 0


screen screenName:
   frame at transformName:
      text "stuff"


Re: Error: end of line expected

Posted: Tue Apr 19, 2022 3:26 pm
by neometalero
Xiael wrote:
Tue Apr 19, 2022 1:14 pm
Does the error go away if you delete "at saltoRapido"?
If yes then you can't use transforms with screens. What you can do is that you can but the transform inside your screen and add an on show/hide to it.
Like so:

Code: Select all

transform transformName:
   on show:
      alpha 0
      linear 1 alpha 1
   on hide:
      alpha 1
      linear 1 alpha 0


screen screenName:
   frame at transformName:
      text "stuff"

That was the solution, tks!

Re: Error: end of line expected

Posted: Tue Apr 19, 2022 3:32 pm
by neometalero
The only problem I have now it's the frame, there is any way to do this without the frame being shown?

Re: Error: end of line expected

Posted: Tue Apr 19, 2022 3:43 pm
by neometalero
I solved it using an imagebutton

Code: Select all

screen palabraIra:
    imagebutton at saltoRapido:
        idle "BotonesOpcion/pp01.png"
        hover "BotonesOpcion/pph01.png"
        action [Jump("situacion09IraSum")]
    text "{size=+40} [eligIra] [pers1Ira] {/size} " at saltoRapido #muestra la palabra elegida

Re: Error: end of line expected

Posted: Tue Apr 19, 2022 3:57 pm
by Alex
neometalero wrote:
Tue Apr 19, 2022 3:32 pm
The only problem I have now it's the frame, there is any way to do this without the frame being shown?
You can set frame's background to None

Code: Select all

frame:
    background None
    at saltoRapido
    text "???"