~ fail coder ~
June 23rd, 2010, 11:28
Hey, Well, I just found this out of my client :P
So no credits to me :D
NOTE: This is sort of big (Not that big) Only because I explained it well.
It's short :P
This is what you do!
Declare this in client.java
[Just incase you don't know what declare is - it means add!]
public void models(){
for(int anIntX = 0; anIntX < 40000; anIntX++) {
byte[] abyte0 = GetModel(anIntX);
if(abyte0 != null && abyte0.length > 0){
aClass14Array970[1].method234(abyte0.length, abyte0, (byte)2, anIntX);
method77("Model added successfully!", 0, "", aBoolean991);
}
}
}
Under...
public class client extends Applet_Sub1
Now, we've done client.java side of this, now to add gui.java side to this!
In Gui.java search for
"File"
That's only if you have the option on your frame thing :P
If you don't search for
gamePanel.setPreferredSize(new Dimension(765, 503));
Now, under that declare this!
JButton modelMenu = new JButton("Add Models");
modelMenu.setActionCommand("add models");
modelMenu.addActionListener(this);
Now, under
menuBar.add(fileMenu);
Add this code!
menuBar.add(modelMenu);
Then again if you don't have the filemenu thing, add it under
modelMenu.addActionListener(this);
Okay, Now under...
if(setname.startsWith("pink")){
Setcolour(1,0xFF00FF,"Colour set to pink", "@cr3@");
setname = null;
}
Add This...
if (cmd.equalsIgnoreCase("add models")){
models();
}
Okay!
Now, Save, Compile, Run.
This adds all models in you're model folder, so you don't have to keep typing "Add model ####"
Hope you enjoy! Thanks guys!
So no credits to me :D
NOTE: This is sort of big (Not that big) Only because I explained it well.
It's short :P
This is what you do!
Declare this in client.java
[Just incase you don't know what declare is - it means add!]
public void models(){
for(int anIntX = 0; anIntX < 40000; anIntX++) {
byte[] abyte0 = GetModel(anIntX);
if(abyte0 != null && abyte0.length > 0){
aClass14Array970[1].method234(abyte0.length, abyte0, (byte)2, anIntX);
method77("Model added successfully!", 0, "", aBoolean991);
}
}
}
Under...
public class client extends Applet_Sub1
Now, we've done client.java side of this, now to add gui.java side to this!
In Gui.java search for
"File"
That's only if you have the option on your frame thing :P
If you don't search for
gamePanel.setPreferredSize(new Dimension(765, 503));
Now, under that declare this!
JButton modelMenu = new JButton("Add Models");
modelMenu.setActionCommand("add models");
modelMenu.addActionListener(this);
Now, under
menuBar.add(fileMenu);
Add this code!
menuBar.add(modelMenu);
Then again if you don't have the filemenu thing, add it under
modelMenu.addActionListener(this);
Okay, Now under...
if(setname.startsWith("pink")){
Setcolour(1,0xFF00FF,"Colour set to pink", "@cr3@");
setname = null;
}
Add This...
if (cmd.equalsIgnoreCase("add models")){
models();
}
Okay!
Now, Save, Compile, Run.
This adds all models in you're model folder, so you don't have to keep typing "Add model ####"
Hope you enjoy! Thanks guys!