Commit graph

75 commits

Author SHA1 Message Date
Oleg Agafonov
d03ebad794 GUI: draft panel - added set code to booster names, improved text fonts and drawing; 2023-12-15 16:01:09 +04:00
Oleg Agafonov
c10ed215ab GUI: draft panel - added new timer (bigger size, diff color), migrated form structure to layout managers; 2023-12-15 15:44:33 +04:00
Oleg Agafonov
2541f67793 refactor: improved draft panel structure 2023-12-15 10:05:15 +04:00
Oleg Agafonov
df26ab5156 refactor: moved draft grid component to correct package, improved netbeans editor compatibility 2023-12-15 08:38:15 +04:00
xenohedron
bec7c22990 slightly reduce draft protection timer 2023-09-28 00:03:27 -04:00
xenohedron
7c535658f0 more defensive null checking in draft panel 2023-09-27 23:54:29 -04:00
Susucre
a58cac2fd5
draft improves: add protection timer (2 sec) to avoid double pick (#11188) 2023-09-23 20:25:48 -04:00
sprangg
287df7af21
Wait 2 seconds before making the draft pick for a timed out player (#10733)
* The draft session waits for 5 seconds before making the pick for the timed out player

* Formatting

* Renamed constant

* Tweak

* If the draft pick's timeout value would increase the client's pick's timer, don't set it (might happen if the client or server is lagging)

* Lowered BOOSTER_LOADING_INTERVAL and AUTOPICK_BUFFER

---------

Co-authored-by: sprangg <a@b.c>
2023-08-06 20:00:42 -04:00
xenohedron
4cc9329b15
New feature: "Chaos Remixed" booster draft (#10328)
* Fix error in draft pick logger that was failing on chaos drafts with fewer than 3 sets

* Implement Remixed Booster Draft

* Add debug test

* minor cleanup

* Cleanup unnecessary checks

* Fix elimination tournament type

* Add note for future improvement
2023-05-12 18:12:23 +04:00
sprangg
d604f04b79
Button focus adjustments for yes/no dialogs (#9828)
* UserRequestDialog buttons can't be pressed with spacebar anymore

* Pressing spacebar when drafting no longer brings up the quit menu

* Revert DraftPanel and TournamentPanel quit dialog buttons to their original positions

Co-authored-by: sprangg <a@b.c>
2022-12-26 20:09:41 +04:00
sprangg
0627dc4640
More draft stability (#9718) 2022-11-25 11:44:14 -05:00
sprangg
b9530e307d
Draft stability improvements (#9435) 2022-09-25 17:33:16 -04:00
sprangg
ba558f9a18
Fix the UI pitfall of double spacebar press quitting a draft (#9193)
* Switch draft's quit dialog's yes/no buttons so that yes isn't enabled by default

* TounramentPanel's quit button also adjusted for the sake of consistency.

Co-authored-by: sprangg <a@b.c>
2022-07-03 02:20:41 +04:00
Oleg Agafonov
65761b085f * Game: fixed wrong booster pass order in drafts (#8075); 2021-08-28 13:17:57 +04:00
Oleg Agafonov
06ae494c5b Drafts: refactor to use same pack/pick number logic (#8039); 2021-07-23 16:18:56 +04:00
Oleg Agafonov
be77ecea84 GUI: fixed not working single and double clicks on the card's second side (draft, deck editor, see #7472); 2021-02-03 11:32:15 +04:00
Oleg Agafonov
a1da5ef437 * GUI: new reworked GUI and card render engine, card icons and dozens of other fixes (see full list in related PR); 2021-01-30 16:38:55 +04:00
Oleg Agafonov
610baac6ab GUI: improved feedback needed sound notifications (plays only for inactive game or app, see #6853); 2020-07-31 20:00:36 +04:00
John Hitchings
61d40902ab Ability to import draft logs as decks. 2019-04-11 22:27:21 -07:00
John Hitchings
7e621ee8af Make draft logs compatible with MTGO format #5450 - https://github.com/magefree/mage/issues/5450 2018-12-19 19:41:44 -08:00
GrayedFox
3953f3dbdd
remove all MIT copyright notices from files 2018-06-02 17:59:49 +02:00
igoudt
9cbc2b7ea2 change client messages to enum rather than string 2017-10-03 15:18:31 +02:00
ingmargoudt
2b91b88551 fixing some additional singleton classes 2017-03-16 09:48:02 +01:00
vraskulin
f60ebfbb1f All 1-character strings converted to primitives
"b" + "r" now changed to 'b' + 'w'.  It's more straight-forward, and may cause perfomance improvements - character primitives allocation is faster and less expensive than string creation.
2017-02-06 14:32:51 +03:00
vraskulin
076840df53 Big refactoring
I used Intellij IDEA to automatically refactor code to achive 3 goals.
1) get rid of anonymouse classes, and replace the with lamba to get more readeable and clean code (like in TableWaitingDialog).
2) make effectively final  variables actually final to avoid inadvertent changes on it in further releases and keep objects as immutable, as possible.
3)  Get rid of unused imports (most of the changes) in whole project classes.
2017-01-09 19:16:53 +03:00
LevelX2
070a0ca3fa * Fixed a problem that the enlarged card view could stay open after a game or draft were finished. 2016-10-23 23:13:02 +02:00
ingmargoudt
3019991473 removed the Session out of local scope and introduced a static SessionHandler that acts as interface to remote.Session 2016-09-15 20:52:41 +02:00
draxdyn
e3d84ca212 Cache resized and rotated images
RotatedResizedImageCache and MultiRotatedResizedImageCache contain the caching
machinery.

A cache of rotated and resized images is added to ImageCache, and is used by
the resizing functions there.

All the resizing and rotation functions in ImageHelper are redirected to the
ones in ImageCache.

This is slightly inefficient because it will cache some calls that are never
repeated, but it prevents developers from mistakenly using uncached functions
when calls are repeated, seriously impacting performance.

Also resizing functions that only take a width or an height have been removed,
and their calls fixed to provide the other dimension. It's still possible to
specify -1 as width or height to ignore constraints in that dimension, though.

Greatly speeds up UI performance.
2016-06-23 16:21:34 +02:00
LevelX2
77eff0984a Some more changes to GUI to better support high screen resolutions. 2016-02-18 00:27:48 +01:00
LevelX2
1835671f3d Some more changes to GUI to better support high screen resolutions. 2016-02-14 13:41:43 +01:00
LevelX2
7ef0a0a7f0 Some more changes to GUI to better support high screen resolutions. 2016-02-13 02:30:05 +01:00
Neil Gentleman
bfb428b13a always use log4j
removed all references to mage.util.Logging, java.util.logging

transient static doesn't mean anything, since static fields are never
included in serialization
2015-11-28 21:11:25 -08:00
LevelX2
532d4e0af0 * Added automatic handling for order of triggered abilities going to stack (fixes #701 / related to #328). 2015-08-22 19:29:57 +02:00
LevelX2
386204c085 * Draft log - Fixed a bug that the last pick was logged twice. 2015-08-19 11:46:57 +02:00
Gerhardt Schulle
54c1e4f66c Add option to log draft picks into a file for post review after the game. 2015-08-09 21:35:49 +02:00
Brodee
ac0aa65aab code review comments for chaos/random booster draft:
1. rename chaos booster draft to random booster draft
2. save packs selected in the user preferences
3. print "Random Boosters" in the player draft viewer during the draft
2015-06-23 20:59:05 -07:00
brodee
e3b84eaab5 chaos booster draft implementation first check-in 2015-06-22 21:55:43 -07:00
Kranken
f8dd3a1491 Fixed a bug when showing and hiding drafted cards
This commit fixes the following bug:

1) Draft a couple of cards in draft mode
2) Hide a card
3) Show all cards
4) Hide another card

Here both cards got hidden, this commit makes sure
only the card in 4) gets hidden
2015-02-01 16:45:05 +01:00
LevelX2
c22b54d262 *Draft - Non hidden picked cards go to the deck. Hidden cards to sideboard. 2014-11-23 18:43:31 +01:00
LevelX2
bf3fa37e5d * Draft - Added possibility to hide (and show again) cards from the picked cards area. 2014-11-22 18:19:59 +01:00
LevelX2
2e68f6c692 * Draft - Fixed that first draft direction is shown as left, second as right and third again to left. 2014-11-19 15:12:17 +01:00
LevelX2
532345e28a * Darft - Play countdown sound during drafting only if no card from curretn booster was draft. 2014-11-02 12:12:39 +01:00
LevelX2
18d71a9377 * Added display of player order to the draft panel. Added tray info for next card to pick if the XMage window is not active. 2014-11-01 01:59:33 +01:00
LevelX2
e6c7fa5f96 * Draft - Added possibility to mark a card to draft on timeout. Added sounds to draft. Changed compression of some sound files. 2014-10-31 16:22:10 +01:00
LevelX2
f3551a1055 * Client Draft panel - Minor UI changes. 2014-05-15 08:34:43 +02:00
LevelX2
9ff5bcbd92 Improved reconnect and tournament handling. Reconnect time is now shown for disconneted players on player list and tournament panel. You can now reconnect (during 3 minutes) to a tournament also if meanwhile new game (after sideboarding ended) or round was started. Conceding the complete match in a tournament can no longer result in a draw, if you won games before. Quitting a tournament does now always end all active games of that quitting player. 2014-03-31 02:24:59 +02:00
LevelX2
8d2f4cc9ac * Draft - Added "Quit Tournament" button to draft panel. Minor formatting. 2014-02-28 17:47:27 +01:00
LevelX2
df9c200753 * Memory handling - some more changes to improve object deallocation. 2014-02-06 18:00:45 +01:00
LevelX2
0a18a7bea6 Removed majority of memory leaks from game / editor / dialog handling. 2014-02-02 21:57:02 +01:00
LevelX2
1f8555447d Removed mana leaks for deck editor and draft panels. 2014-02-01 03:26:27 +01:00