Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions resources/i18n/en-US/wiliwili.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@
"window": "Window",
"bottom_bar": "Bottom bar",
"ui_style": "UI style",
"tv_osd": "TV style OSD control"
"tv_osd": "TV style OSD control",
"live_sidebar_count": "Live Sidebar Danmaku Count",
"live_sidebar_hide": "Hide Sidebar"
},
"others": {
"header": "Others",
Expand Down Expand Up @@ -439,7 +441,11 @@
"color": "Color",
"advanced": "Advanced",
"level": "Filter level",
"level_n": "Level {}"
"level_n": "Level {}",
"level_live": "Danmaku filter level",
"level_live_none": "No filter (UL0+)",
"level_live_n": "UL{} and above",
"level_live_60": "UL60 only"
},
"style": {
"header": "Danmaku style",
Expand Down
10 changes: 8 additions & 2 deletions resources/i18n/zh-Hans/wiliwili.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@
"window": "窗口",
"bottom_bar": "底部提示栏",
"ui_style": "界面风格",
"tv_osd": "电视风格播放器"
"tv_osd": "电视风格播放器",
"live_sidebar_count": "直播间侧边栏弹幕数量",
"live_sidebar_hide": "隐藏侧边栏"
},
"others": {
"header": "其他设置",
Expand Down Expand Up @@ -439,7 +441,11 @@
"color": "彩色弹幕",
"advanced": "高级弹幕",
"level": "过滤等级",
"level_n": "{}级"
"level_n": "{}级",
"level_live": "直播过滤等级",
"level_live_none": "不过滤 (UL0+)",
"level_live_n": "UL{}以上",
"level_live_60": "仅UL60"
Comment thread
4fuu marked this conversation as resolved.
},
"style": {
"header": "弹幕样式",
Expand Down
10 changes: 8 additions & 2 deletions resources/i18n/zh-Hant/wiliwili.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@
"window": "視窗",
"bottom_bar": "底部提示欄",
"ui_style": "介面風格",
"tv_osd": "電視風格播放器"
"tv_osd": "電視風格播放器",
"live_sidebar_count": "直播間側邊欄彈幕數量",
"live_sidebar_hide": "隱藏側邊欄"
},
"others": {
"header": "其他設定",
Expand Down Expand Up @@ -439,7 +441,11 @@
"color": "彩色",
"advanced": "高級",
"level": "按等級篩選",
"level_n": "等級 {}"
"level_n": "等級 {}",
"level_live": "直播過濾等級",
"level_live_none": "不過濾 (UL0+)",
"level_live_n": "UL{}以上",
"level_live_60": "僅UL60"
},
"style": {
"header": "彈幕風格",
Expand Down
114 changes: 114 additions & 0 deletions resources/xml/activity/live_player_activity.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
<brls:AppletFrame
id="video/detail/frame"
iconInterpolation="linear"
headerHidden="true"
footerHidden="false">
<brls:Box
width="auto"
height="auto"
grow="1.0"
axis="row">

<!--页面左侧-->
<brls:Box
id="live_detail_left_box"
margin="10"
width="@style/wiliwili/player/width"
height="auto"
wireframe="false"
axis="column">

<VideoView
id="video"
focusable="true"
focusDown="live_title_box"
focusRight="live_danmaku_sidebar"
grow="1"
width="@style/wiliwili/player/width"
height="auto"/>

<!-- 直播标题 -->
<brls:Box
id="live_title_box"
wireframe="false"
marginTop="10"
alignItems="center"
focusable="true"
focusUp="video"
focusDown="live_author"
height="40"
width="100%">
<brls:Label
id="live/title"
wireframe="false"
fontSize="24"
marginLeft="10"
singleLine="true"/>
</brls:Box>

<!--直播UP主相关信息-->
<brls:Box
id="live_detail_info_box"
wireframe="false"
width="100%"
height="auto">
<brls:Box
wireframe="false"
width="100%"
height="100%"
maxHeight="100"
alignItems="flexStart"
axis="column"
justifyContent="center">
<UserInfoView
focusable="true"
wireframe="false"
marginLeft="10"
id="live_author"
focusUp="live_title_box"
focusRight="live_danmaku_sidebar"
visibility="visible"
width="100%"
height="80%"/>
<!-- 主播称号标签 -->
<brls:Label
id="anchor/title"
fontSize="15"
marginLeft="10"
marginTop="5"
textColor="#FFB30F"
visibility="visible"/>
</brls:Box>
</brls:Box>
</brls:Box>

<!--右侧弹幕侧边栏-->
<brls:Box
id="live_danmaku_sidebar"
width="240"
height="auto"
axis="column"
marginRight="10"
grow="1">

<brls:Header
title="实时互动"
paddingTop="15"/>

<brls:ScrollingFrame
id="live_danmaku_list"
width="100%"
height="auto"
grow="1">
<brls:Box
id="live_danmaku_container"
width="100%"
height="auto"
paddingRight="5"
axis="column">
<!-- 弹幕内容将动态添加到这里 -->
</brls:Box>
</brls:ScrollingFrame>
</brls:Box>
</brls:Box>
</brls:AppletFrame>
3 changes: 3 additions & 0 deletions resources/xml/activity/setting_activity.xml
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,9 @@
<brls:BooleanCell
id="cell/gamepadVibration"/>

<SelectorCell
id="setting/live/sidebar_count"/>

<brls:BooleanCell
id="setting/opencc"/>

Expand Down
3 changes: 3 additions & 0 deletions resources/xml/fragment/player_danmaku_setting.xml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@
<SelectorCell
id="player/danmaku/filter/level"/>

<SelectorCell
id="player/danmaku/filter/level_live"/>

<brls:BooleanCell
id="player/danmaku/filter/mask"/>

Expand Down
147 changes: 147 additions & 0 deletions resources/xml/views/live_danmaku_item.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
<brls:Box
width="auto"
height="auto"
marginTop="5"
marginBottom="5"
marginLeft="5"
marginRight="5"
cornerRadius="8"
padding="8">

<brls:Box
width="100%"
height="auto"
axis="column">

<!-- 用户名和等级信息 -->
<brls:Box
width="100%"
height="auto"
alignItems="center">

<!-- SC用户头像 -->
<brls:Image
id="danmaku_avatar"
width="24"
height="24"
scalingType="fit"
cornerRadius="100"
marginRight="4"
visibility="gone"
image="@res/pictures/default_avatar.png"/>

<brls:Box
id="danmaku_user_level"
width="auto"
height="18"
backgroundColor="#FF6699"
cornerRadius="4"
alignItems="center"
justifyContent="center"
paddingLeft="4"
paddingRight="4">
<brls:Label
id="danmaku_level_text"
fontSize="10"
textColor="#FFFFFF"
text="UL1"/>
</brls:Box>

<!-- 粉丝牌子 -->
<brls:Box
id="danmaku_fan_medal"
width="auto"
height="18"
backgroundColor="#888888"
cornerRadius="4"
alignItems="center"
justifyContent="center"
paddingLeft="4"
paddingRight="4"
marginLeft="4"
visibility="gone">
<brls:Label
id="danmaku_fan_medal_text"
fontSize="10"
textColor="#FFFFFF"
text="牌子1"/>
</brls:Box>

<!-- 房管标识 -->
<brls:Box
id="danmaku_admin"
width="auto"
height="18"
backgroundColor="#FF9900"
cornerRadius="4"
alignItems="center"
justifyContent="center"
paddingLeft="4"
paddingRight="4"
marginLeft="4"
visibility="gone">
<brls:Label
id="danmaku_admin_text"
fontSize="10"
textColor="#FFFFFF"
text="房管"/>
</brls:Box>

<!-- VIP标识 -->
<brls:Box
id="danmaku_vip"
width="auto"
height="18"
backgroundColor="#E22882"
cornerRadius="4"
alignItems="center"
justifyContent="center"
paddingLeft="4"
paddingRight="4"
marginLeft="4"
visibility="gone">
<brls:Label
id="danmaku_vip_text"
fontSize="10"
textColor="#FFFFFF"
text="舰长"/>
</brls:Box>

<!-- SC金额标签 -->
<brls:Box
id="danmaku_sc_price"
width="auto"
height="18"
backgroundColor="#FF9900"
cornerRadius="4"
alignItems="center"
justifyContent="center"
paddingLeft="6"
paddingRight="6"
marginLeft="4"
visibility="gone">
<brls:Label
id="danmaku_sc_price_text"
fontSize="12"
textColor="#FFFFFF"
text="¥30"/>
</brls:Box>

<brls:Label
id="danmaku_username"
marginLeft="6"
fontSize="12"
text="用户名"
singleLine="true"/>
</brls:Box>

<!-- 弹幕内容单独放在一行 -->
<brls:Label
id="danmaku_content"
width="100%"
marginTop="4"
fontSize="14"
text="这是一条弹幕内容"
singleLine="false"/>
</brls:Box>
</brls:Box>
Loading