Page 1 of 1

[SOLVED] doesn't work this code after update

Posted: Mon Oct 19, 2020 1:45 am
by wtfman
before update version 7.3.5, I've used 6.99. I made this code for showing tooltip text.

Code: Select all

screen maptext(mtext):    
    side "c b r":
        area (700, 45, 220, 280)
        viewport id "maptooltiptext":
            draggable False
            text "{color=#00ff00}{size=16}[mtext]{/size}{/color}" xpos 700 ypos 45 language "korean-with-spaces"

screen mapcontrol:
    mousearea:
        area(295,10,180,45) hovered Show('maptext', mtext = "blah blah blah\nnext line\nanother next line") unhovered Hide('maptext', transition=dissolve)
    mousearea:
        area(182, 169, 185,100) hovered Show('maptext', mtext = "tooltiptextanything") unhovered Hide('maptext', transition=dissolve)
    mousearea:
        area(407, 169,185,100) hovered Show('maptext', mtext = "114514") unhovered Hide('maptext', transition=dissolve)
        
call screen mapcontrol
https://i.ibb.co/ZGwFcdn/screenshot0002.png
worked well in 6.99 (screenshot)

like this. use 'mousearea' to show help text by hover the cursor
it works in 6.99 version. when I hovered mouse somewhere fixed coordination, [mtext] appears in right. but after update, it makes an error


File "renpy/common/000statements.rpy", line 531, in execute_call_screen
store._return = renpy.call_screen(name, *args, **kwargs)
Exception: A side has the wrong number of children.


I don't guess what's the problem. Would someone help me?

Re: doesn't work this code after update

Posted: Mon Oct 19, 2020 7:32 am
by nananame
It says you supplied the wrong number of children to your "side" statement.

You supplied "c b r" but you just have your viewport in there.
https://www.renpy.org/doc/html/screens.html#side

Re: doesn't work this code after update

Posted: Mon Oct 19, 2020 7:45 am
by wtfman
thanks. I fixed and it works well now. but if it is a wrong code, why worked normally in older version?