-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #175 from PillTime/master
Add Trustworthy Mod
- Loading branch information
Showing
5 changed files
with
119 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
osu.Game.Rulesets.Hishigata/Localisation/Mods/HishigataModTrustworthyStrings.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using osu.Framework.Localisation; | ||
|
||
namespace osu.Game.Rulesets.Hishigata.Localisation.Mods | ||
{ | ||
public static class HishigataModTrustworthyStrings | ||
{ | ||
private const string prefix = @"osu.Game.Rulesets.Hishigata.Resources.Localisation.Mods.HishigataModTrustworthyStrings"; | ||
|
||
/// <summary> | ||
/// "Notes don't switch sides." | ||
/// </summary> | ||
public static LocalisableString ModDescription => new TranslatableString(getKey(@"mod_description"), @"Notes don't switch sides."); | ||
|
||
private static string getKey(string key) => $"{prefix}:{key}"; | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
osu.Game.Rulesets.Hishigata/Mods/HishigataModTrustworthy.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using osu.Framework.Graphics.Sprites; | ||
using osu.Framework.Localisation; | ||
using osu.Game.Beatmaps; | ||
using osu.Game.Rulesets.Hishigata.Localisation.Mods; | ||
using osu.Game.Rulesets.Hishigata.Beatmaps; | ||
using osu.Game.Rulesets.Mods; | ||
|
||
namespace osu.Game.Rulesets.Hishigata.Mods | ||
{ | ||
public class HishigataModTrustworthy : Mod, IApplicableToBeatmapConverter | ||
{ | ||
public override string Name => "Trustworthy"; | ||
public override string Acronym => "TW"; | ||
public override LocalisableString Description => HishigataModTrustworthyStrings.ModDescription; | ||
public override double ScoreMultiplier => 0.8; | ||
public override ModType Type => ModType.Conversion; | ||
public override IconUsage? Icon => FontAwesome.Solid.Check; | ||
|
||
public void ApplyToBeatmapConverter(IBeatmapConverter beatmapConverter) | ||
{ | ||
var converter = (HishigataBeatmapConverter)beatmapConverter; | ||
converter.FeignsAllowed = false; | ||
} | ||
} | ||
} |
64 changes: 64 additions & 0 deletions
64
osu.Game.Rulesets.Hishigata/Resources/Localisation/Mods/HishigataModTrustworthyStrings.resx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<root> | ||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> | ||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace"/> | ||
<xsd:element name="root" msdata:IsDataSet="true"> | ||
<xsd:complexType> | ||
<xsd:choice maxOccurs="unbounded"> | ||
<xsd:element name="metadata"> | ||
<xsd:complexType> | ||
<xsd:sequence> | ||
<xsd:element name="value" type="xsd:string" minOccurs="0"/> | ||
</xsd:sequence> | ||
<xsd:attribute name="name" use="required" type="xsd:string"/> | ||
<xsd:attribute name="type" type="xsd:string"/> | ||
<xsd:attribute name="mimetype" type="xsd:string"/> | ||
<xsd:attribute ref="xml:space"/> | ||
</xsd:complexType> | ||
</xsd:element> | ||
<xsd:element name="assembly"> | ||
<xsd:complexType> | ||
<xsd:attribute name="alias" type="xsd:string"/> | ||
<xsd:attribute name="name" type="xsd:string"/> | ||
</xsd:complexType> | ||
</xsd:element> | ||
<xsd:element name="data"> | ||
<xsd:complexType> | ||
<xsd:sequence> | ||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1"/> | ||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2"/> | ||
</xsd:sequence> | ||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1"/> | ||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3"/> | ||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4"/> | ||
<xsd:attribute ref="xml:space"/> | ||
</xsd:complexType> | ||
</xsd:element> | ||
<xsd:element name="resheader"> | ||
<xsd:complexType> | ||
<xsd:sequence> | ||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1"/> | ||
</xsd:sequence> | ||
<xsd:attribute name="name" type="xsd:string" use="required"/> | ||
</xsd:complexType> | ||
</xsd:element> | ||
</xsd:choice> | ||
</xsd:complexType> | ||
</xsd:element> | ||
</xsd:schema> | ||
<resheader name="resmimetype"> | ||
<value>text/microsoft-resx</value> | ||
</resheader> | ||
<resheader name="version"> | ||
<value>2.0</value> | ||
</resheader> | ||
<resheader name="reader"> | ||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | ||
</resheader> | ||
<resheader name="writer"> | ||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | ||
</resheader> | ||
<data name="mod_description" xml:space="preserve"> | ||
<value>Notes don't switch sides.</value> | ||
</data> | ||
</root> |