Soul Newb
Innlegg : 17 Join date : 2009-10-18
| Subject: Changing the Mail System to display your Game Name Sun Nov 15, 2009 10:43 am | |
| This is the shortest source tutorial you will ever see, so I might add more to this until it becomes big. I noticed that P2D's source didn't show your game name in the mail center, instead it said Potato Engine Mail Center.Under frmMailMenu, in Private Sub Form_Load(), add at the bottom, before the End Sub: - Code:
-
frmMailMenu.lblTitle.Caption = GAME_NAME & " Mail Center" Compile, and open the Mail Center, it should say your game's name Mail Center! Why doesn't it work?If this did not work for you, do the following: Make sure that in data.ini, the game name isn't Potato Engine , change that to your game name. Make sure you restarted the server after changing the game name.
| |
|
Aksel Admin
Innlegg : 283 Join date : 2009-06-20 Age : 28
| Subject: Re: Changing the Mail System to display your Game Name Sun Nov 15, 2009 10:45 am | |
| Dammit, I was so sure I added that xD | |
|
Soul Newb
Innlegg : 17 Join date : 2009-10-18
| Subject: Re: Changing the Mail System to display your Game Name Sun Nov 15, 2009 11:08 am | |
| Haha . I'm working on something short so I'll post it here too. | |
|
Soul Newb
Innlegg : 17 Join date : 2009-10-18
| Subject: Re: Changing the Mail System to display your Game Name Sun Nov 15, 2009 11:59 am | |
| Here's my new one, it shows the Game name, the player name, and their level at the top of the screen (caption bar) when the click on the screen.This part is Client-side: Under Sub HandleKeyPresses of ModInput: - Code:
-
Case "/hidecaption" frmMirage.Caption = "" Case "/showcaption" frmMirage.Caption = GAME_NAME & " - " & GetPlayerName(MyIndex) & " Level: " & GetPlayerLevel(MyIndex)
Under Sub SetPlayerLevel in ModDatabase: - Code:
-
frmMirage.Caption = GAME_NAME & " - " & GetPlayerName(MyIndex) & " Level: " & GetPlayerLevel(MyIndex)
I made this because I was tired of clicking stats to see my stats. What it does: At the topic of the screen it will say [Game_Name] " - " PlayerName " Level: " PlayerLevel. I was going for something bigger but it didn't work.
Last edited by Soul on Sun Nov 15, 2009 3:28 pm; edited 2 times in total | |
|
Aksel Admin
Innlegg : 283 Join date : 2009-06-20 Age : 28
| Subject: Re: Changing the Mail System to display your Game Name Sun Nov 15, 2009 12:47 pm | |
| But, why does it activate when you click pic screen? It won't auto update and it won't disappear... | |
|
Soul Newb
Innlegg : 17 Join date : 2009-10-18
| Subject: Re: Changing the Mail System to display your Game Name Sun Nov 15, 2009 1:39 pm | |
| Don't know what I was doing :/. Fixing.
EDIT: Fixed it, it's better now. | |
|
Aksel Admin
Innlegg : 283 Join date : 2009-06-20 Age : 28
| Subject: Re: Changing the Mail System to display your Game Name Mon Nov 16, 2009 11:36 am | |
| Yeah, alot better ^^
Thanks for contributing! | |
|
Sponsored content
| Subject: Re: Changing the Mail System to display your Game Name | |
| |
|