mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-12-06 11:17:17 +00:00
FKeys and ESC to close interfaces
This commit is contained in:
1 parent
a49096e15c
commit
4f60be22c0
470 files changed
+80
-11
No files matched your search
@@ -18,8 +18,8 @@ public class ClientSettings {
|
||||
/**
|
||||
* The Servers Ip
|
||||
*/
|
||||
//public final static String SERVER_IP = "35.226.247.68";
|
||||
public final static String SERVER_IP = "127.0.0.1";
|
||||
public final static String SERVER_IP = "35.226.247.68";
|
||||
//public final static String SERVER_IP = "127.0.0.1";
|
||||
/**
|
||||
* The Npc Bits for the Server
|
||||
*/
|
||||
|
||||
@@ -3,6 +3,7 @@ import java.awt.Color;
|
||||
import java.awt.Component;
|
||||
import java.awt.Font;
|
||||
import java.awt.Graphics;
|
||||
import java.awt.event.KeyEvent;
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.DataInputStream;
|
||||
import java.io.EOFException;
|
||||
@@ -12138,4 +12139,76 @@ public class Game extends RSApplet {
|
||||
this.anInt1186 += i * 3;
|
||||
this.anInt1187 += (j << 1);
|
||||
}
|
||||
|
||||
public final void keyPressed(KeyEvent keyevent)
|
||||
{
|
||||
super.keyPressed(keyevent);
|
||||
switch (keyevent.getKeyCode())
|
||||
{
|
||||
case KeyEvent.VK_ESCAPE:
|
||||
closeOpenInterfaces();
|
||||
break;
|
||||
case KeyEvent.VK_F1:
|
||||
needDrawTabArea = true;
|
||||
tabID = 3;
|
||||
tabAreaAltered = true;
|
||||
break;
|
||||
case KeyEvent.VK_F2:
|
||||
needDrawTabArea = true;
|
||||
tabID = 4;
|
||||
tabAreaAltered = true;
|
||||
break;
|
||||
case KeyEvent.VK_F3:
|
||||
needDrawTabArea = true;
|
||||
tabID = 5;
|
||||
tabAreaAltered = true;
|
||||
break;
|
||||
case KeyEvent.VK_F4:
|
||||
needDrawTabArea = true;
|
||||
tabID = 6;
|
||||
tabAreaAltered = true;
|
||||
break;
|
||||
case KeyEvent.VK_F5:
|
||||
needDrawTabArea = true;
|
||||
tabID = 0;
|
||||
tabAreaAltered = true;
|
||||
break;
|
||||
case KeyEvent.VK_F6:
|
||||
needDrawTabArea = true;
|
||||
tabID = 1;
|
||||
tabAreaAltered = true;
|
||||
break;
|
||||
case KeyEvent.VK_F7:
|
||||
needDrawTabArea = true;
|
||||
tabID = 2;
|
||||
tabAreaAltered = true;
|
||||
break;
|
||||
case KeyEvent.VK_F8:
|
||||
needDrawTabArea = true;
|
||||
tabID = 8;
|
||||
tabAreaAltered = true;
|
||||
break;
|
||||
case KeyEvent.VK_F9:
|
||||
needDrawTabArea = true;
|
||||
tabID = 11;
|
||||
tabAreaAltered = true;
|
||||
break;
|
||||
case KeyEvent.VK_F10:
|
||||
needDrawTabArea = true;
|
||||
tabID = 12;
|
||||
tabAreaAltered = true;
|
||||
break;
|
||||
case KeyEvent.VK_F11:
|
||||
needDrawTabArea = true;
|
||||
tabID = 13;
|
||||
tabAreaAltered = true;
|
||||
break;
|
||||
case KeyEvent.VK_F12:
|
||||
needDrawTabArea = true;
|
||||
tabID = 10;
|
||||
tabAreaAltered = true;
|
||||
break;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -297,15 +297,12 @@ public class RSApplet extends Applet implements Runnable, MouseListener, MouseMo
|
||||
}
|
||||
|
||||
@Override
|
||||
public final void keyPressed(KeyEvent keyevent) {
|
||||
public void keyPressed(KeyEvent keyevent) {
|
||||
idleTime = 0;
|
||||
int i = keyevent.getKeyCode();
|
||||
int j = keyevent.getKeyChar();
|
||||
switch (keyevent.getKeyCode())
|
||||
{
|
||||
case KeyEvent.VK_ESCAPE:
|
||||
//call ::close_interface
|
||||
break;
|
||||
case KeyEvent.VK_SHIFT:
|
||||
shiftDown = true;
|
||||
break;
|
||||
|
||||
@@ -4,8 +4,8 @@ character-password = pwjojo
|
||||
|
||||
[CHARACTER]
|
||||
character-height = 2
|
||||
character-posx = 3209
|
||||
character-posy = 3220
|
||||
character-posx = 3210
|
||||
character-posy = 3218
|
||||
character-rights = 0
|
||||
hasStarter = false
|
||||
bankPin1 = 0
|
||||
@@ -55,8 +55,8 @@ blackMarks = 0
|
||||
tutorial-progress = 36
|
||||
skull-timer = 0
|
||||
recoilHits = 0
|
||||
lastX = 3209
|
||||
lastY = 3220
|
||||
lastX = 3210
|
||||
lastY = 3218
|
||||
lastH = 2
|
||||
removedTask0 = -1
|
||||
removedTask1 = -1
|
||||
@@ -177,7 +177,6 @@ character-item = 7 1266 1
|
||||
character-item = 8 1206 1
|
||||
character-item = 9 1278 1
|
||||
character-item = 12 883 25
|
||||
character-item = 13 557 25
|
||||
character-item = 16 558 4
|
||||
character-item = 17 560 2
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loaded 100 of 470 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user