Okay so i've decided to add the "add models" command to my Galkon Client in which i am modding (with proper credits added). It's the 2008 release and i am upgrading/taking advantage of the old cache ect...
This will be very simple to do if you follow everything i say.
First off Find This in Client51.java or GUI.java for newer clients
Code:
String[] mainButtons = new String[]
A more simple way in Galkon's Client is to Find
Code:
"Change Server", "Change Port"/*"Disabled"*/, "Server Status", "-", "Quit"
Now above add Now look for
Code:
if (cmd.equalsIgnoreCase
and under any command you find add this code to it
Code:
if (cmd.equalsIgnoreCase("Add Models"))
{
for(int anIntX = 0; anIntX < 10500; anIntX++) {
byte[] abyte0 = GetModel(anIntX);
if(abyte0 != null && abyte0.length > 0){
aClass14Array970[1].method234(abyte0.length, abyte0, (byte)2, anIntX);
JOptionPane.showMessageDialog(frame,"Model: ["+anIntX+"] added successfully!");
}else{
}
}
Now let me explain this, i have modified the original add models command from Silent CJ's tutorial on modeling in the moparscape forums. What i have modded is the following code
Code:
JOptionPane.showMessageDialog(frame,"Model: ["+anIntX+"] added successfully!");
This displays every model that is succesfully loaded (so if you do not want this then i suggest you go ahead and add a in front of the code
The original code
Code:
method77("Model: ["+anIntX+"] added successfully!", 0, "", aBoolean991);
is not suitable for a Jframe, and so is modded to the necessary requirements.
Also if you wish to add it as a button i will be releasing that shortly, there are very slim differences in code. However many clients do differ from certain aspects of the code
here is a picture of the jframe
if you wish for more pictures please ask but i feel as if i've explained enough already