Thread: [BS] Client fix game frame and Flames

Results 1 to 4 of 4
  1. #1 [BS] Client fix game frame and Flames 
    Registered Member
    Join Date
    Jul 2008
    Posts
    105
    Thanks given
    0
    Thanks received
    2
    Rep Power
    11
    guys i will let you see how to fix battlescape client

    flames, and the Jframe


    Flames:
    Open Client.java

    Search for this:
    private void drawFlames()
    You will see this
    calcFlamesPosition();
    calcFlamesPosition();
    Change that to this:

    //calcFlamesPosition();
    //calcFlamesPosition();
    for the Jframe i found a better fix for the positioning.

    Replace Your Gui.java with this one.

    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import java.net.URL.*;
    import java.net.*;

    public class GUI extends JPanel implements ActionListener
    {
    private JButton forumButton;
    private JButton newsAndAnnouncementsButton;
    private JButton knowledgeBaseButton;
    private JButton accountManagementButton;
    private JButton ruleBreakersButton;
    private JButton endMusicButton;

    public GUI()
    {
    forumButton = new JButton("Forums");
    newsAndAnnouncementsButton = new JButton("News & Announcements");
    knowledgeBaseButton = new JButton("Knowledge Base");
    accountManagementButton = new JButton("Account Management");
    ruleBreakersButton = new JButton("Rule Breakers");
    endMusicButton = new JButton("Stop");

    //add components
    add(forumButton);
    add(newsAndAnnouncementsButton);
    add(knowledgeBaseButton);
    add(accountManagementButton);
    add(ruleBreakersButton);
    add(endMusicButton);

    forumButton.addActionListener(this);
    forumButton.setActionCommand("forums");
    newsAndAnnouncementsButton.addActionListener(this) ;
    newsAndAnnouncementsButton.setActionCommand("n&b") ;
    knowledgeBaseButton.addActionListener(this);
    knowledgeBaseButton.setActionCommand("kBase");
    accountManagementButton.addActionListener(this);
    accountManagementButton.setActionCommand("accMan") ;
    ruleBreakersButton.addActionListener(this);
    ruleBreakersButton.setActionCommand("ruleB");
    endMusicButton.addActionListener(this);
    endMusicButton.setActionCommand("stop");

    //set component bounds (only needed by Absolute Positioning)
    //serverName.setBounds (5, 0, 137, 25);
    //knowledgeBaseButton.setBounds (5, 30, 137, 25);
    //forumsButton.setBounds (5, 60, 137, 25);
    //itemsButton.setBounds (5, 90, 137, 25);
    //versionNumber.setBounds (5, 120, 137, 25);
    }

    public void actionPerformed(ActionEvent e)
    {
    try
    {
    if ("kBase".equals(e.getActionCommand()))
    {
    URI url = new URI("http://google.com");
    Desktop.getDesktop().browse(url);
    }
    else if ("forums".equals(e.getActionCommand()))
    {
    URI url = new URI("http://battlescape.no-ip.info/forum/index.php");
    Desktop.getDesktop().browse(url);
    }
    else if ("n&b".equals(e.getActionCommand()))
    {
    URI url = new URI("http://battlescape.no-ip.info/forum/forumdisplay.php?f=4");
    Desktop.getDesktop().browse(url);
    }
    else if ("accMan".equals(e.getActionCommand()))
    {
    URI url = new URI("http://battlescape.no-ip.info/forum/forumdisplay.php?f=30");
    Desktop.getDesktop().browse(url);
    }
    else if ("ruleB".equals(e.getActionCommand()))
    {
    URI url = new URI("http://google.com");
    Desktop.getDesktop().browse(url);
    }
    else if ("stop".equals(e.getActionCommand()))
    {
    if (client.mp != null && client.mp.musicPlayer != null)
    {
    client.mp.musicPlayer.stop();
    }
    }
    }
    catch(Exception err)
    {
    err.printStackTrace();
    }
    }
    }
    Now we need add the version just go in Rsaplet.java

    Look for this:
    frame = new JFrame("BattleScape")
    Replace it with this one:

    frame = new JFrame("BattleScape Version " + client.clientVersion);
    Picture:



    the effect of flames is moving the white places at background when you move
    the client in screen or if you have opened a other window.

    Thnx To Palidino76 for releasing Battlescape And the Client
    Reply With Quote  
     

  2. #2  
    Registered Member
    minutes's Avatar
    Join Date
    Apr 2008
    Posts
    1,926
    Thanks given
    2
    Thanks received
    19
    Rep Power
    465
    they arent gameframes .... Jframes....
    [Only registered and activated users can see links. ]
    click banner to join gtracer!
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jul 2008
    Posts
    105
    Thanks given
    0
    Thanks received
    2
    Rep Power
    11
    But you know what i mean i though...


    lol
    Reply With Quote  
     

  4. #4  
    Registered Member
    minutes's Avatar
    Join Date
    Apr 2008
    Posts
    1,926
    Thanks given
    2
    Thanks received
    19
    Rep Power
    465
    Quote Originally Posted by mummie61 View Post
    But you know what i mean i though...


    lol
    Yh I know beacose I did look ur codes
    [Only registered and activated users can see links. ]
    click banner to join gtracer!
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •