Commit graph

1228 commits

Author SHA1 Message Date
Oleg Agafonov
6625db1be1 GUI: reworked GUI to support non-blocking UI:
- GUI: added non-blocking UI to almost all app and game dialogs;
- GUI: it allows to switch between UI dialogs and use any UI elements at any moment;
- GUI: it allows to use chat, card popup, battlefield, concede and other features while choosing (related to #12670);
- GUI: it allows to download images while playing (related to #4160, not fully tested);
- GUI: enabled by default, can be disabled by java option: -Dxmage.guiModalMode=true
- connection: auto-connect will be visible in main menu on startup;
- connection: removed some unused features (auto-connect by command line);
- connection: added <ESC> button to close connection dialog;
- download: added background images download (see non-blocking UI);
- download: improved cancel stability and fixes that it can't stop preparing/downloading process in some use cases;
- app: fixed freezes on macOS systems in some use cases (related to #12431, #11292, #9300, #4920);
2024-09-08 00:40:13 +04:00
Oleg Agafonov
8bd7e346fb images: fixed broken images download from scryfall (#12817); 2024-09-07 13:34:23 +04:00
Grath
8421c993e9
[BLC] Implement Gourmand's Talent (#12796) 2024-09-03 23:22:31 -04:00
theelk801
e67a741519 [DSC] add set 2024-09-01 09:26:23 -04:00
Svyatoslav28597
44fb94782c
Add set [YNEO] with six cards; add two [J21] cards plus reprints (#12692) 2024-08-24 01:02:16 -04:00
PurpleCrowbar
b6ee7fe410 Fix Mystery Booster 2 image downloads 2024-08-18 20:27:54 +01:00
Oleg Agafonov
a69ae2afae refactor: better images download naming and code format (related to #12627) 2024-08-15 09:02:34 +04:00
Svyatoslav28597
4a041aa89c
Add 5 Arena Tutorial Cards (as custom set) (#12627) 2024-08-14 21:11:19 -04:00
Sidorovich77
37bf7a68cd
[WHO] Implement Vrestin, Menoptra Leader (#12643)
Added Alien Insect token.
2024-08-14 21:09:39 -04:00
Oleg Agafonov
ce439d7fcf GUI: added some docs and experimental code (disabled) for better graphic rendering with HiDPI monitors (part of #969) 2024-08-14 20:27:59 +04:00
Oleg Agafonov
58400833bc GUI, game: improved battlefield sizing (part of #6887 and #969):
- fixed wrong restore of card hint and chat panels;
- now it keep hidden state too (e.g. hidden card hint);
- reworked and share splitters code;
- removed some useless hotkeys to show/hide card hint panel;
2024-08-13 23:49:39 +04:00
Oleg Agafonov
9321c694ca GUI, game: introduced sizeable hand/stack zones (part of #6887 and #969):
- added splitter/divider between hand and stack zone;
- users can resize it by mouse drag;
- users can hide/minimize hand or stack zones by mouse clicks on splitter arrows;
- splitter settings shared between games and stored between app runs;
2024-08-13 16:07:05 +04:00
theelk801
a66d292e06 [PSDG] add set 2024-08-05 11:41:56 -04:00
Oleg Agafonov
0a55e37c8c download: reworked scryfall images support:
- download: fixed unmount zip errors on cancel download in some use cases (closes #12536);
- download: significant download speed improvements (now it depends on user's network speed, not api limitations);
- download: added additional error dialogs on bad use cases;
- scryfall: added cards and bulk data api support;
- scryfall: added bulk data download (updates once per week, contains all scryfall cards and store in images\downloading folder, 2 GB size);
- scryfall: added optimized images download without api usage (use direct images links from bulk data, closes #11576);
- scryfall: improved image source searching for some use cases (miss or wrong images problems, closes #12511);
- scryfall: tokens don't use bulk data;
- scryfall: 75k small images downloads 40 minutes and takes 1 GB and 2100 api calls (most of it from tokens);
- scryfall: how-to disable bulk data, e.g. for api testing: -Dxmage.scryfallEnableBulkData=false
2024-08-03 19:41:14 +04:00
Oleg Agafonov
bfa7c4c9a8 download: improved images download from scryfall source:
- fixed wrong timeouts for api (fixed 429 Too Many Requests);
- added any/10 parallel threads support;
- current api limit is 1 request per 300 ms;
2024-08-01 11:46:37 +04:00
Oleg Agafonov
b5527a28db download: added debug logs/stats for http requests (DebugUtil.NETWORK_PROFILE_REQUESTS) 2024-08-01 11:23:54 +04:00
Oleg Agafonov
1914313d6e images: fixed miss phyrexian mana symbol for Rage Extractor 2024-07-31 22:05:52 +04:00
Oleg Agafonov
e1cffbde40 download: reworked connection:
- added shareable code with default proxy, headers and other settings for download tasks like images, symbols, mtgjson, etc;
- use XmageURLConnection.downloadText for text resources
- use XmageURLConnection.downloadBinary for any file resources
- added user agent with app version for all requests;
- added http logs and improved error messages;
2024-07-31 21:25:56 +04:00
jimga150
82a7769cbd
Update Rage Extractor's Phyrexian mana symbol (#12612)
* Switch Rage Extractor's Phyrexian mana symbol letter code to {H} instead of {P}
2024-07-30 00:40:21 -04:00
PurpleCrowbar
4f90270fa1 Add BLB token images 2024-07-29 22:07:02 +01:00
Oleg Agafonov
1d701df0e8 GUI: added gui scale support for skip and phase button on game panel (part of #969, #6887):
- reworked skip and phase buttons to use layouts instead IDE designer;
- added GUI scale support skip and phase buttons (depend on dialogs font size from preferences settings);
2024-07-28 18:01:15 +04:00
Oleg Agafonov
53a072b759 GUI, preferences: removed 4 useless size settings, fixed wrong fonts in few places like miss image path (part of #969, #6887) 2024-07-27 21:35:33 +04:00
Oleg Agafonov
ba929d5692 GUI: improved GUI scale support (fixed font sizes in card icons popup, ability picker dialog, part of #969) 2024-07-27 17:05:54 +04:00
Oleg Agafonov
21ad11dbdc GUI: added GUI scale support for ability choice dialog (related to #12155, #969) 2024-07-27 11:58:35 +04:00
Oleg Agafonov
83823acec7 GUI, performance: fixed memory/resources leaks on some components rendering 2024-07-26 03:27:10 +04:00
Oleg Agafonov
1f3fad6594 GUI, preferences: reworked size settings:
- added size settings for player's panel size (closes #12455, closes #12451, closes #5605);
- size settings can be edit by slider or by text edit;
- size settings for fonts has preview button with real text sample;
- improved some tabs and hints for better UX;
- improved GUI rendering performance;
2024-07-26 03:27:10 +04:00
Oleg Agafonov
921e656e3c images: fixed miss images of War Room and Revenge in Star Wars (closes #10411) 2024-07-25 14:36:44 +04:00
Oleg Agafonov
1403b3aa37 images: fixed Star Wars images download, added Star Wars tokens (closes #12602) 2024-07-25 14:27:01 +04:00
Oleg Agafonov
77df387e06 GUI: improved pick choice (dialogs with searchable list, related to #12420):
- dialog: added mana symbols and html support in headers and list;
- dialog: added custom hints for each list's item (use setHintData);
- dialog: added game object hint type (use object id as hint value);
- dialog: added fast way to add key, value, sort and hint data (use choice.withItem());
- cheats: added commands list in popup hint;
2024-07-18 23:04:47 +04:00
theelk801
7b5330fee3 [BLC] add set 2024-07-09 16:32:01 -04:00
Oleg Agafonov
9864cdd46c GUI, preferences: improved theme switch at runtime (fixed skip and step buttons update); 2024-07-05 18:11:09 +04:00
Oleg Agafonov
2631b31b8a GUI, preferences: improved theme switch at runtime (fixed main menu update); 2024-07-03 23:46:12 +04:00
Oleg Agafonov
64f3df035b GUI, preferences: added theme switch without app restart (for preview only, app must be restarted anyway for full GUI refresh); 2024-07-03 04:31:07 +04:00
theelk801
3c3af396ef [FDN] add set 2024-06-28 11:06:53 -04:00
theelk801
b99fa71444 [DSK] add set 2024-06-27 13:42:21 -04:00
tiera3
0a23521ece
images: removed redundant download links for scryfall cards (#12508)
Found the include_variations flag so no need for a third search to check for variations - combined it with the second search (that drops the language code).
2024-06-25 07:34:36 +04:00
Oleg Agafonov
7d675de876 server: fixed server app freeze on another instance already running, improved threads usage (related to #11285); 2024-06-23 15:58:25 +04:00
PurpleCrowbar
77aba627b0 Add all missing Secret Lairs 2024-06-22 16:26:50 +01:00
PurpleCrowbar
f83073081d Add M3C token images 2024-06-15 01:41:10 +01:00
PurpleCrowbar
993ffd8894 Add MH3 token images 2024-06-15 01:22:00 +01:00
Oleg Agafonov
1750797036 images: made normal images size as default download source, improved description and info messages 2024-06-13 01:04:30 +04:00
tiera3
b0f08d278f
images: added normal images size download from scryfall source - 2/3 of BIG sizes but with same quality (#12450) 2024-06-13 00:05:01 +04:00
tiera3
fb710f46be
images: improved download size calc for small scryfall images (#12441) 2024-06-09 10:32:10 +04:00
Oleg Agafonov
d2f5379d35 images: improved error message on miss symbols 2024-06-08 11:46:05 +04:00
Oleg Agafonov
c094e31760 images: fixed wrong errors on searching broken images files (closes #12430) 2024-06-08 07:28:17 +04:00
Evan Kranzler
27bea843a3
[M3C] Implement Ulalek, Fused Atrocity and new colorless hybrid mana (#12273)
* improved by (#12415)
* Added symbol downloads for new colorless hybrid
---------

Co-authored-by: Alexander Novotny <alexander_novo@mail.tmcc.edu>
Co-authored-by: Oleg Agafonov <jaydi85@gmail.com>
2024-06-06 23:43:45 +04:00
Oleg Agafonov
4635563f44 images: deleted outdated/closed images sources (closes #5767) 2024-06-06 22:10:46 +04:00
grimreap124
e0184197c8
GUI: fixed stacked permanents in some use cases (#12402) 2024-06-05 13:19:48 +04:00
Susucre
70a5a9a8cf add special guests for MH3 2024-06-04 20:49:44 +02:00
grimreap124
6498522b4e
gui: fix stacking of land creature tokens (#12318)
Moving land creatures into the creature row like they were pre-stacking update

related to #12242, #12248, #12256
2024-06-01 01:10:33 -04:00