Commit Graph
53 Commits
Author SHA1 Message Date
asdfljandzy 96dd2e255c hold the shift to stop sort items (#449)
Co-authored-by: zy <[email protected]>
2024-01-01 13:28:29 +01:00
miozune 107832d4fd Fix wildcard import (#392) 2023-09-24 10:09:03 +02:00
firenoo 42d1dbf086 Move cursor to the end when initializing text field (#366)
Since the cursor position was being restored before the cursor was set,
it was setting the position to 0.
2023-07-30 20:51:34 +02:00
firenoo 8e7617b259 Use interface instead of class for generalization (#323)
Was missing getReferenceItem, which is used for displaying slots.
This way we can swap in implementations and not create our own slot
2023-05-20 10:22:08 +02:00
firenoo cc8b77e488 AE API: Add a method to blacklist items/provide filters based on item/fluid (#322)
* AE API: Add a method to blacklist items/provide filters based on item/fluid.

Items can now be added to the blacklist to prevent them from being shown. This
does NOT blacklist them from being stored in storage cells (for the time being).

While the type filters were previously implemented directly in ItemRepo,
this commit adds them to the API.

ItemRepo is now extracted as an interface, primarily for AE2FC and other add-ons.

* Update buildscript
2023-05-19 08:35:04 +02:00
Raven Szewczyk 19676072b8 Enable generics injection & Jabel & code cleanup (#307)
* Enable Jabel and generic injection

* Use RoundingMode enum values

* Use enhanced for loops

* Use diamond operator where appropriate

* Deprecate ChainedIterator

* spotless

* Collapse identical catch blocks

* Use try with resources

* Use List.sort where possible

* Anonymous type->lambda

* Loop -> removeIf

* Simplifiable map operations

* Use enhanced instanceof

* Use enhanced switch

* Use bulk operations

* Use zero-sized arrays in toArray

* Add early exits

* Remove redundant addAll

* Fix missing reflection generic types

* More missed language migration aids

* Redundant type arguments

* Redundant type casts

* Fix compilation errors

* Use Arrays.fill

* Fix some missing generic types
2023-05-02 07:55:33 +02:00
repo-altandMartin Robertz d49fa7a61c Add a blank pattern refill upgrade to the pattern terminals (#305)
* Add a blank pattern refill upgrade to the pattern terminals
https://github.com/GTNewHorizons/GT-New-Horizons-Modpack/issues/10614

* fix getDrops()
call refilling at the terminal open and when adding refill upgrade

---------

Co-authored-by: Martin Robertz <[email protected]>
2023-05-01 19:17:46 +02:00
asdflj fc06a71212 Add type filter (item/fluid) toggle to the terminal (#262) 2023-03-12 16:07:00 +00:00
Raven Szewczyk 385e163974 [ci skip] spotlessApply with the new settings 2023-01-29 09:18:04 +00:00
Raven Szewczyk a40ee7424f Update buildscript, apply spotless (#175) 2022-09-01 13:27:40 +02:00
firenoo e889be3f91 Revert "appeng/client/gui: Add IFocusableGui.java (#171)" (#172)
This reverts commit 209d0092a1.
2022-08-29 19:55:05 +02:00
firenoo 209d0092a1 appeng/client/gui: Add IFocusableGui.java (#171)
appeng/client/gui/implementations: Implement IFocusableGui in classes.

	Exposes the MEGuiTextField#isFocused() method in classes that
use a MEGuiTextField.

	This commit is for preparing a fix for a bug with
FindIt/ExUtils' "Search in world" feature. This interface will be used
to determine whether to allow FindIt to work when in an AE2 Gui.

Signed-off-by: Firenoo <[email protected]>

Signed-off-by: Firenoo <[email protected]>
2022-08-29 07:06:08 +02:00
Albi b5309da1a1 Added GUI color customizability through lang file (#156)
* Make UIcolors for drawRect customizable through .lang file

* Add default color values to US lang file

* Added color customizability to all UI texts

* Fix console logging when lang file doesn't have the corresponding entry
2022-08-03 21:58:00 +03:00
slprime ec72775401 update pattern terminal (#143) 2022-06-03 19:40:07 +02:00
slprimeandSerghei Borovetchi 36f9020675 improve interface terminal (#139)
Co-authored-by: Serghei Borovetchi <[email protected]>
2022-05-20 11:32:22 +02:00
miozune 802079320f Searchbox improvements (#120)
* Searchbox improvements

* Fix behavior when focusing on NEI
2022-03-02 16:17:15 +01:00
repo_alt c9f11366ed Drop to search string 2021-11-23 19:22:45 +03:00
SirFell cc7b890926 Make Crafting Status button mode optional. Config options: Button - like rest of interface buttons TILE - old AE2 style in top right
(cherry picked from commit bd73595e4c0762a723fdd03839bf8267ff549ae5)
2021-11-21 11:19:39 +03:00
SirFell 8374a6fc31 Move Crafting Status button to other buttons of terminal UI 2021-11-21 11:19:38 +03:00
repo_alt f665f7b9c6 Save search setting in GUI
https://github.com/GTNewHorizons/GT-New-Horizons-Modpack/issues/8233
2021-07-18 14:07:57 +03:00
repo_alt 7cdd300e2c fix weird name clash between ITooltip.getWidth and GuiTextField.getWidth 2021-07-06 22:32:28 +03:00
repo_alt 1fa55f66e0 Added client config to not preserve the search string in terminals
Added tooltip to the search bar, that it may be cleared via right click
2021-06-27 14:09:33 +03:00
repo_alt 9485097604 make search string persistent
https://github.com/GTNewHorizons/GT-New-Horizons-Modpack/issues/6915
2021-02-22 19:26:49 +03:00
xsun 53d3eafdbf clean up completely.(Although I think Intellij IDEA did a lot of useless thing) 2017-04-12 22:10:28 +08:00
yueh c9ef1beea1 Refactored the logging
Using LogManager instead of FMLRelaunchLog to access the logger instance.
Added logging of the name of failed exports instead of exception.
Improved crafting log to include issuer including their location and the
requested item.
Removed superfluous FMLRelaunchLog instance.
Removed superfluous parameters for PlayerData constructor.

Closes #2009
Refs #2069
2015-12-26 23:14:29 +01:00
yueh 500fc47490 Reduces visibility of internal fields/methods
Reduces the visibility of all fields to private and create setters/getters
when necessary. Exceptions are fields with GuiSync as these need to be
public.

Reduces the visibility of internal methods to private/protected/default when possible.
2015-10-30 18:52:20 +01:00
thatsIch 410d2f1e0d final variables and parameters
seeing some methods it does actually help to enforce the parameters
2015-09-26 21:08:18 +02:00
thatsIch 0387d30d1c Reduce scope of variables 2015-09-26 20:07:51 +02:00
thatsIch 734d50d086 prefer isEmpty over length() == 0 2015-09-25 23:18:27 +02:00
yueh c21a44d8c0 Organize imports 2015-08-06 19:06:49 +02:00
yueh 5aaaeb6d42 Closes #12 Added visual lock state to monitors
Some general refactoring of every monitor including panels and terminals.
Disabled glPushAttrib and glPopAttrib for StorageMonitor as this can be a
performance issue.
2015-06-06 17:00:52 +02:00
yueh f3db010303 Merge pull request #1461 from yueh/fix-1389
Fixes #1389 Enabled repeatable keyboard events
2015-05-19 00:53:22 +02:00
thatsIch 192848e383 Uses an instance factory access for AE2
Removes the improper way to set itself into a public static non-final variable.
Removes the direct access to the IntegrationRegistry from AppEng. Will be added at some later point somewhere else for non-singleton access.
Constructor is set to package private to enable possible construction from unit tests. Are current not runnable sind it is currently tied to the FML Loader instance.
2015-05-16 20:48:32 +02:00
yueh 96e79e9d9c Fixes #1389 Enabled repeatable keyboard events 2015-05-16 11:34:18 +02:00
thatsIch 7c9b734948 reduces overly strong type cast 2015-05-09 12:45:46 +02:00
thatsIch 64ed05a1b4 Puts everywhere brackets 2015-04-29 18:38:24 +02:00
thatsIch d34c988c88 Basic reformat, hit once, hope never again 2015-04-03 15:07:13 +02:00
thatsIch 81c32d5181 Multiple variables in one declaration 2015-03-26 12:13:34 +01:00
thatsIch 52c512635d Renamed constants 2015-01-01 22:13:10 +01:00
yueh 9b7b0fc0fb Organize imports 2014-12-29 21:59:05 +01:00
yueh f471513bd0 Changed access to use this qualifier 2014-12-29 15:13:47 +01:00
mstiles92 f4f3634b78 Use braces around if statement body. 2014-11-26 09:29:25 -05:00
mstiles92 a57eb8d263 #470 Prevent the search box from losing focus in Auto Search and NEI Synchronized Auto Search modes.
Without this patch applied there is no real difference between the auto and manual search box modes (other than whether the search box initially has focus when the GUI is opened). The search box should always have focus in auto mode, and should be able to lose focus in manual mode, as has always been the case until recently. This patch fixes the problem by preventing the search box from losing focus when in Auto and NEI Synchronized Auto search modes.
2014-11-26 08:19:13 -05:00
thatsIch 7505f9b66a Added copyright to all java files 2014-11-14 12:03:00 +01:00
thatsIch cea2a91b31 Fixes search-box click area 2014-10-16 17:19:12 +02:00
thatsIch cbaff9cd64 Merge pull request #237 from iloveportalz0r/rv2
Deleted useless things
2014-10-04 10:21:13 +02:00
Andrew 7f225a5ec1 Deleted useless things 2014-10-03 23:08:28 -07:00
The Paper Pilot 09c70ed59b Re-enabled unfocusing the search bar in AUTOSEARCH and NEI_AUTOSEARCH mode 2014-10-03 23:51:20 -05:00
thatsIch 474596f095 Make fields final if possible to ensure immutability 2014-09-30 09:52:57 +02:00
Andrew da63aca95c Deleted unnecessary casts with Eclipse 2014-09-28 11:56:16 -07:00