Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DIsplay toasts on beatmap/skin save #19243

Merged
merged 6 commits into from
Jul 22, 2022
Merged

Conversation

LukynkaCZE
Copy link
Contributor

This is thing I have been missing in lazer for a long time. When mapping or editing skin I hit the save button/ctrl + s and I get no feedback from the game if it was saved or not. This is also feature in stable that is missing in lazer.

Beatmap.Editor.mp4
Skin.Editor.mp4

.

/// <summary>
/// "Skin Editor"
/// </summary>
public static LocalisableString SkinEditor => new TranslatableString(getKey(@"skin_editor"), @"Skin Editor");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use SkinSettingsStrings.SkinLayoutEditor

/// <summary>
/// "Beatmap Editor"
/// </summary>r
public static LocalisableString BeatmapEditor => new TranslatableString(getKey(@"beatmap_editor"), @"Beatmap Editor");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use EditorSection.EditorSection.

/// <summary>
/// "Beatmap Saved"
/// </summary>
public static LocalisableString EditorSaveBeatmap => new TranslatableString(getKey(@"beatmap_editor_save"), @"Beatmap Saved");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have no idea what's being done here.

Are you manually making these files? We generally use a rider tool to do this.

If you are manually doing it, you will need to pay very close attention to the format. The property name should match the key should match the string.

In this case, the string should be Beatmap saved (not title case) and the key should be BeatmapSaved / beatmap_saved to match.

Same applies to others.

@frenzibyte frenzibyte changed the title Save toasts for Beatmap & Skin Editor DIsplay toasts on beatmap/skin save Jul 21, 2022
@LukynkaCZE
Copy link
Contributor Author

I did all the requested changes 👍🏻 Also I wasn't aware there was tool to do the Localization stuff.. Well now I know and I'm gonna be using it from now on

peppy
peppy previously approved these changes Jul 22, 2022
@peppy peppy enabled auto-merge July 22, 2022 04:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants