Created ReplayAsset interface and AssetRepository class which can contain such ReplayAssets. ReplayAssets allow users to add custom Files (so far only images, might be extended by .obj files) to the Replay which will later be used for CustomImageObjects.
Created GuiReplayManager to allow users to manage their assets. Created BoundingUtils class to provide a simple method to fit an image into given bounds. This implementation fixes https://trello.com/c/WTnicWkJ/
This commit is contained in:
@@ -562,6 +562,7 @@ public class ReplayHandler {
|
||||
try {
|
||||
ReplayMod.overlay.resetUI(true);
|
||||
} catch(Exception e) {
|
||||
e.printStackTrace();
|
||||
// TODO: Fix exceptionsudo
|
||||
}
|
||||
|
||||
@@ -584,6 +585,7 @@ public class ReplayHandler {
|
||||
t.printStackTrace();
|
||||
}
|
||||
};
|
||||
|
||||
INetHandlerPlayClient pc = new NetHandlerPlayClient(mc, null, networkManager, new GameProfile(UUID.randomUUID(), "Player"));
|
||||
networkManager.setNetHandler(pc);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user