Linux lorencats.com 5.10.103-v7l+ #1529 SMP Tue Mar 8 12:24:00 GMT 2022 armv7l
Apache/2.4.59 (Raspbian)
: 10.0.0.29 | : 216.73.217.91
Cant Read [ /etc/named.conf ]
7.3.31-1~deb10u7
root
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
share /
greenfoot /
greenfoot /
common /
[ HOME SHELL ]
Name
Size
Permission
Action
Animal.html
7.37
KB
-rw-r--r--
Animal.java
1.55
KB
-rw-r--r--
Counter.html
9.09
KB
-rw-r--r--
Counter.java
3.08
KB
-rw-r--r--
Counter.png
4.06
KB
-rw-r--r--
GifImage.html
7.37
KB
-rw-r--r--
GifImage.java
28.66
KB
-rw-r--r--
Label.html
8.75
KB
-rw-r--r--
Label.java
2.16
KB
-rw-r--r--
Map.html
9.93
KB
-rw-r--r--
Map.java
4.12
KB
-rw-r--r--
ScoreBoard.html
4.33
KB
-rw-r--r--
ScoreBoard.java
4.09
KB
-rw-r--r--
SimpleTimer.html
6.36
KB
-rw-r--r--
SimpleTimer.java
1.74
KB
-rw-r--r--
SmoothMover.html
8.87
KB
-rw-r--r--
SmoothMover.java
1.74
KB
-rw-r--r--
inherit.gif
57
B
-rw-r--r--
script.js
5.41
KB
-rw-r--r--
stylesheet.css
21.75
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : ScoreBoard.java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) import java.util.List; /** * An actor class that can display a scoreboard, using Greenfoot's * UserInfo class. * * You typically use this by including some code into the world for when your game ends: * * <pre> * addObject(new ScoreBoard(800, 600), getWidth() / 2, getHeight() / 2); * </pre> * * Where 800 by 600 should be replaced by the desired size of the score board. * * @author Neil Brown * @version 1.0 */ public class ScoreBoard extends Actor { // The vertical gap between user images in the scoreboard: private static final int GAP = 10; // The height of the "All Players"/"Near Me" text at the top: private static final int HEADER_TEXT_HEIGHT = 25; // The main text color: private static final Color MAIN_COLOR = new Color(0x60, 0x60, 0x60); // dark grey // The score color: private static final Color SCORE_COLOR = new Color(0xB0, 0x40, 0x40); // orange-y // The background colors: private static final Color BACKGROUND_COLOR = new Color(0xFF, 0xFF, 0xFF, 0xB0); private static final Color BACKGROUND_HIGHLIGHT_COLOR = new Color(180, 230, 255, 0xB0); /** * Constructor for objects of class ScoreBoard. * <p> * You can specify the width and height that the score board should be, but * a minimum width of 600 will be enforced. */ public ScoreBoard(int width, int height) { setImage(new GreenfootImage(Math.max(600, width), height)); drawScores(); } private void drawString(String text, int x, int y, Color color, int height) { getImage().drawImage(new GreenfootImage(text, height, color, new Color (0,0,0,0)), x, y); } private void drawScores() { // 50 pixels is the max height of the user image final int pixelsPerUser = 50 + 2*GAP; // Calculate how many users we have room for: final int numUsers = ((getImage().getHeight() - (HEADER_TEXT_HEIGHT + 10)) / pixelsPerUser); final int topSpace = getImage().getHeight() - (numUsers * pixelsPerUser) - GAP; getImage().setColor(BACKGROUND_COLOR); getImage().fill(); drawString("All Players", 100, topSpace - HEADER_TEXT_HEIGHT - 5, MAIN_COLOR, HEADER_TEXT_HEIGHT); drawString("Near You", 100 + getImage().getWidth() / 2, topSpace - HEADER_TEXT_HEIGHT - 5, MAIN_COLOR, HEADER_TEXT_HEIGHT); drawUserPanel(GAP, topSpace, (getImage().getWidth() / 2) - GAP, topSpace + numUsers * pixelsPerUser, UserInfo.getTop(numUsers)); drawUserPanel(GAP + getImage().getWidth() / 2, topSpace, getImage().getWidth() - GAP, topSpace + numUsers * pixelsPerUser, UserInfo.getNearby(numUsers)); } private void drawUserPanel(int left, int top, int right, int bottom, List users) { getImage().setColor(MAIN_COLOR); getImage().drawRect(left, top, right - left, bottom - top); if (users == null) return; UserInfo me = UserInfo.getMyInfo(); int y = top + GAP; for (Object obj : users) { UserInfo playerData = (UserInfo)obj; Color c; if (me != null && playerData.getUserName().equals(me.getUserName())) { // Highlight our row in a sky blue colour: c = BACKGROUND_HIGHLIGHT_COLOR; } else { c = BACKGROUND_COLOR; } getImage().setColor(c); getImage().fillRect(left + 5, y - GAP + 1, right - left - 10, 50 + 2*GAP - 1); int x = left + 10; drawString("#" + Integer.toString(playerData.getRank()), x, y+18, MAIN_COLOR, 14); x += 50; drawString(Integer.toString(playerData.getScore()), x, y+18, SCORE_COLOR, 14); x += 80; getImage().drawImage(playerData.getUserImage(), x, y); x += 55; drawString(playerData.getUserName(), x, y + 18, MAIN_COLOR, 14); y += 50 + 2*GAP; } } }
Close