Commit Graph
71 Commits
Author SHA1 Message Date
Firenoo be968c4be8 Add filter options to Advanced memory card search
New way to filter P2P tunnels through the search bar via "tags". A tag
starts with '@' and filters based off some set of criteria. Tags are
space separated. You can still search based on the name, but the name
search is based off of string tokens rather than a complete match. If
for whatever reason a tunnel is named '@...', you can wrap the query
in double quotes '"' to force it to search as a name.

Tags added: '@in', '@out', '@b', '@u'.
2023-02-25 15:41:54 -08:00
Firenoo e749f002c0 Update dependencies.gradle
Use AE2 beta-160
2023-02-25 15:40:55 -08:00
Firenoo 08af300e84 Rework the Advanced Memory Card's internal mechanisms.
Changes how the advanced memory card internally stores P2P Tunnel information:

- Now uses its own custom class. No more sortedInfos/infos discrepency; you
  can now access the sorted and filtered fields only. The master map cannot
  be accessed directly.

- P2PInfo now uses a hash, which removes AE2 P2P tunnel dupes. It depends
  on the coordinates, facing, and dimension information.

- Corresponding equals() function implemented for P2PInfo.

- Send the entire P2P list when binding. A new packet type is likely in order, though.

- The rest of the changes is to fit this new data structure into the existing
  infrastructure.

Hopefully this makes the mod more resilient to crashes.
2023-02-25 15:40:23 -08:00
Yang Xizhi e4bcaaf9fe Merge pull request #17 from firenoo/master
Fix disappearing bind button when renaming search
1.0.19
2023-02-23 12:25:12 +08:00
Firenoo 9dad0d79e4 Fix disappearing bind button when renaming search
GuiAdvancedMemoryCard: When the rename field is used, it filters out
every P2P tunnel that does not match the name, including the currently
selected P2P tunnel, from an internal list. This internal list is used
to determine whether the bind button should be shown, and if there is
no selected P2P tunnel, they are not shown. Since we removed the P2P
tunnel from the internal list, they are not shown. :(

Fix by using the master list instead of the filtered list.
2023-02-19 18:46:37 -08:00
Martin Robertz 74422c75f6 Merge pull request #16 from firenoo/master
Remove duplicate P2P Tunnel entries
1.0.18
2023-02-12 08:36:38 +01:00
Firenoo 38c36c2831 GuiAdvancedMemoryCard.kt: Fix sorting
For whatever reason chaining function calls breaks it the sorting...
1.0.17-pre
2023-02-11 14:29:25 -08:00
Firenoo becb5f4b91 GuiAdvancedMemoryCard.kt: Filter out duplicates.
Remove dupe P2P tunnel entries caused by P2P tunnels adding itself to
the list of P2P machine set twice if on the same network.

Some small optimizations too.
2023-02-11 10:19:39 -08:00
Firenoo af5eecd613 ClientRefreshInfoHandler.kt: Respect search after refresh
Currently, after receiving a refresh response from the server, the GUI for the advanced memory card resets and does not respect the current search term.

Commit fixes it.
2023-02-09 00:09:24 -08:00
Martin Robertz 994106fd74 Merge pull request #15 from firenoo/master
IGuiTextField.java: Defer to super method for setting focus.
1.0.16
2023-02-08 21:05:24 +01:00
Firenoo b761737cdc IGuiTextField.java: Defer to super method for setting focus.
This allows users to enable repeated keyboard polling (so you can hold backspace)
when renaming P2P connections.
2023-02-08 11:31:58 -08:00
Raven Szewczyk f78ac330f3 [ci skip] upgraded build system 2023-01-31 09:51:17 +00:00
Jason Mitchell 0eb66dbb32 [ci skip] Add missing files 2023-01-29 09:19:22 -08:00
Jason Mitchell 46937ffa70 [ci skip] Add git-blame-ignore-revs for spotlessApply 2023-01-28 20:06:14 -08:00
Jason Mitchell a59e54c09a [ci skip] spotlessApply with the new settings 2023-01-28 20:06:14 -08:00
Jason Mitchell 274f51356c [ci skip] Update buildscript to RetroFuturaGradle 2023-01-28 20:05:31 -08:00
Martin Robertz cf2805c442 Merge pull request #14 from GTNewHorizons/extradata
display me p2p used channels
1.0.15
2023-01-24 10:13:17 +01:00
GlodBlock de992b64ad name 2023-01-24 09:32:39 +08:00
GlodBlock 83d25de3a2 text shift 1.0.14-pre 2023-01-21 19:55:00 +08:00
Martin Robertz 951564be8f Update build.gradle 1.0.13-pre 2023-01-21 12:42:46 +01:00
GlodBlock c6ba3ff033 display me p2p used channels 2023-01-21 19:32:10 +08:00
Martin Robertz 057c4fecc3 Merge pull request #13 from asdflj/master
keep search text
1.0.12
2022-09-13 13:26:05 +02:00
asdflj 96d89a2d2a keep search text 2022-09-13 11:13:41 +08:00
Martin Robertz 78a1b186ff Merge pull request #12 from asdflj/master
Update some features
1.0.11
2022-09-12 15:18:16 +02:00
zy 39a9a4a66b fix NPE issues 2022-09-12 20:28:52 +08:00
zy b9aa3a15bc Update some features
1.click record to rename P2P Tunnel (Help player to build large ae network)
2.shift click record. Well be transport player to P2P Tunnel position (OP only)
2022-09-11 22:09:58 +08:00
Martin Robertz 365027a21f Merge pull request #10 from GTNewHorizons/large-gui
fix button overlap on messages
1.0.10
2022-09-09 13:47:33 +02:00
GlodBlock 3621407fa8 gui improvement 2022-09-09 08:35:09 +08:00
Martin Robertz 9bc7f08f97 Merge pull request #9 from asdflj/master
Optimize search method
1.0.9
2022-09-07 06:20:00 +02:00
asdflj dc0b3c9bfd Update GuiAdvancedMemoryCard.kt 2022-09-07 09:11:34 +08:00
asdflj 5e9690fb83 Optimize search method 2022-09-06 11:38:08 +08:00
Jason Mitchell fd132c5263 [ci skip] Migrate github actions to GTNH-Actions-Workflows 2022-07-16 10:46:55 -07:00
Martin Robertz b1d641995f Merge pull request #8 from GlodBlock/p2pfix
fix crash with latest ae2 and dupe with security terminal
1.0.8
2022-05-29 13:32:40 +02:00
GlodBlock 649c8b3daf fix noSuchMethod crash with latest ae2 2022-05-29 16:45:50 +08:00
GlodBlock b9b399c9a3 fix p2p dupe with security terminal 2022-05-22 10:30:26 +08:00
Martin Robertz 00855f08eb Merge branch 'GlodBlock:master' into master 2022-03-26 15:41:04 +01:00
Martin Robertz cd4e8d3933 Merge pull request #6 from GTNewHorizons/enhance
sync custom name when binding
2022-03-15 13:30:39 +01:00
GlodBlock 165622512c sync custom name when binding 2022-03-15 13:36:40 +08:00
Martin Robertz a9777b3f53 Merge pull request #5 from GlodBlock/enhance
add search bar and custom name display
2022-03-14 14:31:02 +01:00
Yang Xizhi ed45666178 Merge pull request #2 from GlodBlock/enhance
Enhance
2022-03-14 17:53:16 +08:00
GlodBlock 90fcf8cd5c add search bar and custom name display 2022-03-14 17:40:45 +08:00
Yang Xizhi 9291407039 correctly null the list when it's invalid 1.0.7 2022-03-04 22:55:33 +08:00
Yang Xizhi 6dc083e897 fix npe from incorrectly loaded p2p 2022-03-04 21:15:30 +08:00
Martin Robertz 22175f76cb Merge pull request #4 from GTNewHorizons/kotlin
fix version display in Minecraft
1.0.6
2022-02-12 22:17:52 +01:00
bombcar 21f00b7cbc fix scripts 2022-02-12 09:13:41 -06:00
bombcar fccf75da39 update erorr script 2022-02-12 09:08:56 -06:00
bombcar e9c6980bd0 updated build/test 2022-02-12 08:42:45 -06:00
bombcar d8302fb282 errors 2022-02-11 22:27:45 -06:00
bombcar 30a54f139f clientsidded 2022-02-11 22:06:27 -06:00
bombcar 06f3bccc94 works 2022-02-11 16:50:55 -06:00