Skip to content

Commit 85b7649

Browse files
committed
Initial commit
0 parents  commit 85b7649

27 files changed

+818
-0
lines changed

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2023 DGCK81LNN
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
![](images/top.png)
2+
3+
# LNN 的 osu! 歌曲信息和 pp 显示<br>LNN’s osu! song info and pp display
4+
5+
适用于 [osu!StreamCompanion]*web overlay*,修改自 osu!StreamCompanion 自带的示例 [SC_Map Example],可用于 OBS 浏览器源<br>
6+
A *web overlay* for [osu!StreamCompanion], modified from osu!StreamCompanion’s built-in [SC_Map Example], can be used as OBS browser source
7+
8+
[osu!StreamCompanion]: https://github.com/Piotrekol/StreamCompanion
9+
[SC_Map Example]: https://github.com/Piotrekol/StreamCompanion-overlays/tree/701a486ecf44e8f367ea2e848ba2fe92aad92d09/overlays/SC_Map%20Example
10+
11+
## 安装<br>Installing
12+
13+
使用前需要安装并启动 [osu!StreamCompanion],将本仓库置于其安装目录内的 `Files/Web/overlays` 文件夹中,然后点击 osu!StreamCompanion 的 ![[两个小圆圈]][wo] 按钮,在打开的页面中即可找到本布局。<br>
14+
To use, install and launch [osu!StreamCompanion], place this repository inside the `Files/Web/overlays` folder in its install directory, and then click on the ![[two small circles]][wo] button in osu!StreamCompanion. You can then find this layout in the page that opens.
15+
16+
[wo]: images/_weboverlaybtn.png "Web overlays"
17+
18+
## 功能<br>Features
19+
20+
听音乐时除了歌名、曲师、谱师、难度,右侧还会显示**实时 BPM****最高连击数****无 mod 最高 pp**<br>
21+
When listening, shows song title, artist, mapper, difficulty, along with **real-time BPM**, **max combo**, and **max pp without mods** on the right
22+
23+
![](images/listen.png)
24+
25+
游玩、观看回放和在结算界面时,会在左侧显示**判定统计**,右侧还会增加**当前最大连击数****实时 pp**(斜杠前的数字)和**实时评级**<br>
26+
When playing, watching a replay or on a result screen, shows **statistics** on the left, and adds **current max combo**, **real-time pp** (the numbers before the slashes) and **real-time grade** on the right
27+
28+
![](images/play.png)
29+
30+
只要能确定当前 sliderbreak 数量,且不为 0,就会在左侧显示具体数量,尽管有些情况\*下无法确定<br>
31+
Whenever the current number of sliderbreaks can be determined AND is not zero, shows the count on the left. In some situations\* it can't be determined, though
32+
33+
*&#32;查看过往成绩的结算界面而未播放回放时<br>
34+
*&#32;i.e. checking the result screen of a past play without watching replay
35+
36+
另外,歌名、曲师名含有非英文字符时,每隔几秒会自动在转写与原文之间切换<br>
37+
In addition, when song title and/or artist name contains non-English characters, switches automatically between transliteration and original text every few seconds
38+
39+
![](images/roman.webp)
40+
41+
如果有 mods 开启则无论是否在游玩都会显示<br>
42+
If mods are enabled they will be shown whether you're playing or not
43+
44+
![](images/mods.png)
45+
46+
支持四种游戏模式<br>
47+
Supports all four game modes
48+
49+
* taiko<br>
50+
![](images/taiko.png)
51+
* catch<br>
52+
![](images/ctb.png)
53+
* mania<br>
54+
![](images/mania.png)
55+
56+
*&#32;mania 模式不显示最大连击数,因为不知道<br>
57+
*&#32;map max combo is not shown for mania because program doesn't know
58+
59+
### 音乐播放器模式<br>Music player mode
60+
61+
在此模式下,只显示歌名和曲师,且您可以自由调整窗口宽度。<br>
62+
In this mode, only song title and artist are displayed, and you can adjust the viewport width freely.
63+
64+
![](images/musiconly.png)
65+
66+
要进入此模式,只需在 URL 后加上 `#musiconly`,如 `http://localhost:20727/overlays/lnn_osu_overlay/#musiconly`<br>
67+
To enter this mode, simply add `#musiconly` to the end of the page URL, for example `http://localhost:20727/overlays/lnn_osu_overlay/#musiconly`
68+
69+
## 注意事项<br>Note
70+
71+
* 虽然本布局的样式看起来很像 osu!(lazer),但是截至本仓库发布时,osu!StreamCompanion 只适用于 osu! stable 版。<br>
72+
Although this layout has a very osu!(lazer)-ish style, osu!StreamCompanion can only be used with osu! stable by the time this repository is published.
73+
74+
* 本布局的高度为 100 像素,宽度根据窗口大小自动调节,建议在 1333 像素以上。要调整大小,建议使用自定义 CSS 实现(窗口大小也需要同比例调节),以放大到 1.25 倍为例:<br>
75+
This layout has a height of 100px and a flexible width depending on viewport — I recommend no less than 1333px. To adjust the size, custom CSS is recommended (multilpy the viewport size by the same ratio). Take zooming in to 1.25x for example:
76+
77+
~~~css
78+
:root { zoom: 1.25 }
79+
~~~
80+
81+
此时窗口高度就需要调整到 125 像素,建议宽度在 1333 × 1.25 ≈ 1667 像素以上。如果窗口宽度太窄,右边会显示不全被裁切掉。<br>
82+
Now the viewport height should be adjusted to 125px, and the minimum recommended width will be 1333 × 1.25 ≈ 1667. If the viewport width is far too small, the right side will be clipped.
83+
84+
![](images/tooshort.png)
85+
86+
不过,在音乐播放器模式下您可以适当地调小窗口宽度而不会出现显示不全的情况。建议宽度在 720 像素左右,但没有硬性限制。<br>
87+
In music player mode, however, you can decrease the viewport width without the right side ever being clipped. I recommend around 720px in this case, but there is no hard limit.
88+
89+
## 已知问题<br>Known issues
90+
91+
* CTB 模式下处于结算屏幕时评级总会变成 D<br>
92+
When in results screen in CTB, grade always becomes D
93+
94+
* 标题显示不下的时候只会省略号,暂时不会滚动显示<br>
95+
When title is too long to fit in one line, it is ellipsized for now, instead of scrolled horizontally to show the full line
96+
97+
* mods 开启时,显示的最高 pp 仍然是无 mods 的<br>
98+
When mods are on, max pp is still max pp without mods

assets/README.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Images in this folder are downloaded from the osu! website in July 2023; I do not own these images.

assets/grade-a.svg

Lines changed: 20 additions & 0 deletions
Loading

assets/grade-b.svg

Lines changed: 20 additions & 0 deletions
Loading

assets/grade-c.svg

Lines changed: 20 additions & 0 deletions
Loading

assets/grade-d.svg

Lines changed: 13 additions & 0 deletions
Loading

assets/grade-s.svg

Lines changed: 26 additions & 0 deletions
Loading

assets/grade-sh.svg

Lines changed: 26 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)