01-23-2011, 10:30 AM
Alright, Well, in the file you uploaded, you didn't upload the source code so I can't edit it. So I will try my best here <!-- s --><img src="{SMILIES_PATH}/icon_e_smile.gif" alt="" title="Smile" /><!-- s -->
OK. Step one. Declare this right under public class form1
Step2 - make 13 settings, and name them capbonus,normalbonus,timebetween,rank1skill,rank2skill,rank3skill,rank4skill,rank5skill,rank1points,rank2points,rank3points,rank4points,rank5points.
-This may seem like alot. That's because it is.
Ok so when each button is pushed, you will change the settings to the corresponding textboxes. For example, when the oil setting is pushed, you will do this :You will need to do the same thing with the rank tab.
Then, you will need to delete the text file when a button is pushed
Then, you can write to the file. Simply replace all the spots where it gets a txtbox.text, with their corresponding settings. And make sure when you click one button, it writes both the rank and the oil settings.
Hope this helped!
OK. Step one. Declare this right under public class form1
Code:
Public writer As New System.IO.StreamWriter(My.Application.Info.DirectoryPath + "/map.ini", True)
-This may seem like alot. That's because it is.
Ok so when each button is pushed, you will change the settings to the corresponding textboxes. For example, when the oil setting is pushed, you will do this :
Code:
my.settings.capbonus = txt_capbonus.text
my.settings.normalbonus = txt_normalbonus.text
my.settings.timebetween = txt_timebetween.text
Then, you will need to delete the text file when a button is pushed
Code:
my.computer.filesystem.deletefile(my.application.info.directorypath + "/map.ini")
Hope this helped!