Login / Registrieren
DE EN FR ES IT CZ
Zurück Nach oben

Scroll Text in Interfaces?

  • #1, by constantin 8 years ago Zitieren
    Is there a possibility to scroll text? I have an interface with info-text. I would like the user to be able to scroll this info-text with arrows up and down. But I found out, it is not possibly to move buttons (I was thinking about just moving the button, where the text was shown.)
    thanks in advance. 
  • #2, by sebastian 8 years ago Zitieren
    yes, it is. Use the scrollpane feature for lua which is mentioned in the API docs:


    the background graphic you define there is split up into 9 parts. the corners and the connecting sides + inner area which gets stretched.

    SimonS updated the script there a few days ago.

    The Object you define at the addtext line has to be the id for an display *** text action part (right click > copy ID). The text in it gets displayed then.
  • #3, by constantin 8 years ago Zitieren
    Great thank you
  • #4, by constantin 8 years ago Zitieren
    The Object you define at the addtext line has to be the id for an display *** text action part (right click > copy ID). The text in it gets displayed then.

    I am still on version 4.2.5. is there an easy way to find out the id there?
    I also dont know, how to use it. 
  • #5, by sebastian 8 years ago Zitieren
    uff... im not even sure und if the scrollpane feature is available in 4.x.
    At least it worked a bit different. 

    To get the id in 4.x,right click on that object and select "dump to log" (or something like that). that should appear nownin the vs editor log file
  • #6, by constantin 8 years ago Zitieren
    ok :-) thank you anyway. i will switch to v5 for the next game i do.
  • #7, by sebastian 8 years ago Zitieren
    ah, i remember 4.x games from daedalic which have scrollpanes used (night of the rabbit > diary). So it should be possible but i guess SimonS has to describe how the scrollpane script was used back then.
  • #8, by SimonS 8 years ago Zitieren
    They manually programmed these scroll panels.
  • #9, by sebastian 8 years ago Zitieren
    They manually programmed these scroll panels.

    ah, okay. So to solve this mystery: 4.2.5 doesnt have this ability built in ?
  • #10, by SimonS 8 years ago Zitieren
    No, they're possible since 5.0.3
  • #11, by constantin 8 years ago Zitieren
    ok, thanks for the info - :-)