File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -140,6 +140,19 @@ video {
140140 height: 100%;
141141}
142142
143+ # 話語{
144+ white-space: pre-line;
145+ }
146+ .對話: befor e{
147+ content: '「' ;
148+ dis play: block;
149+ height: 100%;
150+ float: left;
151+ }
152+ .對話> span : nth-last-child (1 ): after {
153+ content : '」' ;
154+ }
155+
143156# 選項 {
144157 position: absolute;
145158 height: 220px;
Original file line number Diff line number Diff line change @@ -50,13 +50,6 @@ window.演出 =
5050 if data.背景音樂[0 ]!= ' None'
5151 data.背景音樂[0 ] = this .音樂文件夾 + ' /' + data.背景音樂[0 ]
5252
53- if data.名字!= ' '
54- data.話語 = " 「#{ data.話語} 」"
55- $ (' #名字框' ).fadeIn (200 )
56- else
57- data.話語 = ' ' + data.話語
58- $ (' #名字框' ).fadeOut (200 )
59-
6053 改變演出狀態: (data ) ->
6154 this .信息預處理 data
6255 console .log data
@@ -74,6 +67,7 @@ window.演出 =
7467 if 額外信息[0 ] == ' load'
7568 this .load 特效()
7669 eval (js)
70+
7771 this .放視頻(視頻)
7872 this .換cg (cg)
7973 this .換背景(背景)
@@ -222,10 +216,16 @@ window.演出 =
222216 $ (' #名字' ).html (名字)
223217 $ (' #對話歷史' ).append (名字+ ' <br/>' )
224218 $ (' #對話框' ).attr (' class' ,' 人物--' + 語者)
225- # alert $('#對話框').attr('class')
226219
227220 淡入過期時間: 0 ,
228221 換對話: (text , 名字) ->
222+ if 名字 != ' '
223+ $ (' #名字框' ).fadeIn (200 )
224+ $ (' #話語' ).attr (' class' ,' 對話' )
225+ else
226+ $ (' #名字框' ).fadeOut (200 )
227+ $ (' #話語' ).attr (' class' ,' 旁白' )
228+ text = ' ' + text
229229 淡入字 = 演出.文字淡入(text)
230230 $ (' #話語' ).html (淡入字.內容)
231231 演出.淡入過期時間 = Date .now () + 淡入字.總時間 * 1000
You can’t perform that action at this time.
0 commit comments