Custom Save GUI NOT using savegameindex array

Started by monkey0506, Sat 02/10/2004 16:49:49

Previous topic - Next topic

monkey0506

I'm trying to make a custom SAVE GUI without using the savegameindex array because I want a possible 99 save games. Also, is there a way to change the appearance of the selected item. I just want a textbox to be turned on at the selected item in my SAVE GUI, and I don't want it to be highlighted (with the foreground color). For those who don't already know, I'm making a Monkey Island 1 CD Version SCUMM GUI. It would be much easier if there were some way to turn off the highlight of the selected item... i don't know...

Phemar


Erm... You can still have 99 saves with savegameindex array.

For the highlight couldn't you just set highlighted color to normal color in the listbox?

monkey0506

The help file says that you can only have twenty save games with the savegameindex array. And I may have found a way around the highlight color, but it's kind of wierd. I have a text box which appears over the selected item in the save gui so you can type the name of the save game into the listbox, and I have an image with the correct color set as its background. But for some reason there are some black pixels around the edge of the text box. I'll upload a picture later today. I'm on my mom's laptop, so I don'y have access to my game files. And are you sure abouy that 99 save game thing with savegameindex? Because I quoted the help file the other day and it says 20 max with savegame index... I don't know...

monkey0506

Ok... I got the saving part and loading part down. Kind of... But I'm still having problems. I think I may have a solution. Is there any way to set the Foreground and Highlight colors of a ListBox to a transparent color? If so, it would make my graphical errors go away. [PREPOST EDIT:] Nevermind, I fixed it... Ok... All I need to know is, Is there a way to set those colors to transparent. Thanks...

P.S. If there isn't CURRENTLY a way, could one be implemented (i.e. possible suggestion?)?

monkey0506

I'm tired of waiting. Can I just get a straight yes or no answer?

Scorpiorus

I think there is currently no way to make them transparent.
You can, however, try putting the listbox on a different, kind of an overlay type GUI and make this GUI unclickable. Then manually handle the situation when the mouse is pressed over the area where this listbox is located (with a help of another listbox located underneath maybe).

monkey0506

I'm not entirely sure what you mean. I think I get the general idea, but I don't have time to mess with it. Please explain more thoroughly? BTW, thanks for your reply!  ;D Sorry for all the double posts and such...

Scorpiorus

#7
Check out this little test game I've uploaded:

http://www.geocities.com/scorpiorus82/lb_test_ags261.zip (Copy & Paste into the address bar)

So, GUI3 is a normal GUI and GUIOVERLAY is unclickable one with no listbox item highlighted.

You see the overlay GUI but click on GUI3. Try holding Left Shift to hide the overlay gui to see how it works.

Both listboxes must, of course, have the same content.

monkey0506

Thanks! It looks the way I want it to now... Kind of... I found a little problem with the way that I put turned the textbox on over the top of the GUIs, but it should be easy to fix. I don't really like the idea of having to use 6 GUIs between Save and Load, but, I'll do what I have to. Wait, make that 5 GUIs. I don't have to have the text box on my Load GUI. And maybe I could use the same overlay for Save and Load, and just update it appropriately as it is turned on... That cuts it down to 4... Ok. Thanks!!!!  ;D

SMF spam blocked by CleanTalk