mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 09:27:29 +08:00
Fix requested changes
This commit is contained in:
parent
ebe386c288
commit
ed94d7fce8
@ -35,24 +35,14 @@ namespace osu.Game.Localisation
|
||||
public static LocalisableString RestartTrack => new TranslatableString(getKey(@"restart_track"), @"Restart track");
|
||||
|
||||
/// <summary>
|
||||
/// "Beatmap Editor"
|
||||
/// </summary>r
|
||||
public static LocalisableString BeatmapEditor => new TranslatableString(getKey(@"beatmap_editor"), @"Beatmap Editor");
|
||||
/// "Beatmap saved"
|
||||
/// </summary>
|
||||
public static LocalisableString BeatmapSaved => new TranslatableString(getKey(@"beatmap_saved"), @"Beatmap saved");
|
||||
|
||||
/// <summary>
|
||||
/// "Beatmap Saved"
|
||||
/// "Skin saved"
|
||||
/// </summary>
|
||||
public static LocalisableString EditorSaveBeatmap => new TranslatableString(getKey(@"beatmap_editor_save"), @"Beatmap Saved");
|
||||
|
||||
/// <summary>
|
||||
/// "Skin Editor"
|
||||
/// </summary>
|
||||
public static LocalisableString SkinEditor => new TranslatableString(getKey(@"skin_editor"), @"Skin Editor");
|
||||
|
||||
/// <summary>
|
||||
/// "Skin Saved"
|
||||
/// </summary>
|
||||
public static LocalisableString EditorSaveSkin => new TranslatableString(getKey(@"skin_editor_save"), @"Skin Saved");
|
||||
public static LocalisableString SkinSaved => new TranslatableString(getKey(@"skin_saved"), @"Skin saved");
|
||||
|
||||
private static string getKey(string key) => $@"{prefix}:{key}";
|
||||
}
|
||||
|
@ -411,7 +411,7 @@ namespace osu.Game.Screens.Edit
|
||||
// no longer new after first user-triggered save.
|
||||
isNewBeatmap = false;
|
||||
updateLastSavedHash();
|
||||
onScreenDisplay?.Display(new BeatmapEditorToast(ToastStrings.EditorSaveBeatmap, editorBeatmap.BeatmapInfo.GetDisplayTitle()));
|
||||
onScreenDisplay?.Display(new BeatmapEditorToast(ToastStrings.BeatmapSaved, editorBeatmap.BeatmapInfo.GetDisplayTitle()));
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -945,7 +945,7 @@ namespace osu.Game.Screens.Edit
|
||||
private class BeatmapEditorToast : Toast
|
||||
{
|
||||
public BeatmapEditorToast(LocalisableString value, string beatmapDisplayName)
|
||||
: base(ToastStrings.BeatmapEditor, value, beatmapDisplayName) { }
|
||||
: base(InputSettingsStrings.EditorSection, value, beatmapDisplayName) { }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -322,7 +322,7 @@ namespace osu.Game.Skinning.Editor
|
||||
currentSkin.Value.UpdateDrawableTarget(t);
|
||||
|
||||
skins.Save(skins.CurrentSkin.Value);
|
||||
onScreenDisplay?.Display(new SkinEditorToast(ToastStrings.EditorSaveSkin, currentSkin.Value.SkinInfo.ToString()));
|
||||
onScreenDisplay?.Display(new SkinEditorToast(ToastStrings.SkinSaved, currentSkin.Value.SkinInfo.ToString()));
|
||||
}
|
||||
|
||||
protected override bool OnHover(HoverEvent e) => true;
|
||||
@ -406,7 +406,7 @@ namespace osu.Game.Skinning.Editor
|
||||
private class SkinEditorToast : Toast
|
||||
{
|
||||
public SkinEditorToast(LocalisableString value, string skinDisplayName)
|
||||
: base(ToastStrings.SkinEditor, value, skinDisplayName) { }
|
||||
: base(SkinSettingsStrings.SkinLayoutEditor, value, skinDisplayName) { }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user