v0.3.2.6: launcher text wrapping fix

This commit is contained in:
Regalis
2016-02-18 22:47:46 +02:00
parent 9e11134bd3
commit b49641ecb8
4 changed files with 11 additions and 10 deletions
+6 -6
View File
@@ -286,20 +286,20 @@ namespace Launcher2
{ {
updateInfoBox.ClearChildren(); updateInfoBox.ClearChildren();
string wrappedText = ToolBox.WrapText(text, updateInfoBox.Rect.Width, GUI.SmallFont); //string wrappedText = ToolBox.WrapText(text, updateInfoBox.Rect.Width, GUI.SmallFont);
int lineHeight = (int)GUI.SmallFont.MeasureString(" ").Y; //int lineHeight = (int)GUI.SmallFont.MeasureString(" ").Y;
string[] lines = wrappedText.Split('\n'); string[] lines = text.Split('\n');
foreach (string line in lines) foreach (string line in lines)
{ {
if (string.IsNullOrWhiteSpace(line)) continue; if (string.IsNullOrWhiteSpace(line)) continue;
GUITextBlock textBlock = new GUITextBlock( GUITextBlock textBlock = new GUITextBlock(
new Rectangle(0,0,0,lineHeight), new Rectangle(0,0,0,0),
line, GUI.Style, line, GUI.Style,
Alignment.TopLeft, Alignment.TopLeft, Alignment.TopLeft, Alignment.TopLeft,
updateInfoBox, false, GUI.SmallFont); updateInfoBox, true, GUI.SmallFont);
textBlock.CanBeFocused = false; textBlock.CanBeFocused = false;
} }
@@ -441,7 +441,7 @@ namespace Launcher2
innerText = innerText.Replace("\r\n", "\n"); innerText = innerText.Replace("\r\n", "\n");
sb.Append(innerText+"\n"); sb.Append(innerText+"\n");
sb.AppendLine("*************************************\n"); sb.AppendLine("----------------------------\n");
} }
SetUpdateInfoBox(sb.ToString()); SetUpdateInfoBox(sb.ToString());
+1 -1
View File
@@ -9,7 +9,7 @@
<ErrorReportUrlHistory /> <ErrorReportUrlHistory />
<FallbackCulture>en-US</FallbackCulture> <FallbackCulture>en-US</FallbackCulture>
<VerifyUploadedFiles>false</VerifyUploadedFiles> <VerifyUploadedFiles>false</VerifyUploadedFiles>
<ProjectView>ShowAllFiles</ProjectView> <ProjectView>ProjectFiles</ProjectView>
</PropertyGroup> </PropertyGroup>
<PropertyGroup> <PropertyGroup>
<ReferencePath> <ReferencePath>
+4 -3
View File
@@ -3,11 +3,12 @@ v0.3.2.6
--------------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------------
- fixed the broken password box - fixed the broken password box
- location types and missions are included in content packages - maximum number of players per server increased to 16 (note that none of the vanilla subs have been
designed for a crew that large)
- junction boxes and power sources can be connected with multiple parallel wires without multiplying - junction boxes and power sources can be connected with multiple parallel wires without multiplying
the power output the power output
- - velocity and depth readings on navigation terminals
- location types and missions are included in content packages
--------------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------------
v0.3.2.5 v0.3.2.5
Binary file not shown.