Skip to content

Commit

Permalink
Fix: Examples for bold & italics are not formatted. Closes #58.
Browse files Browse the repository at this point in the history
  • Loading branch information
krafs committed Jan 22, 2022
1 parent 2430467 commit a126da6
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
36 changes: 18 additions & 18 deletions About/About.xml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<ModMetaData>
<name>Level Up!</name>
<author>krafs</author>
<packageId>Krafs.LevelUp</packageId>
<description>Do things when colonists level up.\n\n-Display message\n-Play animation\n-Play sound</description>
<url>https://github.com/krafs/LevelUp</url>
<supportedVersions>
<li>1.1</li>
<li>1.2</li>
<li>1.3</li>
</supportedVersions>
<modDependencies>
<li>
<packageId>brrainz.harmony</packageId>
<displayName>Harmony</displayName>
<downloadUrl>https://github.com/pardeike/HarmonyRimWorld/releases/latest</downloadUrl>
<steamWorkshopUrl>steam://url/CommunityFilePage/2009463077</steamWorkshopUrl>
</li>
</modDependencies>
<name>Level Up!</name>
<author>krafs</author>
<packageId>Krafs.LevelUp</packageId>
<description>Do things when colonists level up.\n\n-Display message\n-Play animation\n-Play sound</description>
<url>https://github.com/krafs/LevelUp</url>
<supportedVersions>
<li>1.1</li>
<li>1.2</li>
<li>1.3</li>
</supportedVersions>
<modDependencies>
<li>
<packageId>brrainz.harmony</packageId>
<displayName>Harmony</displayName>
<downloadUrl>https://github.com/pardeike/HarmonyRimWorld/releases/latest</downloadUrl>
<steamWorkshopUrl>steam://url/CommunityFilePage/2009463077</steamWorkshopUrl>
</li>
</modDependencies>
</ModMetaData>
4 changes: 2 additions & 2 deletions Source/LevelUp/Actions/TextAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,14 @@ protected Rect DrawTextBuilder(Rect rect)
Verse.Text.CurFontStyle.richText = false;
Widgets.Label(guideRowRect, I18n.FormattingBoldLabel.Bolded());
Verse.Text.CurFontStyle.richText = true;
Widgets.Label(label2Rect, I18n.FormattingBoldLabel);
Widgets.Label(label2Rect, I18n.FormattingBoldLabel.Bolded());

guideRowRect.y = guideRowRect.yMax;
label2Rect.y = label2Rect.yMax;
Verse.Text.CurFontStyle.richText = false;
Widgets.Label(guideRowRect, I18n.FormattingItalicLabel.Italicized());
Verse.Text.CurFontStyle.richText = true;
Widgets.Label(label2Rect, I18n.FormattingItalicLabel);
Widgets.Label(label2Rect, I18n.FormattingItalicLabel.Italicized());

guideRowRect.y = guideRowRect.yMax;
label2Rect.y = label2Rect.yMax;
Expand Down

0 comments on commit a126da6

Please sign in to comment.