forked from WorldStarHipHopX/playforia
-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #128 from StenAL/features
More client deobfuscation
- Loading branch information
Showing
40 changed files
with
1,294 additions
and
1,298 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
client/src/main/java/com/aapeli/client/BackgroundLoaderThread.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
package com.aapeli.client; | ||
|
||
import java.awt.Image; | ||
|
||
class BackgroundLoaderThread implements Runnable { | ||
|
||
private IPanel panel; | ||
private ImageManager imageManager; | ||
private String backgroundKey; | ||
private int xOffset; | ||
private int yOffset; | ||
private boolean isSharedImage; | ||
private boolean running; | ||
private final IPanel anIPanel1415; | ||
|
||
protected BackgroundLoaderThread( | ||
IPanel unused, | ||
IPanel panel, | ||
ImageManager imageManager, | ||
String backgroundKey, | ||
int xOffset, | ||
int yOffset, | ||
boolean isSharedImage) { | ||
this.anIPanel1415 = unused; | ||
this.panel = panel; | ||
this.imageManager = imageManager; | ||
this.backgroundKey = backgroundKey; | ||
this.xOffset = xOffset; | ||
this.yOffset = yOffset; | ||
this.isSharedImage = isSharedImage; | ||
this.running = true; | ||
Thread thread = new Thread(this); | ||
thread.setDaemon(true); | ||
thread.start(); | ||
} | ||
|
||
public void run() { | ||
Image image; | ||
if (!this.isSharedImage) { | ||
image = this.imageManager.getGameImage(this.backgroundKey); | ||
} else { | ||
image = this.imageManager.getShared(this.backgroundKey); | ||
} | ||
|
||
if (this.running) { | ||
this.panel.setBackground(image, this.xOffset, this.yOffset); | ||
} | ||
} | ||
|
||
protected void stop() { | ||
this.running = false; | ||
} | ||
} |
Oops, something went wrong.