Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: on Fri 18/06/2004 05:53:08

Title: Problem with GUI
Post by: on Fri 18/06/2004 05:53:08
I managed to make a book with GUI, but i have three problems...
1) How to incorporate Global message into gui (to have specified lenght and so on...)
2) How to close this gui :( i tried to add hide gui after each interaction feature but it doesen't work :( it won't closeÃ,  ??? :(
3) How to "go to another message"
Please HELPÃ,  ;D
Title: Re: Problem with GUI
Post by: TheMagician on Fri 18/06/2004 07:24:33
Hi.
I don't quite understand 1) and 3).
However I can help with 2): GuiOff(NUM); is the thing to look for in the manual. NUM is the name or number of your book inventory.
Title: Re: Problem with GUI
Post by: Ashen on Fri 18/06/2004 14:22:24
I think I see what you mean ...

1) GetMessageText() and SetTextBoxText() are probably what you're after. Something like:

      string buffer;
      GetMessageText (500, buffer);
      SetTextBoxText (BOOK, 0, buffer); // or whatever GUI and textbox

3) You need to create a variable to track what 'page' is being displayed, then have 'Previous Page' and 'Next Page' buttons that change that variable. You can probably find a better description of this somewhere else.

Am I on the right track? Hope this was some use, anyway.