Heres my tuturial on making your game skinabble.. IE users can download other skins...Or in an engines case the creators can make there own skins as well.
First you need to make folder called temp.. You could call it Skin or gui or whatever but dont forget to change the code if you do.
Then you need to put all your gui's pictures into /temp ... (This is also if you still use the standard mirage setup... If not make sure to edit out anything you no longer have and edit in anything you have added.
The files should be
Button_buy.bmp Button_cancel.bmp button_connect.bmp button_create.bmp button_credits.bmp button_delchar.bmp button_delete.bmp button_exit.bmp button_login.bmp button_new.bmp button_newchar.bmp button_repair.bmp button_train.bmp buttong_usechar.bmp ingame_itemfix.bmp ingame_shop.bmp ingame_training.bmp mainscreen.bmp
the mirage gui (You will see why i sperated these later)
inbtn_exit.bmp inbtn_inv.bmp inbtn_spells.bmp inbtn_trade.bmp inbtn_train.bmp inbtn_who.bmp gui.bmp
Now you need to go through each form and make it call its gui. Also make sure you set the picture to none instead of a bitmap or it wont call your outside one.
frmChars:
frmChars.Picture = LoadPicture(App.Path + "\Temp\mainscreen.bmp") picUseChar.Picture = LoadPicture(App.Path + "\Temp\button_usechar.bmp") picNewChar.Picture = LoadPicture(App.Path + "\Temp\button_newchar.bmp") picDelChar.Picture = LoadPicture(App.Path + "\Temp\button_delchar.bmp") picCancel.Picture = LoadPicture(App.Path + "\Temp\button_cancel.bmp")
frmCredits:
frmCredits.Picture = LoadPicture(App.Path + "\Temp\mainscreen.bmp") picCancel.Picture = LoadPicture(App.Path + "\Temp\button_Cancel.bmp"
frmDeleteAccount:
frmDeleteAccount.Picture = LoadPicture(App.Path + "\Temp\mainscreen.bmp") picCancel.Picture = LoadPicture(App.Path + "\Temp\button_Cancel.bmp") picConnect.Picture = LoadPicture(App.Path + "\Temp\button_Connect.bmp")
frmLogin:
frmLogin.Picture = LoadPicture(App.Path + "\Temp\mainscreen.bmp") picCancel.Picture = LoadPicture(App.Path + "\Temp\button_Cancel.bmp") picConnect.Picture = LoadPicture(App.Path + "\Temp\button_Connect.bmp")
frmMainMenu:
frmMainMenu.Picture = LoadPicture(App.Path + "\Temp\mainscreen.bmp") picNewAccount.Picture = LoadPicture(App.Path + "\Temp\button_new.bmp") picDeleteAccount.Picture = LoadPicture(App.Path + "\Temp\button_delete.bmp") picLogin.Picture = LoadPicture(App.Path + "\Temp\button_login.bmp") picCredits.Picture = LoadPicture(App.Path + "\Temp\button_credits.bmp") picQuit.Picture = LoadPicture(App.Path + "\Temp\button_exit.bmp")
frmNewAccount
frmNewAccount.Picture = LoadPicture(App.Path + "\Temp\mainscreen.bmp") picCancel.Picture = LoadPicture(App.Path + "\Temp\button_Cancel.bmp") picConnect.Picture = LoadPicture(App.Path + "\Temp\button_Connect.bmp")
frmNewChar
frmNewChar.Picture = LoadPicture(App.Path + "\Temp\mainscreen.bmp") picCancel.Picture = LoadPicture(App.Path + "\Temp\button_Cancel.bmp") picAddChar.Picture = LoadPicture(App.Path + "\Temp\button_Create.bmp")
frmTrade:
frmTrade.Picture = LoadPicture(App.Path + "\Temp\ingame_shop.bmp") picCancel.Picture = LoadPicture(App.Path + "\Temp\button_Cancel.bmp") picDeal.Picture = LoadPicture(App.Path + "\Temp\button_buy.bmp") picFixItems.Picture = LoadPicture(App.Path + "\Temp\button_Repair.bmp")
frmTraining:
frmTraining.Picture = LoadPicture(App.Path + "\Temp\ingame_training.bmp") picTrain.Picture = LoadPicture(App.Path + "\Temp\button_Train.bmp") picCancel.Picture = LoadPicture(App.Path + "\Temp\button_Cancel.bmp")
Now this is where you learn stuff
You will notice i havnt included the frmmirage , frmsendgetdata and frmfixitem code!
Now what you have to do is from the code here setup the forms i havnt included....
Have fun :D
|