SphereCommunity
Show/Close a dialog during world save. - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Submissions (/Forum-Script-Submissions)
+--- Thread: Show/Close a dialog during world save. (/Thread-Show-Close-a-dialog-during-world-save)



Show/Close a dialog during world save. - amonvangrell - 01-31-2014 06:26 AM

Hey Guys!

Just decide to share this little scp that add a function to show a fancy dialog box during a world save and close its after its done.

Hope you like!

[Image: world_save.png]

Code:
//////////////////////////////////////
//                                //
//                 By AmonVangrell        //
//            31/1/2014            //
//////////////////////////////////////
//Sphere 0.56C
///////////////////////////////////////////////////
//    To install add this to sphere_serv_triggers.scp    //
//    [FUNCTION f_onserver_save]                    //
//    serv.allclients f_show_save_dlg                //
//    [FUNCTION f_onserver_save_finished]            //
//    serv.allclients f_close_save_dlg                //
///////////////////////////////////////////////////
[PLEVEL 2]
f_show_save_dlg
f_close_save_dlg

[FUNCTION f_show_save_dlg]
TRYSRC <UID> SRC.DIALOG d_save_game

[FUNCTION f_close_save_dlg]
TRYSRC <UID> SRC.DIALOGCLOSE d_save_game

[DIALOG d_save_game]
260,260
noclose
nomove
PAGE 0
resizepic 10 10 9200 200 90
checkertrans 20 20 180 60
tilepic 85 20 13920
dtext 50 75 05b The world is saving...

[EOF]



RE: Show/Close a dialog during world save. - Soulless - 01-31-2014 08:53 PM

I wondered when someone was going to do this also Tongue i like your dialog, it looks nice with the globe.


RE: Show/Close a dialog during world save. - Mordaunt - 01-31-2014 09:51 PM

Like you are the only person that does that Soulless.... pfft

Now... make the globe spin!


RE: Show/Close a dialog during world save. - darksun84 - 01-31-2014 10:24 PM

Imho the globe is a tribute to the sphereserver logo !


RE: Show/Close a dialog during world save. - Extreme - 01-31-2014 11:01 PM

No, it isn't.
LoL
Poor LessSoul :/

Sent from my GT-I9505 using Tapatalk


RE: Show/Close a dialog during world save. - Soulless - 02-02-2014 02:36 AM

I thought the globe was very cool too, sphereeeloogooooo


pfft @ you mordaunt! you poop mouth. pfft.
[Image: anchorman-poopmouth.jpg]


RE: Show/Close a dialog during world save. - Lazarus - 12-23-2014 01:22 PM

love it and using it (Mordant you should create a thread to add this one in sphere community script packs!) hahaha

really, I like it, I will use it.