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
222105be
Commit
222105be
authored
Jan 19, 2015
by
Matt Lowe
Browse files
Added functionality in game
parent
041e9141
Changes
2
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/tab_game.cpp
View file @
222105be
...
...
@@ -418,6 +418,7 @@ TabGame::TabGame(TabSupervisor *_tabSupervisor, QList<AbstractClient *> &_client
connect
(
messageLog
,
SIGNAL
(
cardNameHovered
(
QString
)),
cardInfo
,
SLOT
(
setCard
(
QString
)));
connect
(
messageLog
,
SIGNAL
(
showCardInfoPopup
(
QPoint
,
QString
)),
this
,
SLOT
(
showCardInfoPopup
(
QPoint
,
QString
)));
connect
(
messageLog
,
SIGNAL
(
deleteCardInfoPopup
(
QString
)),
this
,
SLOT
(
deleteCardInfoPopup
(
QString
)));
connect
(
messageLog
,
SIGNAL
(
addMentionTag
(
QString
)),
this
,
SLOT
(
addMentionTag
(
QString
)));
sayLabel
=
new
QLabel
;
sayEdit
=
new
QLineEdit
;
sayLabel
->
setBuddy
(
sayEdit
);
...
...
@@ -507,6 +508,11 @@ TabGame::TabGame(TabSupervisor *_tabSupervisor, QList<AbstractClient *> &_client
messageLog
->
logGameJoined
(
gameInfo
.
game_id
());
}
void
TabGame
::
addMentionTag
(
QString
value
)
{
sayEdit
->
insert
(
value
+
" "
);
sayEdit
->
setFocus
();
}
TabGame
::~
TabGame
()
{
delete
replay
;
...
...
cockatrice/src/tab_game.h
View file @
222105be
...
...
@@ -195,6 +195,8 @@ private slots:
void
actPhaseAction
();
void
actNextPhase
();
void
actNextTurn
();
void
addMentionTag
(
QString
value
);
public:
TabGame
(
TabSupervisor
*
_tabSupervisor
,
QList
<
AbstractClient
*>
&
_clients
,
const
Event_GameJoined
&
event
,
const
QMap
<
int
,
QString
>
&
_roomGameTypes
);
TabGame
(
TabSupervisor
*
_tabSupervisor
,
GameReplay
*
replay
);
...
...
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