Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
cf24f4aa
Commit
cf24f4aa
authored
May 04, 2015
by
poixen
Browse files
Merge pull request #1045 from poixen/move_reveal_location
Moved zone loactions
parents
399122f4
7ccc23f9
Changes
1
Show whitespace changes
Inline
Side-by-side
cockatrice/src/gamescene.cpp
View file @
cf24f4aa
...
...
@@ -127,7 +127,12 @@ void GameScene::toggleZoneView(Player *player, const QString &zoneName, int numb
zoneViews
.
append
(
item
);
connect
(
item
,
SIGNAL
(
closePressed
(
ZoneViewWidget
*
)),
this
,
SLOT
(
removeZoneView
(
ZoneViewWidget
*
)));
addItem
(
item
);
item
->
setPos
(
50
,
50
);
if
(
zoneName
==
"grave"
)
item
->
setPos
(
360
,
100
);
else
if
(
zoneName
==
"rfg"
)
item
->
setPos
(
380
,
120
);
else
item
->
setPos
(
340
,
80
);
}
void
GameScene
::
addRevealedZoneView
(
Player
*
player
,
CardZone
*
zone
,
const
QList
<
const
ServerInfo_Card
*>
&
cardList
,
bool
withWritePermission
)
...
...
@@ -136,7 +141,7 @@ void GameScene::addRevealedZoneView(Player *player, CardZone *zone, const QList<
zoneViews
.
append
(
item
);
connect
(
item
,
SIGNAL
(
closePressed
(
ZoneViewWidget
*
)),
this
,
SLOT
(
removeZoneView
(
ZoneViewWidget
*
)));
addItem
(
item
);
item
->
setPos
(
5
0
,
5
0
);
item
->
setPos
(
60
0
,
8
0
);
}
void
GameScene
::
removeZoneView
(
ZoneViewWidget
*
item
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment