diff options
| author | Fuwn <[email protected]> | 2021-05-03 16:38:41 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2021-05-03 16:38:41 -0700 |
| commit | e1e781bb2135ef78592226f1a3eaba4925702f1f (patch) | |
| tree | 8a5b590463ed413e1c6eabb719130e701b95ca63 /NET/worlds/console/WorldButtonBullet.java | |
| download | worlds.jar-e1e781bb2135ef78592226f1a3eaba4925702f1f.tar.xz worlds.jar-e1e781bb2135ef78592226f1a3eaba4925702f1f.zip | |
Diffstat (limited to 'NET/worlds/console/WorldButtonBullet.java')
| -rw-r--r-- | NET/worlds/console/WorldButtonBullet.java | 264 |
1 files changed, 264 insertions, 0 deletions
diff --git a/NET/worlds/console/WorldButtonBullet.java b/NET/worlds/console/WorldButtonBullet.java new file mode 100644 index 0000000..439dbd7 --- /dev/null +++ b/NET/worlds/console/WorldButtonBullet.java @@ -0,0 +1,264 @@ +/* */ package NET.worlds.console; +/* */ +/* */ import java.awt.Color; +/* */ import java.awt.Component; +/* */ import java.awt.Graphics; +/* */ import java.awt.event.MouseEvent; +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ class WorldButtonBullet +/* */ extends Component +/* */ { +/* */ private static final long serialVersionUID = -3330973936286182409L; +/* */ int circleX; +/* */ int circleY; +/* */ WorldButton button; +/* */ +/* */ public WorldButtonBullet(int x, int y, WorldButton button) +/* */ { +/* 200 */ this.circleX = (x - 2); +/* 201 */ this.circleY = (y - 2); +/* 202 */ this.button = button; +/* 203 */ setSize(6, 6); +/* 204 */ enableEvents(16L); +/* 205 */ enableEvents(32L); +/* */ } +/* */ +/* */ public void update(Graphics g) +/* */ { +/* 210 */ paint(g); +/* */ } +/* */ +/* */ public void paint(Graphics g) +/* */ { +/* 215 */ if (g != null) +/* */ { +/* 217 */ if (this.button.isLoaded) { +/* 218 */ if (WorldButton.currentPackageName.equalsIgnoreCase(this.button.pkg)) { +/* 219 */ g.setColor(Color.green); +/* */ } else +/* 221 */ g.setColor(Color.red); +/* 222 */ g.drawOval(0, 0, 3, 3); +/* 223 */ g.fillOval(0, 0, 3, 3); +/* */ } else { +/* 225 */ g.setColor(Color.red); +/* 226 */ g.drawOval(0, 0, 3, 3); +/* */ } +/* */ } +/* */ } +/* */ +/* */ @Deprecated +/* */ public void processMouseMotionEvent(MouseEvent e) +/* */ { +/* 234 */ switch (e.getID()) { +/* */ case 503: +/* */ case 506: +/* 237 */ this.button.buttonAction(0, e.getID()); +/* */ } +/* */ +/* */ +/* 241 */ super.processMouseEvent(e); +/* */ } +/* */ +/* */ @Deprecated +/* */ public void processMouseEvent(MouseEvent e) +/* */ { +/* 247 */ switch (e.getID()) { +/* */ case 501: +/* */ case 502: +/* */ case 504: +/* */ case 505: +/* 252 */ this.button.buttonAction(0, e.getID()); +/* 253 */ return; +/* */ } +/* */ +/* 256 */ super.processMouseEvent(e); +/* */ } +/* */ } + + +/* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\console\WorldButtonBullet.class + * Java compiler version: 6 (50.0) + * JD-Core Version: 0.7.1 + */
\ No newline at end of file |