Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Show/Close a dialog during world save.
Author Message
amonvangrell
Banned

Posts: 338
Likes Given: 17
Likes Received: 32 in 20 posts
Joined: Aug 2012

britannia shard

Post: #1
Show/Close a dialog during world save.
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]
01-31-2014 06:26 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
[+] 4 users Like amonvangrell's post
Post Reply 


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

Forum Jump:


User(s) browsing this thread: 1 Guest(s)