Commit Graph

19302 Commits

Author SHA1 Message Date
myk
b08eaf18f5 - make button-like FLabels act more like buttons
- can tab focus
  - space/enter to select
  - brighten on hover
- use previous "hover" border for focus indicator
- fix various layout and style bugs (e.g. too-short widths and missing hoverable properties)
2013-02-07 21:31:42 +00:00
Maxmtg
ead67174e2 fixing a crash when creature with B/G sword attacked AI (there was NPE on attempt to iterate over restrictions) 2013-02-07 20:53:04 +00:00
Maxmtg
9f2efbcf02 Added some text to winlose screen that would explain why player lost or won 2013-02-07 20:25:21 +00:00
myk
2ad1b57515 - change selection highlight in deck editor tables based on component focus to more clearly indicate which table has focus
- allow tab key to set focus to next component (e.g. prevent tables from swallowing tab and shift-tab)
- flicker-free reinstatement of current selection when table model data changes
2013-02-07 19:55:00 +00:00
moomarc
9b6d7d11d4 - Added Sewer Nemesis (thanks Rooger) 2013-02-07 18:03:09 +00:00
myk
d6b20d449a - don't let tables extend past bottom of deck editor page
- calculate the correct table row selection when multiple cards are bought at once
2013-02-07 13:19:06 +00:00
Chris
2ac3570840 - Added the recent commit logs to changes.txt. Preparing for the snapshot build release. 2013-02-07 13:02:09 +00:00
myk
58049bf017 don't select negative row after buying every last item in the spell shop 2013-02-07 12:30:30 +00:00
myk
d1fb51a898 use predicates instead of a custom count function 2013-02-07 12:15:44 +00:00
myk
0ee3219c99 use FButtons instead of FLabels on the AssignDamage dialog so default actions and tabbing work properly 2013-02-07 11:45:24 +00:00
swordshine
a6e42a73dd - Added some cards
- Vanguard: added Momir Vig, Simic Visionary Avatar
2013-02-07 11:19:37 +00:00
myk
c0c541832e add pack filter in spell shop 2013-02-07 10:50:38 +00:00
Maxmtg
e0a599fcbe getAvailableMana and mapManaSources accept any player as parameter, since AI wants to evaluate player's mana he might use to pump creatures 2013-02-07 09:15:09 +00:00
moomarc
32e0374166 - Added a deck editor icon for products. Hooked up the icon in FSkin and added a commented out basic hook for it in SEditorUtil 2013-02-07 07:29:17 +00:00
moomarc
aceff2002d - Added an ai check svar to Sheltered Valley so that it won't play it if it already has another one on the battlefield
- AiController.getLandsToPlay will now check NeedsToPlayVar and filter out relevant cards
2013-02-07 05:47:08 +00:00
Sol
5a9838c6d1 - Converting Sheltered Valley to script (no AI exists in hardcode, but we probably should an add an SVar to not play this if that player already controls one of these) 2013-02-07 04:22:44 +00:00
myk
f89efa6ae4 - reshow selected card when the listbox regains focus
- show current card /after/ the events stop firing so the card data doesn't get overwritten
2013-02-07 01:41:48 +00:00
myk
f552ffbed6 - add ctrl(cmd)+enter hotkey to auto button in ability chooser dialog
- scroll game log to top on display
2013-02-07 00:30:56 +00:00
myk
480124f407 - allow highlighting and copying of match log in ViewWinLose
- make saving layouts thread safe
2013-02-06 23:38:35 +00:00
Maxmtg
17b42ebf83 SpellAbility: Intrinsic/Extrinsic types were never assigned (removed)
setPaidList, beforePayManaAI, setAllReplacingObjects, hasReplacingObject, wasCancelled were never used (removed)
reduced visibility of setManaPart, 
finalized setReplicateManaCost, setXManaCost, setIsMultiKicker, setIsReplicate, setIsCycling, setConditions, (set/add)OptionalAdditionalCosts  since they were called by CardFactoryUtil only => all removed from WrappedAbility.java
2013-02-06 21:53:37 +00:00
Maxmtg
2075591430 SpellAbility: afterResolve and afterPayMana were removed, since they were not used.
little refactoring for global ruin
CardEdition: remove unused ctor
2013-02-06 21:13:10 +00:00
myk
987af8ba4f set button focus after match; this also gets the game log scrolling properly 2013-02-06 20:23:25 +00:00
myk
22859cec6c - allow spacebar to move cards in DualListBox and enter to select the OK button
- make color of listbox selection depend on listbox focus, not cell focus
- avoid NPE when attempting to start a challenge when there isn't one to start
2013-02-06 19:59:37 +00:00
myk
f7001a17f2 differentiate item hilight when a FList listbox has lost focus from when the listbox is selected
ensure the CardListViewer always appears in the center of the screen
2013-02-06 19:41:48 +00:00
Sloth
dae7d2f110 - Fixed Deathpact Angel. 2013-02-06 18:54:29 +00:00
myk
4bfaa9fcb1 move type parsing from private constructor to reader class; add comment on purpose of 2-letter codes 2013-02-06 18:11:43 +00:00
myk
71624be223 make set chooser dialog overlay-based instead of JDialog-based 2013-02-06 17:03:26 +00:00
moomarc
a81f97ae92 - Added Skill Borrower 2013-02-06 14:07:56 +00:00
Sloth
a942894fd7 - Fixed AI ignoring "DiscardValid" parameter. 2013-02-06 13:52:30 +00:00
Sloth
6777f40bd1 - Fixed Haste on suspended creatures. 2013-02-06 13:40:42 +00:00
moomarc
0461c169f4 - Improved Sedris, the Traitor King's script to better handle the exile at next EOT 2013-02-06 13:31:36 +00:00
Chris
2d2a317772 - Added the recent commit logs to changes.txt. Preparing for the snapshot build release. 2013-02-06 12:56:30 +00:00
moomarc
1b3110ee7c - Added Sedris, the Traitor King 2013-02-06 12:51:23 +00:00
RumbleBBU
458c879343 Minor technical improvement to a check in BoosterUtils.java. 2013-02-06 12:06:30 +00:00
myk
78fed8fede simplify and theme choose sets dialog 2013-02-06 11:54:06 +00:00
RumbleBBU
fa7cfb3c84 The Very Hard Jamuraa decks can now occasionally (rarely) give you special extra rewards. 2013-02-06 11:39:12 +00:00
myk
e000e107e3 add set type information to setdata.txt and store it via CardEdition 2013-02-06 10:36:29 +00:00
Maxmtg
e01a5af4b2 GameAction divided into 2 parts: original keeps cards' zone transitions, GameActionPlay.java holds methods for playing spells (mostly used by human player I guess)
in ComputerUtil demanded player to be AiPlayer for playeing spells
2013-02-06 09:35:27 +00:00
moomarc
2e421729f9 - Fixed Krosa Chaos trigger 2013-02-06 09:34:29 +00:00
myk
29564f37d7 ensure stats labels in deck editor are shown at the correct height on large displays
this works around a quirky interaction between WrapLayout and MigLayout that was causing interior cells to be properly resized but the cells surrounding them would not be, resulting in widgets that would be too large or too small for their unupdated containing cells
2013-02-06 09:19:56 +00:00
Maxmtg
ba80f2126d moved GameAction & its util class to forge.game 2013-02-06 07:06:58 +00:00
Maxmtg
7e804867de missing HumanPlayer.java for commit 19420 2013-02-06 06:47:16 +00:00
Maxmtg
cb1793eddf player.isHostileTo() renamed to more correct 'isOpponentOf()' 2013-02-06 06:41:51 +00:00
Maxmtg
9cd0afa0d8 CardEdition: removed ctor overload and made it private (editions must not be created by other code but nested Reader class anyway)
Player: isComputer and isHuman methods redefined as getType() == PlayerType(computer/human), no overloads needed in derived classes
2013-02-06 06:34:27 +00:00
moomarc
53635ddc1a - Cunning Giant will now interact correctly with planeswalkers 2013-02-06 06:03:50 +00:00
Maxmtg
d3bb37a368 Methods to test a string against a valid card type moved to forge.CardType
CommonDrawback: wrote in a single line the complicated chkAIDrawback method
removed unused imports
CardUtil.getRandom replaced with Aggregates.random
getReflectableMana uses Set as collection, so it does not have to check for duplicates before adding new items.
united two CMC calculation methods (one was getCMC from card that read characteristics while other took more factors into account)
2013-02-05 20:51:01 +00:00
Sloth
2ad0bae9f7 - Fixed CostTapType hanging when X=0. 2013-02-05 19:21:38 +00:00
Maxmtg
58fa5b34ea Added AIPlayer parameter to doTrigger and chkAIDrawback 2013-02-05 19:18:31 +00:00
Sloth
8ba3ad5b90 - Fixed Assemble the Legion. 2013-02-05 19:06:57 +00:00
moomarc
b6236a551f - Made sure Cunning Giant's replacement effect (for now) only triggers if it wasn't blocked, not also if it tramples over something. 2013-02-05 15:16:57 +00:00