KQ Save Textbox limitation

This is a public forum, where you can find out everything you wanted to know about making games. Please don't use this forum as a place to recruit new members.

Moderators: adeyke, VampD3, eriqchang, Angelus3K

Post Reply
Message
Author
rich_eter
Peasant Status
Posts: 44
Joined: Thu Mar 31, 2005 9:51 am
Contact:

KQ Save Textbox limitation

#1 Post by rich_eter » Tue Apr 05, 2005 11:32 pm

Hello. I have created a AGS Custom Save GUI which works very well. I have not solved one problem, which I see that AGDI has with its King's Quest games, and I was wondering if anyone could shed light on this for me. The text box in the Save GUI allows too many characters to be entered. And if the save game name is too long, when it appears in the List Box, it will overflow out the side and look very bad. I see that in KQ, if you try to type a name that is too long, it automatically does a sort of backspace to prevent the name from getting too long. How was this achieved? I can't seem to figure it out?

Thanks!
Rich

EDIT: Nevermind. I figured it out. After grabbing the text from the textbox, I just truncate it down to 20 letters before sending it on to the save game file. This makes it a piece of cake!

Post Reply