Skip to content
This repository has been archived by the owner on Jun 11, 2023. It is now read-only.

Commit

Permalink
详见Changelog.md
Browse files Browse the repository at this point in the history
  • Loading branch information
MATRIX-feather committed Jan 29, 2020
1 parent e323e64 commit 095e1cc
Show file tree
Hide file tree
Showing 28 changed files with 451 additions and 199 deletions.
27 changes: 22 additions & 5 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
* [M] [#7479 - 在排行榜实现按国家分类(Implement CountryFilter component for RankingsOverlay)](https://github.com/ppy/osu/pull/7479)


# 2020.125.0
# 2020.125.1
## 2020/1/20:
* 添加了游戏Mods的翻译
* [将游戏Mods按钮文本字体变大](osu.Game/Overlays/Mods/ModButton.cs)
Expand Down Expand Up @@ -149,8 +149,8 @@

* **暂时移除了自动下载更新的功能**

## 2020.???.0
### 2020/1/27
# 2020.125.2
## 2020/1/27
* 整合更新
* [M] [#7614 - Fix NullReferenceException on main menu for mobile game hosts](https://github.com/ppy/osu/pull/7614)
* [M] [#7618 - Move reverse-order comparer to ChannelTabControl](https://github.com/ppy/osu/pull/7618)
Expand All @@ -161,11 +161,28 @@
* [M] [#7630 - Fix changelog header not dimming correctly on initial build display](https://github.com/ppy/osu/pull/7630)
* [M] [#7597 - Implement OverlayColourProvider component](https://github.com/ppy/osu/pull/7597)
* [M] [#7631 - Bump DiscordRichPresence from 1.0.121 to 1.0.147](https://github.com/ppy/osu/pull/7631)
### 2020/1/29
## 2020/1/29
* 添加翻译
* 编辑器(**仍需后续完善**)
* 添加了编辑器内物件右键菜单的翻译
* (滑条)[osu.Game.Rulesets.Osu/Edit/Blueprints/Sliders/ SliderSelectionBlueprint.cs]
* (物件)[osu.Game/Screens/Edit/Compose/Components/SelectionHandler.cs]
* [添加了编辑器内"Playback speed"的翻译](osu.Game/Screens/Edit/Components/ PlaybackControl.cs)
* [添加了Setup Mode和Design Mode界面的翻译]
* [Setup Mode](osu.Game/Screens/Edit/Setup/SetupScreen.cs)
* [Design Mode](osu.Game/Screens/Edit/Setup/DesignScreen.cs)
* [ControlPointTable.cs:time和attributes补全](osu.Game/Screens/Edit/Timing/ControlPointTable.cs)
* [effectSection](osu.Game/Screens/Edit/Timing/EffectSection.cs)

* 整合更新
* [m] [#7623 - Fix crash due to misordered selection events](https://github.com/ppy/osu/pull/7623)
* [m] [#7432 - Implement ability to create OverlayHeader with no TabControl](https://github.com/ppy/osu/pull/7432)
* [M] [#7638 - Use type switch in SerializationWriter](https://github.com/ppy/osu/pull/7638)
* [m] [#7637 - Refactor background creation in OverlayHeader](https://github.com/ppy/osu/pull/7637)
* [m] [#7650 - Change default method style for better IDE autocompletion](https://github.com/ppy/osu/pull/7650)
* [m] [#7636 - Make CommentsContainer use OverlayColourProvider](https://github.com/ppy/osu/pull/7636)
* [m] [#7636 - Make CommentsContainer use OverlayColourProvider](https://github.com/ppy/osu/pull/7636)
* [m] [#7645 - Allow OsuSliderBar tooltip to show as percentage as needed](https://github.com/ppy/osu/pull/7645)
* [m] [#7659 - Fix random PlaySongSelect test failures](https://github.com/ppy/osu/pull/7659)
* [m] [#7653 - Fix navigation test crashing when raw input is disabled](https://github.com/ppy/osu/pull/7653)
* [m] [#7652 - Fix key count being incorrectly adjusted by hard/easy mods](https://github.com/ppy/osu/pull/7652)
* [m] [#7634 - Add beat ticks to editor timeline](https://github.com/ppy/osu/pull/7634)
2 changes: 1 addition & 1 deletion osu.Desktop/Overlays/VersionManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ private void load(OsuColour colours, TextureStore textures, OsuGameBase game)
Origin = Anchor.TopCentre,
Font = OsuFont.Numeric.With(size: 16),//翻译时修改
Colour = colours.Yellow,
Text = @"2020.125.0+matrixfeather 1"
Text = @"2020.125.0+matrixfeather 2"
},
new Sprite
{
Expand Down
4 changes: 2 additions & 2 deletions osu.Desktop/osu.Desktop.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
<Product>osu!lazer</Product>
<ApplicationIcon>lazer.ico</ApplicationIcon>
<ApplicationManifest>app.manifest</ApplicationManifest>
<Version>0.0.0</Version>
<!--<Version>2020.125.1</Version>-->
<!--<Version>0.0.0</Version>-->
<Version>2020.125.2</Version>
<FileVersion>0.0.0</FileVersion>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ private void updatePath()

public override MenuItem[] ContextMenuItems => new MenuItem[]
{
new OsuMenuItem("Add control point", MenuItemType.Standard, () => addControlPoint(rightClickPosition)),
new OsuMenuItem("添加滑条路径", MenuItemType.Standard, () => addControlPoint(rightClickPosition)),
};

public override Vector2 SelectionPoint => ((DrawableSlider)DrawableObject).HeadCircle.ScreenSpaceDrawQuad.Centre;
Expand Down
135 changes: 2 additions & 133 deletions osu.Game.Tests/Visual/Editor/TestSceneTimelineBlueprintContainer.cs
Original file line number Diff line number Diff line change
@@ -1,146 +1,15 @@
// Copyright (c) ppy Pty Ltd <[email protected]>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.

using System;
using System.Collections.Generic;
using NUnit.Framework;
using osu.Framework.Allocation;
using osu.Framework.Audio;
using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes;
using osu.Framework.Timing;
using osu.Game.Beatmaps;
using osu.Game.Graphics.UserInterface;
using osu.Game.Rulesets.Edit;
using osu.Game.Rulesets.Objects;
using osu.Game.Screens.Edit;
using osu.Game.Screens.Edit.Compose.Components.Timeline;
using osuTK;
using osuTK.Graphics;

namespace osu.Game.Tests.Visual.Editor
{
[TestFixture]
public class TestSceneTimelineBlueprintContainer : EditorClockTestScene
public class TestSceneTimelineBlueprintContainer : TimelineTestScene
{
public override IReadOnlyList<Type> RequiredTypes => new[]
{
typeof(TimelineArea),
typeof(Timeline),
typeof(TimelineButton),
typeof(CentreMarker)
};

[BackgroundDependencyLoader]
private void load(AudioManager audio)
{
Beatmap.Value = new WaveformTestBeatmap(audio);

var editorBeatmap = new EditorBeatmap((Beatmap<HitObject>)Beatmap.Value.Beatmap, BeatDivisor);

Dependencies.Cache(editorBeatmap);
Dependencies.CacheAs<IBeatSnapProvider>(editorBeatmap);

Children = new Drawable[]
{
new FillFlowContainer
{
AutoSizeAxes = Axes.Both,
Direction = FillDirection.Vertical,
Spacing = new Vector2(0, 5),
Children = new Drawable[]
{
new StartStopButton(),
new AudioVisualiser(),
}
},
new TimelineArea
{
Child = new TimelineBlueprintContainer(),
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
RelativeSizeAxes = Axes.X,
Size = new Vector2(0.8f, 100)
}
};
}

private class AudioVisualiser : CompositeDrawable
{
private readonly Drawable marker;

[Resolved]
private IBindable<WorkingBeatmap> beatmap { get; set; }

[Resolved]
private IAdjustableClock adjustableClock { get; set; }

public AudioVisualiser()
{
Size = new Vector2(250, 25);

InternalChildren = new[]
{
new Box
{
RelativeSizeAxes = Axes.Both,
Alpha = 0.25f,
},
marker = new Box
{
RelativePositionAxes = Axes.X,
RelativeSizeAxes = Axes.Y,
Width = 2,
}
};
}

protected override void Update()
{
base.Update();

if (beatmap.Value.Track.IsLoaded)
marker.X = (float)(adjustableClock.CurrentTime / beatmap.Value.Track.Length);
}
}

private class StartStopButton : OsuButton
{
private IAdjustableClock adjustableClock;
private bool started;

public StartStopButton()
{
BackgroundColour = Color4.SlateGray;
Size = new Vector2(100, 50);
Text = "Start";

Action = onClick;
}

[BackgroundDependencyLoader]
private void load(IAdjustableClock adjustableClock)
{
this.adjustableClock = adjustableClock;
}

private void onClick()
{
if (started)
{
adjustableClock.Stop();
Text = "Start";
}
else
{
adjustableClock.Start();
Text = "Stop";
}

started = !started;
}
}
public override Drawable CreateTestComponent() => new TimelineBlueprintContainer();
}
}
32 changes: 32 additions & 0 deletions osu.Game.Tests/Visual/Editor/TestSceneTimelineTickDisplay.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// Copyright (c) ppy Pty Ltd <[email protected]>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.

using NUnit.Framework;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Game.Screens.Edit.Compose.Components;
using osu.Game.Screens.Edit.Compose.Components.Timeline;
using osuTK;

namespace osu.Game.Tests.Visual.Editor
{
[TestFixture]
public class TestSceneTimelineTickDisplay : TimelineTestScene
{
public override Drawable CreateTestComponent() => new TimelineTickDisplay();

[BackgroundDependencyLoader]
private void load()
{
BeatDivisor.Value = 4;

Add(new BeatDivisorControl(BeatDivisor)
{
Anchor = Anchor.TopRight,
Origin = Anchor.TopRight,
Margin = new MarginPadding(30),
Size = new Vector2(90)
});
}
}
}
Loading

0 comments on commit 095e1cc

Please sign in to comment.