Learn More →
簡而言之,這東西背後原理就是修改 Discord 語音擷取網頁的 CSS 樣式
所以你會需要:
Install for OBS
VOICE WIDGET
https://streamkit.discordapp.com/overlay/voice/[伺服器ID]/[語音頻道ID]
使用者ID
、伺服器ID
、語音頻道ID
需開啟 Discord 開發者模式Settings (使用者設定)
APP SETTINGS (應用程式設定)
Advanced (進階)
Developer Mode (開發者模式)
目標使用者
/語音頻道
/伺服器
點擊右鍵複製ID
,點擊[伺服器ID]
/[語音頻道ID]
)處即可Streamkit
暫不支援私訊通話截取。Ref: Feedback如果你想要做進一步的自訂修改,會需要一點 CSS 相關知識
使用者ID
與 圖片網址
1. 使用者ID
、2. 圖片網址
跳ねる
(跳動)、明度変動
(改變明亮度)、影(縁取り)
(加上外框)/* (可選1) 隱藏指定之外的使用者 */
li.voice-state:not([data-reactid*="②準備的使用者ID"]) {
display: none;
}
/* (可選2) 移除所有使用者頭像圖片 */
li.voice-state .avatar {
content: url();
}
/* 更改指定使用者頭像成特定圖片 */
li.voice-state[data-reactid*="②準備的使用者ID"] .avatar {
content: url(③準備的使用者圖片網址);
}
/* 頭像共通設定 */
.avatar {
height: auto !important;
width: auto !important;
/* 去除圓框 */
border-radius: 0% !important;
/* 平時亮度50% */
filter: brightness(50%);
}
/* 設定發聲時的狀態 */
.speaking {
/* 去除外框 */
border-color: rgba(0,0,0,0) !important;
/* 發聲亮度100% */
filter: brightness(100%);
}
/* 調整名稱標籤的顯示位置 */
ul.voice-states { display: flex; }
div.user{ display: none; }
/* 清除滾動捲軸 */
body {
background-color: rgba(0, 0, 0, 0);
overflow: hidden;
}
平常時
與 發聲時
)個別加上 CSS 動畫效果
transform: translateY(移動距離);
可以做出上下移動效果animation
可以做出持續移動效果等等animation
加上跳動效果的範例:/* 發聲時的狀態 */
.speaking {
/* ... */
animation: speak-now 5s infinite;
}
/* 上下移動動畫 */
@keyframes speak-now {
0% { bottom:0px; }
5% { bottom:10px; }
10% { bottom:0px; }
15% { bottom:10px; }
20% { bottom:0px; }
25% { bottom:10px; }
30% { bottom:0px; }
35% { bottom:10px; }
40% { bottom:0px; }
45% { bottom:10px; }
50% { bottom:0px; }
55% { bottom:10px; }
60% { bottom:0px; }
65% { bottom:10px; }
70% { bottom:0px; }
75% { bottom:10px; }
80% { bottom:0px; }
85% { bottom:10px; }
90% { bottom:0px; }
95% { bottom:10px; }
100% { bottom:0px; }
}
語音擷取最主要的 HTML 部分如下:(取自 Discord StreamKit Overlay Sample)
<div class="voice-container">
<ul class="voice-states">
<li class="voice-state">
<img class="avatar speaking" src="https://cdn.discordapp.com/avatars/235088799074484224/16c197c4c3f0eb808f9bceb6e1075e71.jpg">
<div class="user">
<span class="name">Rythm Bot</span>
</div>
</li>
<li class="voice-state">
<img class="avatar" src="https://cdn.discordapp.com/avatars/448994167029497867/b95dc78d27b8e12d7f9c5ca9e9aef35e.jpg">
<div class="user">
<span class="name">ガンジー</span>
</div>
</li>
</ul>
</div>
Discord Stream Kit
重新產生 or 更改網址 ID 部份.avatar
部分的 content: url()
Learn More →
Discord StreamKit Overlay Among us用ぴょこぴょこカスタムCSSジェネレーター
要注意這是 CSS 產生器,一樣需要 #事前準備 裡第 1 步的 網址
和第 2 步的 ID
。
Set
,複製自動產生的 CSS 至 OBS 瀏覽來源裡即可Discord StreamKit Overlay Sample
這則是 CSS 片段,只需要 #事前準備 裡第 1 步的 網址
。
ID
)ID
)