mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 15:16:38 +09:00
Switch to System.ComponentModel.Description
This commit is contained in:
@ -1,15 +0,0 @@
|
||||
using System;
|
||||
namespace osu.Game.Configuration
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
|
||||
public class DisplayNameAttribute : Attribute
|
||||
{
|
||||
public string Name { get; set; }
|
||||
|
||||
public DisplayNameAttribute(string name)
|
||||
{
|
||||
Name = name;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,10 +0,0 @@
|
||||
using System;
|
||||
namespace osu.Game.Configuration
|
||||
{
|
||||
public class HiddenAttribute
|
||||
{
|
||||
public HiddenAttribute()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace osu.Game.Configuration
|
||||
{
|
||||
@ -6,9 +7,9 @@ namespace osu.Game.Configuration
|
||||
{
|
||||
Off,
|
||||
Pie,
|
||||
[DisplayName("Top Right")]
|
||||
[Description("Top Right")]
|
||||
TopRight,
|
||||
[DisplayName("Bottom Right")]
|
||||
[Description("Bottom Right")]
|
||||
BottomRight,
|
||||
Bottom
|
||||
}
|
||||
|
@ -1,12 +1,14 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace osu.Game.Configuration
|
||||
{
|
||||
public enum RankingType
|
||||
{
|
||||
Local,
|
||||
[DisplayName("Global")]
|
||||
[Description("Global")]
|
||||
Top,
|
||||
[DisplayName("Selected Mods")]
|
||||
[Description("Selected Mods")]
|
||||
SelectedMod,
|
||||
Friends,
|
||||
Country
|
||||
|
@ -1,12 +1,14 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace osu.Game.Configuration
|
||||
{
|
||||
public enum ScreenshotFormat
|
||||
{
|
||||
Bmp = 0, // TODO: Figure out the best way to hide this from the dropdown
|
||||
[DisplayName("JPG (web-friendly)")]
|
||||
[Description("JPG (web-friendly)")]
|
||||
Jpg = 1,
|
||||
[DisplayName("PNG (lossless)")]
|
||||
[Description("PNG (lossless)")]
|
||||
Png = 2
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user