Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/osuPublic

Commit78f639d

Browse files
committed
Attempt to clean up chat size definition
1 parent4ea03d0 commit78f639d

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

‎osu.Game/Screens/OnlinePlay/Matchmaking/Match/ScreenMatchmaking.cs‎

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ public partial class ScreenMatchmaking : OsuScreen, IPreviewTrackOwner, IHandleP
4949
/// </summary>
5050
privateconstfloatrow_padding=10;
5151

52+
privatestaticreadonlyVector2chat_size=newVector2(550,130);
53+
5254
publicoverridebool?ApplyModTrackAdjustments=>true;
5355

5456
publicoverrideboolDisallowExternalBeatmapRulesetChanges=>true;
@@ -106,8 +108,12 @@ public ScreenMatchmaking(MultiplayerRoom room)
106108
{
107109
Anchor=Anchor.BottomRight,
108110
Origin=Anchor.BottomRight,
109-
Size=newVector2(700,130),
110-
Margin=newMarginPadding{Bottom=10,Right=WaveOverlayContainer.WIDTH_PADDING-HORIZONTAL_OVERFLOW_PADDING},
111+
Size=chat_size,
112+
Margin=newMarginPadding
113+
{
114+
Right=WaveOverlayContainer.WIDTH_PADDING-HORIZONTAL_OVERFLOW_PADDING,
115+
Bottom=row_padding
116+
},
111117
Alpha=0
112118
};
113119
}
@@ -164,9 +170,10 @@ private void load(OverlayColourProvider colourProvider)
164170
[
165171
newContainer
166172
{
173+
Name="Chat Area Space",
167174
Anchor=Anchor.TopRight,
168175
Origin=Anchor.TopRight,
169-
Size=newVector2(600,130),
176+
Size=newVector2(550,130),
170177
Margin=newMarginPadding{Bottom=row_padding}
171178
}
172179
]
@@ -470,7 +477,7 @@ public ChatContainer(MatchmakingChatDisplay chat)
470477

471478
// This component is added to the screen footer which is only about 50px high.
472479
// Therefore, it's given a large absolute size to give the context menu enough space to display correctly.
473-
Size=newVector2(600);
480+
Size=newVector2(chat_size.X);
474481

475482
InternalChild=newOsuContextMenuContainer
476483
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp