HomePortalCalendarFAQSearchUsergroupsRegisterLog in

Share | 
 

 Changing the Mail System to display your Game Name

Go down 
AuthorMessage
Soul
Newb
Newb


Innlegg : 17
Join date : 2009-10-18

PostSubject: 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 Razz, change that to your game name.
Make sure you restarted the server after changing the game name.
Back to top Go down
Aksel
Admin
avatar

Innlegg : 283
Join date : 2009-06-20
Age : 22

PostSubject: 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

_________________
Back to top Go down
http://www.akselscape.com
Soul
Newb
Newb


Innlegg : 17
Join date : 2009-10-18

PostSubject: Re: Changing the Mail System to display your Game Name   Sun Nov 15, 2009 11:08 am

Haha Razz.

I'm working on something short so I'll post it here too.
Back to top Go down
Soul
Newb
Newb


Innlegg : 17
Join date : 2009-10-18

PostSubject: 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
Back to top Go down
Aksel
Admin
avatar

Innlegg : 283
Join date : 2009-06-20
Age : 22

PostSubject: 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...

_________________
Back to top Go down
http://www.akselscape.com
Soul
Newb
Newb


Innlegg : 17
Join date : 2009-10-18

PostSubject: 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.
Back to top Go down
Aksel
Admin
avatar

Innlegg : 283
Join date : 2009-06-20
Age : 22

PostSubject: Re: Changing the Mail System to display your Game Name   Mon Nov 16, 2009 11:36 am

Yeah, alot better ^^

Thanks for contributing!

_________________
Back to top Go down
http://www.akselscape.com
Sponsored content




PostSubject: Re: Changing the Mail System to display your Game Name   

Back to top Go down
 
Changing the Mail System to display your Game Name
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Potato2D :: Game Development :: Source Coding-
Jump to: