GUI buttons disappearing for save screenshots

Started by Goot, Fri 20/08/2004 05:44:35

Previous topic - Next topic

Goot

I made a save game GUI that shows screenshots but whenever I save the game it always makes the 'set cursor mode' GUI buttons fuzz out for the screenshots. The weird thing is that after I changed them so they're not set cursor mode, it still makes the same buttons fuzzy. Here's my code for saving the game:

slot=select;
     InterfaceOff(3);
     InterfaceOff(0);
     InterfaceOn(1);
     SetCursorMode(1);
     HideMouseCursor(); //I thought this might be the problem so
     InterfaceOff(2);      //I took it out and the thing still didn't work
     UnPauseGame();
     Wait(1);
     SaveGameSlot(select,buffer2);
     Wait(1);
     SetCursorMode(1);
     ShowMouseCursor();
     InterfaceOn(0);
     if(s1>0){
     DeleteSprite(s1);
     }
    if(s2>0){
     DeleteSprite(s2);
     }
    if(s3>0){
     DeleteSprite(s3);
     }
    if(s4>0){
     DeleteSprite(s4);
     }
    if(s5>0){
     DeleteSprite(s5);
     }
    if(s6>0){
     DeleteSprite(s6);
     }

Is there anything in here that might make this happen?

Pumaman

Without knowing more about your GUI it's hard to tell. Which GUI are these buttons on?

Are you saying that the buttons which display the screenshots are fuzzing out? If so, why would they be set to Set Cursor Mode anyway?

Phemar


set your game to 'guis unchanged when disabled.'

Goot

That's the script for the save button. The ones that are fuzzing out are the ones in the normal GUI with look, talk, and all that. They are fuzzy in the screenshots for the save games. I want buttons to fuzz out when disabled, and they shouldn't be disabled with this script.

Pumaman

Because you're using Wait(), the IsIntefaceEnabled is disabled, so all buttons are greyed out. The best solution is to use SetGameOption to temporarily change the grey-out style to Unchanged, save the game, then change it back.

SMF spam blocked by CleanTalk