mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 09:03:22 +08:00
Fix unnecessary texture atlas generation
This commit is contained in:
parent
fcab21908b
commit
6ea1ed8d04
@ -140,7 +140,7 @@ namespace osu.Game.Tournament.Components
|
|||||||
if (!string.IsNullOrEmpty(mods))
|
if (!string.IsNullOrEmpty(mods))
|
||||||
AddInternal(new Sprite
|
AddInternal(new Sprite
|
||||||
{
|
{
|
||||||
Texture = new TextureStore(new TextureLoaderStore(new StorageBackedResourceStore(storage))).Get($"mods/{mods}"),
|
Texture = new LargeTextureStore(new TextureLoaderStore(new StorageBackedResourceStore(storage))).Get($"mods/{mods}"),
|
||||||
Anchor = Anchor.CentreRight,
|
Anchor = Anchor.CentreRight,
|
||||||
Origin = Anchor.CentreRight,
|
Origin = Anchor.CentreRight,
|
||||||
Margin = new MarginPadding(20),
|
Margin = new MarginPadding(20),
|
||||||
|
@ -6,7 +6,6 @@ using osu.Framework.Configuration;
|
|||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
using osu.Framework.Graphics.Containers;
|
using osu.Framework.Graphics.Containers;
|
||||||
using osu.Framework.Graphics.Shapes;
|
using osu.Framework.Graphics.Shapes;
|
||||||
using osu.Framework.Graphics.Textures;
|
|
||||||
using osu.Framework.Input.Events;
|
using osu.Framework.Input.Events;
|
||||||
using osu.Game.Graphics.Sprites;
|
using osu.Game.Graphics.Sprites;
|
||||||
using osu.Game.Graphics.UserInterface;
|
using osu.Game.Graphics.UserInterface;
|
||||||
@ -22,7 +21,7 @@ namespace osu.Game.Tournament.Screens.Gameplay.Components
|
|||||||
public class MatchHeader : Container
|
public class MatchHeader : Container
|
||||||
{
|
{
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(LadderInfo ladder, TextureStore textures)
|
private void load(LadderInfo ladder)
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.X;
|
RelativeSizeAxes = Axes.X;
|
||||||
Height = 95;
|
Height = 95;
|
||||||
|
@ -6,7 +6,6 @@ using osu.Framework.Configuration;
|
|||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
using osu.Framework.Graphics.Containers;
|
using osu.Framework.Graphics.Containers;
|
||||||
using osu.Framework.Graphics.Shapes;
|
using osu.Framework.Graphics.Shapes;
|
||||||
using osu.Framework.Graphics.Textures;
|
|
||||||
using osu.Framework.Threading;
|
using osu.Framework.Threading;
|
||||||
using osu.Game.Graphics.UserInterface;
|
using osu.Game.Graphics.UserInterface;
|
||||||
using osu.Game.Tournament.Components;
|
using osu.Game.Tournament.Components;
|
||||||
@ -37,7 +36,7 @@ namespace osu.Game.Tournament.Screens.Gameplay
|
|||||||
private TournamentSceneManager sceneManager { get; set; }
|
private TournamentSceneManager sceneManager { get; set; }
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(LadderInfo ladder, TextureStore textures, MatchIPCInfo ipc, MatchChatDisplay chat)
|
private void load(LadderInfo ladder, MatchIPCInfo ipc, MatchChatDisplay chat)
|
||||||
{
|
{
|
||||||
this.chat = chat;
|
this.chat = chat;
|
||||||
this.ipc = ipc;
|
this.ipc = ipc;
|
||||||
|
@ -18,6 +18,7 @@ namespace osu.Game.Tournament.Screens.Ladder.Components
|
|||||||
public class DrawableMatchPairing : CompositeDrawable
|
public class DrawableMatchPairing : CompositeDrawable
|
||||||
{
|
{
|
||||||
public readonly MatchPairing Pairing;
|
public readonly MatchPairing Pairing;
|
||||||
|
private readonly bool editor;
|
||||||
protected readonly FillFlowContainer<DrawableMatchTeam> Flow;
|
protected readonly FillFlowContainer<DrawableMatchTeam> Flow;
|
||||||
private readonly Drawable selectionBox;
|
private readonly Drawable selectionBox;
|
||||||
private readonly Drawable currentMatchSelectionBox;
|
private readonly Drawable currentMatchSelectionBox;
|
||||||
@ -26,9 +27,14 @@ namespace osu.Game.Tournament.Screens.Ladder.Components
|
|||||||
[Resolved(CanBeNull = true)]
|
[Resolved(CanBeNull = true)]
|
||||||
private LadderEditorInfo editorInfo { get; set; }
|
private LadderEditorInfo editorInfo { get; set; }
|
||||||
|
|
||||||
public DrawableMatchPairing(MatchPairing pairing)
|
[Resolved(CanBeNull = true)]
|
||||||
|
private LadderInfo ladderInfo { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
public DrawableMatchPairing(MatchPairing pairing, bool editor = false)
|
||||||
{
|
{
|
||||||
Pairing = pairing;
|
Pairing = pairing;
|
||||||
|
this.editor = editor;
|
||||||
|
|
||||||
AutoSizeAxes = Axes.Both;
|
AutoSizeAxes = Axes.Both;
|
||||||
|
|
||||||
@ -109,7 +115,10 @@ namespace osu.Game.Tournament.Screens.Ladder.Components
|
|||||||
if (selected)
|
if (selected)
|
||||||
{
|
{
|
||||||
selectionBox.Show();
|
selectionBox.Show();
|
||||||
editorInfo.Selected.Value = Pairing;
|
if (editor)
|
||||||
|
editorInfo.Selected.Value = Pairing;
|
||||||
|
else
|
||||||
|
ladderInfo.CurrentMatch.Value = Pairing;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
selectionBox.Hide();
|
selectionBox.Hide();
|
||||||
|
@ -2,14 +2,13 @@
|
|||||||
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||||
|
|
||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
using osu.Framework.Graphics.Textures;
|
|
||||||
|
|
||||||
namespace osu.Game.Tournament.Screens.Showcase
|
namespace osu.Game.Tournament.Screens.Showcase
|
||||||
{
|
{
|
||||||
public class ShowcaseScreen : BeatmapInfoScreen
|
public class ShowcaseScreen : BeatmapInfoScreen
|
||||||
{
|
{
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(TextureStore textures)
|
private void load()
|
||||||
{
|
{
|
||||||
AddInternal(new TournamentLogo());
|
AddInternal(new TournamentLogo());
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,6 @@ using osu.Framework.Allocation;
|
|||||||
using osu.Framework.Configuration;
|
using osu.Framework.Configuration;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
using osu.Framework.Graphics.Containers;
|
using osu.Framework.Graphics.Containers;
|
||||||
using osu.Framework.Graphics.Textures;
|
|
||||||
using osu.Framework.Graphics.Video;
|
using osu.Framework.Graphics.Video;
|
||||||
using osu.Framework.Platform;
|
using osu.Framework.Platform;
|
||||||
using osu.Game.Graphics;
|
using osu.Game.Graphics;
|
||||||
@ -25,7 +24,7 @@ namespace osu.Game.Tournament.Screens.TeamIntro
|
|||||||
private readonly Bindable<MatchPairing> currentMatch = new Bindable<MatchPairing>();
|
private readonly Bindable<MatchPairing> currentMatch = new Bindable<MatchPairing>();
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(TextureStore textures, LadderInfo ladder, Storage storage)
|
private void load(LadderInfo ladder, Storage storage)
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both;
|
RelativeSizeAxes = Axes.Both;
|
||||||
|
|
||||||
|
@ -5,7 +5,6 @@ using osu.Framework.Allocation;
|
|||||||
using osu.Framework.Configuration;
|
using osu.Framework.Configuration;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
using osu.Framework.Graphics.Containers;
|
using osu.Framework.Graphics.Containers;
|
||||||
using osu.Framework.Graphics.Textures;
|
|
||||||
using osu.Framework.Graphics.Video;
|
using osu.Framework.Graphics.Video;
|
||||||
using osu.Framework.Platform;
|
using osu.Framework.Platform;
|
||||||
using osu.Game.Graphics;
|
using osu.Game.Graphics;
|
||||||
@ -29,7 +28,7 @@ namespace osu.Game.Tournament.Screens.TeamWin
|
|||||||
private VideoSprite redWinVideo;
|
private VideoSprite redWinVideo;
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(TextureStore textures, LadderInfo ladder, Storage storage)
|
private void load(LadderInfo ladder, Storage storage)
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both;
|
RelativeSizeAxes = Axes.Both;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user