mirror of
https://github.com/GTNewHorizons/BetterP2P.git
synced 2026-11-20 20:12:35 +00:00
* Move mode change button to the side. - Mode change now on the side w/ resize button - Some code cleanup - New description (en only for now), texture. * Update ae2 to beta-204 * Add OC/Pneumaticraft support * Create a proxy for client/server Mostly for convenience of getting icons and other GUI elements. * Large refactor to make way for "refresh" functionality Features: - New "refresh" capability (no button available yet) so the client can have an updated GUI. - The player can now control which types to be queried/displayed. A great number of changes were made to allow this to happen to the mod internally, as started from the last commit. - P2PCache has been revisited. Instead of being a one-time instantiation, the cache can now be queried from the client many times. - Network has changed. Instead of sending an ItemStack (as previously), we keep that info locally and send a byte only instead, so that should save some network traffic. - New packet for sending the refresh signal has been made. Other packets send a "type" discriminator to make way for the typing feature. Because I was lazy and didn't separate the commits, here are some other changes made: - Cleaned up a bit of the code to make it easier to read. This includes code I've written before... - Some name refactors. Some of the names were (mine) were quite frankly, bad. Signed-off-by: Firenoo <[email protected]> * More cleanup + texture for type change Some more code cleanup (spacing and labels) * Disable ability to use copy outputs when output selected Because it doesn't work, and has strange behavior, this is being disabled for now (possibly forever). * Remove unused method + remove unused imports * Add unbinding mode + tooltip explanation * Add type to filter options * Add enUS localization * Add refresh button, and prevent excessive packet spam. Packets are sent only once every 250 ms to avoid DDOSing someone. Accomplishes this by adding a new scheduled executor. * Add the ability to change P2P types from the GUI * tooltip was actually lying, now it's lying less * Fix CME from resizing GUI, and add patterns to drops when changing P2P interface type CME caused by iterating over the button list. Clicking on resize button forces the GUI to reset, so the button list changes and causes the CME. P2P interfaces now drop their items if changing their type from the GUI. * Make the refresh icon look a little less like MSPaint Also minor change to tooltip when changing types. --------- Signed-off-by: Firenoo <[email protected]>
12 lines
587 B
Groovy
12 lines
587 B
Groovy
// Add your dependencies here
|
|
|
|
dependencies {
|
|
api('com.github.GTNewHorizons:Applied-Energistics-2-Unofficial:rv3-beta-204-GTNH:dev')
|
|
api('com.github.GTNewHorizons:Forgelin:1.9.2-GTNH-1.7.10-Edition')
|
|
api('com.github.GTNewHorizons:BuildCraft:7.1.27:dev')
|
|
// Some optional P2P tunnel support
|
|
compileOnly('net.industrial-craft:industrialcraft-2:2.2.828-experimental:api')
|
|
devOnlyNonPublishable('com.github.GTNewHorizons:OpenComputers:1.9.5-GTNH:dev') {transitive = false}
|
|
compileOnly('pneumaticCraft:PneumaticCraft-1.7.10:1.12.7-152:api') {transitive = false}
|
|
}
|