Guide-API

Guide-API

76M Downloads

(Question) How to have a dynamic entry?

Da-Technomancer opened this issue · 7 comments

commented

Sorry to bother you, but is it possible (and if so how?) to make an entry where the contents changes dynamically? By which I mean every time the entry is viewed (not just on entry creation) the contents (page list) can be changed. Specifically, I'm trying to make an entry which grows as the player discovers new things. I'm on 1.10 by the way.

commented

PageText.draw is public and nonfinal (which is arguably bad, but meh) so you should be able to change it on the fly.

commented

I already saw that, but what I was looking for was a way to change the number of pages, not just their content.

commented

Entries can be changed at any time. Just modify the Pages contained in them whenever you want to.

commented

Is there a method that's called every time a certain entry is viewed so I can change the pages then?

commented

Thanks, that should work.

commented