mirror of
https://github.com/magefree/mage.git
synced 2025-12-29 06:52:02 -08:00
GUI: improved chat messages with card names and popup supports (example: [[card name]], closes #4189);
This commit is contained in:
parent
d1f9e9cc90
commit
7475ee922a
3 changed files with 64 additions and 54 deletions
|
|
@ -97,6 +97,7 @@ public class ChatPanelBasic extends javax.swing.JPanel {
|
|||
*/
|
||||
public ChatPanelBasic() {
|
||||
initComponents();
|
||||
txtConversation.enableHyperlinksAndCardPopups();
|
||||
setBackground(new Color(0, 0, 0, CHAT_ALPHA));
|
||||
changeGUISize(GUISizeHelper.chatFont);
|
||||
if (jScrollPaneTxt != null) {
|
||||
|
|
|
|||
|
|
@ -533,6 +533,7 @@ public class CallbackClientImpl implements CallbackClient {
|
|||
.append("<br/>").append("<b>/w username message</b> - send private message to player (whisper)")
|
||||
.append("<br/>").append("<b>/pings</b> - show players and watchers ping")
|
||||
.append("<br/>").append("<b>/fix</b> - fix frozen game")
|
||||
.append("<br/>").append("<b>[[card name]]</b> - insert card with popup info")
|
||||
.toString(),
|
||||
null, null, MessageType.USER_INFO, ChatMessage.MessageColor.BLUE);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue