Basile Clement
6d032c378f
Improve drag & drop behavior ( #4963 )
...
* Improve drag & drop behavior
This patch tweaks the drag & drop behavior (in particular, the grid
placement) to be more intuitive. More precisely, with this patch the
drag & drop will:
- Only use the "hot spot" (i.e. position of the cursor on the card)
for zones where the card is actually displayed around the cursor (in
particular, not on the table where the card snaps to the grid).
- Use better boundaries computed with respect to the center of the
card (rather than its top left corner) for determining which grid
cell a card should go to
- Align behavior of the preview and the actual effect when overflow of
the 3-card stacks occurs
- Avoid visual glitches where the cursor ends up outside of the card or
at incorrect offsets when moving the mouse too fast (which translates
to overflows of the hot spot computation)
* Address review comments
- Use simpler computation for restricting hotSpot range
- Prevent dropping cards onto full 3-card slots
2024-01-01 16:51:36 -05:00
ebbit1q
6981cca2ae
use qt round for better cross platform consistency ( #4518 )
...
* use qt round for better cross platform consistency
* remove unnecessary casts
2022-01-08 16:01:15 -05:00
fdipilla
b0c7b9078d
Multiple bg images zone ( #4005 )
2020-08-23 15:55:53 -04:00
olegshtch
44297dcd1c
Fix release tests ( #4063 )
2020-08-13 10:18:01 -04:00
fdipilla
fd0620445c
Different backgrounds per player ( #3990 )
2020-05-14 20:31:12 -04:00
ebbit1q
18a07274d4
clangify everything with the new header sorting ( #3908 )
2020-03-18 17:36:02 -04:00
ebbit1q
a80c756dcb
update deprecated methods in qt5.14 and protobuf 3.4 ( #3906 )
2020-03-16 20:41:41 -04:00
ebbit1q
abe4f5ca60
don't remove pt! 🔥 🔥 🔥 🔥 ( #3606 )
...
* don't remove pt! 🔥 🔥 🔥 🔥
* apply water to burns
* clangify
* fix clientside
* clangify
* missed qdebug
Signed-off-by: Zach Halpern <ZaHalpern+github@gmail.com>
2019-03-04 00:55:54 -05:00
ctrlaltca
b29bd9e070
Clang-format ( #3028 )
...
* 1/3 Add .clang-format file and travis compilation check
* 2/3 Run clang-format
* 3/3 Fix compilation problems due to include reordering
* 3bis/3 AfterControlStatement: false
2018-01-27 10:41:32 +01:00
Fabio Bas
bb5292aa8d
Drop Qt4, libgcrypt, qtmobility dependencies
2016-05-11 12:45:58 +02:00
Fabio Bas
e94f59d7c2
Crash fix
2016-03-22 17:07:45 +01:00
Fabio Bas
5cfb034452
merged with master
2015-08-31 22:48:14 +02:00
mildmongrel
ba50025e80
tablezone refactor and cleanup
2015-07-24 16:15:08 -07:00
Fabio Bas
f84d6fec1b
Never send wrong row numbers
2015-06-25 15:39:03 +02:00
Fabio Bas
6b8ebe54e9
Theme manager
...
This is the first implementation of a theme manager. It’s a rebased and
revisited version of #792 .
2015-06-15 14:35:58 +02:00
Matt Lowe
87d938e56b
Updated hand and table color
...
Updated default colors, darker, more modern, slick. Great feedback from
community.
2015-05-05 23:58:36 +02:00
poixen
967e1a469e
Removed comments
...
- Removed comments as-per request
2014-11-05 14:10:30 +01:00
Matt Lowe
a1c013a893
Updated UI features
...
+ Added a fade to inactive players TableZone
+ Refreshed TableZone, HandZone and DeckView default background colors
2014-10-16 18:14:51 +02:00
Fabio Bas
6dbdaafb33
Ported cockatrice
2014-06-24 19:13:47 +02:00
Mark Morschhäuser
80da61dcbb
Fix MSVC++ compile error caused by missing round() in math.h
2014-03-11 16:10:55 +01:00
Mark Morschhäuser
49227ad44c
Fixed VC "'*/' found outside of comment" warning.
2014-03-11 15:04:26 +01:00
Matt Kelly
1bc48a7849
Convert rest of source to 4-space indent
2014-02-11 11:14:19 -05:00
Max-Wilhelm Bruker
adbb607700
Revealing a library to a player now grants that player permission to drag cards out of that library onto his own table. This permission is revoked by shuffling the library. The zone view window tracks content changes of the zone for as long as the permission lasts so that card ID changes are kept track of. This hopefully fixes issues #5 and #12 .
2012-03-24 17:48:25 +01:00
Max-Wilhelm Bruker
609e3fc41d
converted SetCardAttr attr_name to enum
2012-01-02 20:20:31 +01:00
Max-Wilhelm Bruker
d5c628966f
PB: everything compiles except for deck storage
2012-01-01 02:48:24 +01:00
Max-Wilhelm Bruker
314f17091d
protobuf client->server communication almost working
2011-12-18 18:35:14 +01:00
unknown
da467468d5
improved facedown moving
2011-09-15 14:19:29 +02:00
Max-Wilhelm Bruker
ce80d29f50
improved cipt handling, initial p/t for cards
2011-02-16 20:05:03 +01:00
Max-Wilhelm Bruker
92e842bb74
fixed direct chat, fixed in-game attachment bugs
2011-01-25 00:12:35 +01:00
Max-Wilhelm Bruker
9c527fb5aa
Click to hide revealed cards; MultiMove function
2011-01-15 21:39:24 +01:00
Max-Wilhelm Bruker
231887367c
card menu improvement, change controller support (bug #3 )
2010-12-23 19:21:47 +01:00
Max-Wilhelm Bruker
a77dc1ff8c
abolished economical layout, improved stacking
2010-12-16 02:07:35 +01:00
Max-Wilhelm Bruker
04a3f95173
merge
2010-12-14 20:18:06 +01:00
Max-Wilhelm Bruker
f4962d021e
experimental card stacking
2010-12-14 19:26:40 +01:00
Max-Wilhelm Bruker
99c0a41d18
improved rubber band drag
2010-12-14 04:37:13 +01:00
Max-Wilhelm Bruker
92d40515f2
changed card hover handling
2010-11-09 16:19:13 +01:00
Max-Wilhelm Bruker
df5791d318
Introduced stack zone, shrunk table to have higher zoom factor
2010-11-03 21:28:43 +01:00
Max-Wilhelm Bruker
a029994437
removed unnecessary repaint when destroying token
2010-10-27 19:54:48 +02:00
Max-Wilhelm Bruker
bc7b48a7aa
new table layout with inverted y coordinate
2010-10-14 17:51:36 +02:00
Max-Wilhelm Bruker
db2c2d1b15
card tap/untap animation; misc fixes
2010-10-07 17:18:15 +02:00
Max-Wilhelm Bruker
79a3a1a0b4
economic layout bug fix
2010-09-22 14:27:14 +02:00
Max-Wilhelm Bruker
e09060faca
Fixed automatic table resize. This fixes bug #0000023 .
2010-09-09 09:54:35 +02:00
Max-Wilhelm Bruker
62bf2572a9
Crash fixes (bug #0000006 ). Also cleaned up some includes to speed up compilation.
2010-09-08 22:52:04 +02:00
Max-Wilhelm Bruker
82e4f9e19d
removed debug command
2010-09-07 02:47:09 +02:00
Max-Wilhelm Bruker
90ffc76730
single player fixes
2010-09-07 02:46:54 +02:00
Max-Wilhelm Bruker
00077565ab
minor table layout bugfix
2010-08-11 01:32:52 +02:00
Max-Wilhelm Bruker
7921b5f82d
initial commit of local server code
2010-08-04 13:56:51 +02:00
Max-Wilhelm Bruker
cbfbc542e7
disallow dropping a card onto another
2010-07-17 23:37:22 +02:00
Max-Wilhelm Bruker
614f106304
arrows can target players; card attachment works
2010-07-17 18:24:14 +02:00
Max-Wilhelm Bruker
62a9003d3e
server has to assign free table space for a new card so that there is no race condition
2010-06-18 19:57:06 +02:00