LunaChat v3.0.3 : Clickable chat message (WIP)
このコミットが含まれているのは:
1 親
0466653e89
コミット
e2eea8798d
22ファイル変更
+756
-457
検索条件に一致するファイルはありません
@@ -7,6 +7,7 @@ package com.github.ucchyocean.lc3.channel;
|
||||
|
||||
import com.github.ucchyocean.lc3.japanize.JapanizeType;
|
||||
import com.github.ucchyocean.lc3.member.ChannelMember;
|
||||
import com.github.ucchyocean.lc3.util.ClickableFormat;
|
||||
|
||||
/**
|
||||
* Japanize2行表示のときに、変換結果を遅延してチャンネルに表示するためのタスク
|
||||
@@ -16,7 +17,7 @@ public class ChannelChatJapanizeTask implements Runnable {
|
||||
|
||||
private Channel channel;
|
||||
private ChannelMember player;
|
||||
private String lineFormat;
|
||||
private ClickableFormat lineFormat;
|
||||
|
||||
private JapanizeConvertTask task;
|
||||
|
||||
@@ -27,10 +28,10 @@ public class ChannelChatJapanizeTask implements Runnable {
|
||||
* @param channel 変換後に発言する、発言先チャンネル
|
||||
* @param player 発言したプレイヤー
|
||||
* @param japanizeFormat 変換後に発言するときの、発言フォーマット
|
||||
* @param lineFormat
|
||||
* @param lineFormat チャンネルのフォーマット
|
||||
*/
|
||||
public ChannelChatJapanizeTask(String org, JapanizeType type, Channel channel,
|
||||
ChannelMember player, String japanizeFormat, String lineFormat) {
|
||||
ChannelMember player, String japanizeFormat, ClickableFormat lineFormat) {
|
||||
|
||||
task = new JapanizeConvertTask(org, type, japanizeFormat, channel, player);
|
||||
this.channel = channel;
|
||||
@@ -45,8 +46,7 @@ public class ChannelChatJapanizeTask implements Runnable {
|
||||
public void run() {
|
||||
if ( task.runSync() ) {
|
||||
// チャンネルへ送信
|
||||
String name = (player != null) ? player.getDisplayName() : "";
|
||||
channel.sendMessage(player, task.getResult(), lineFormat, true, name);
|
||||
channel.sendMessage(player, task.getResult(), lineFormat, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
新しいイシューから参照
ユーザーをブロックする