Description:
Show a random selection of three stories, rather than one of each.
Commit status:
[Not Reviewed]
References:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r127:bb85edc4862a -

1 NO CONTENT: modified file, binary diff hidden
NO CONTENT: modified file, binary diff hidden
1 NO CONTENT: modified file, binary diff hidden
NO CONTENT: modified file, binary diff hidden
@@ -1,1 +1,1
1 d7f0e37253a74f9e09b0aa45e63a243a5e7640d5
1 ccf73b859df7dddc357676bd95436a0b13bdd512
1 NO CONTENT: modified file, binary diff hidden
NO CONTENT: modified file, binary diff hidden
1 NO CONTENT: modified file, binary diff hidden
NO CONTENT: modified file, binary diff hidden
1 NO CONTENT: modified file, binary diff hidden
NO CONTENT: modified file, binary diff hidden
1 NO CONTENT: modified file, binary diff hidden
NO CONTENT: modified file, binary diff hidden
1 NO CONTENT: modified file, binary diff hidden
NO CONTENT: modified file, binary diff hidden
1 NO CONTENT: modified file, binary diff hidden
NO CONTENT: modified file, binary diff hidden
1 NO CONTENT: modified file, binary diff hidden
NO CONTENT: modified file, binary diff hidden
@@ -1,1 +1,1
1 4365fd40af26f6a84e18b3f7cc9703f84189efab
1 eb53a31a465d1700585a27323fb9618e935e3337
1 NO CONTENT: modified file, binary diff hidden
NO CONTENT: modified file, binary diff hidden
1 NO CONTENT: modified file, binary diff hidden
NO CONTENT: modified file, binary diff hidden
1 NO CONTENT: modified file, binary diff hidden
NO CONTENT: modified file, binary diff hidden
@@ -5,7 +5,6
5 },
5 },
6 "projects": {
6 "projects": {
7 "/Users/alys/repos/isometric-park-fna/FNA/FNA.csproj": {
7 "/Users/alys/repos/isometric-park-fna/FNA/FNA.csproj": {
8 "version": "1.0.0",
9 "restore": {
8 "restore": {
10 "projectUniqueName": "/Users/alys/repos/isometric-park-fna/FNA/FNA.csproj",
9 "projectUniqueName": "/Users/alys/repos/isometric-park-fna/FNA/FNA.csproj",
11 "projectName": "FNA",
10 "projectName": "FNA",
@@ -54,7 +53,9
54 }
53 }
55 },
54 },
56 "frameworks": {
55 "frameworks": {
57 "net45": {}
56 "net45": {
57 "runtimeIdentifierGraphPath": "/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/msbuild/Current/bin/RuntimeIdentifierGraph.json"
58 }
58 }
59 }
59 }
60 }
60 }
61 }
@@ -7,7 +7,7
7 <NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">/Users/alys/.nuget/packages/</NuGetPackageRoot>
7 <NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">/Users/alys/.nuget/packages/</NuGetPackageRoot>
8 <NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">/Users/alys/.nuget/packages/</NuGetPackageFolders>
8 <NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">/Users/alys/.nuget/packages/</NuGetPackageFolders>
9 <NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
9 <NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
10 <NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">5.1.0</NuGetToolVersion>
10 <NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">5.6.0</NuGetToolVersion>
11 </PropertyGroup>
11 </PropertyGroup>
12 <PropertyGroup>
12 <PropertyGroup>
13 <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
13 <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
@@ -62,7 +62,9
62 }
62 }
63 },
63 },
64 "frameworks": {
64 "frameworks": {
65 "net45": {}
65 "net45": {
66 "runtimeIdentifierGraphPath": "/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/msbuild/Current/bin/RuntimeIdentifierGraph.json"
67 }
66 }
68 }
67 }
69 }
68 } No newline at end of file
70 }
@@ -1,8 +1,8
1 {
1 {
2 "version": 2,
2 "version": 2,
3 "dgSpecHash": "3AWDv+MZriwMxBTBDorp8FiSvyrXQqppePDYsTfATqNGlipF/pJObt6DcBo8NzTLP21oSN3cyqBrcDukFLx64w==",
3 "dgSpecHash": "kUPsWi+W/I8KOuiF0fQ9nWh1vVsW3b0wAQVjldBK6JNRF3usvNENwsXcLXddNG6Wh/129HHhkfaanQmLUK7wcA==",
4 "success": true,
4 "success": true,
5 "projectFilePath": "/home/alys/repos/isometric-park-fna/SpriteFontPlus/src/SpriteFontPlus.FNA.csproj",
5 "projectFilePath": "/Users/alys/repos/isometric-park-fna/SpriteFontPlus/src/SpriteFontPlus.FNA.csproj",
6 "expectedPackageFiles": [],
6 "expectedPackageFiles": [],
7 "logs": []
7 "logs": []
8 } No newline at end of file
8 }
@@ -79,6 +79,16
79 human_adjective1: "#human-adjectives#"
79 human_adjective1: "#human-adjectives#"
80 human_adjective2: "#human-adjectives#"
80 human_adjective2: "#human-adjectives#"
81 human_adjective3: "#human-adjectives#"
81 human_adjective3: "#human-adjectives#"
82 - hed: "All about the #subject_species#"
83 contents: ""
84 source: "Arborist"
85 variables:
86 subject_species: "#tree_species#"
87 - hed: "Flowers for #maleCodedName#"
88 contents: ""
89 source: "Arborist"
90 variables:
91 subject_species: "#tree_species#"
82 - hed: "Secrets of the #subject_sea#"
92 - hed: "Secrets of the #subject_sea#"
83
93
84 contents: "The waters of the #subject_sea# are #evaluation_adjectives#, almost
94 contents: "The waters of the #subject_sea# are #evaluation_adjectives#, almost
@@ -212,9 +212,9
212 {
212 {
213 this.newsItems.AddRange(NewsItem.FromYaml(sr.ReadToEnd()));
213 this.newsItems.AddRange(NewsItem.FromYaml(sr.ReadToEnd()));
214 }
214 }
215 this.newsItems = this.newsItems.Select(s => s.Flatten(this.grammar)).ToList();
215 this.newsItems = this.newsItems.Select(s => s.Flatten(this.grammar)).ToList().Shuffle();
216
216
217 this.remainingDialog = new Queue<Node<DialogOption>>();
217 this.remainingDialog = new Queue<Node<DialogOption>>();
218
218
219 #if DEBUG
219 #if DEBUG
220 this.remainingDialog.Enqueue(DialogTrees.flatten(DialogTrees.testTree, this.grammar));
220 this.remainingDialog.Enqueue(DialogTrees.flatten(DialogTrees.testTree, this.grammar));
@@ -901,9 +901,6
901
901
902 if (this.showNews)
902 if (this.showNews)
903 {
903 {
904
905
906
907 NewsWindow.Render(ref this.showNews, debugWindow.monoFont, this.simulation, this.newsItems);
904 NewsWindow.Render(ref this.showNews, debugWindow.monoFont, this.simulation, this.newsItems);
908 }
905 }
909
906
@@ -93,7 +93,7
93
93
94 if (ImGui.BeginTabBar("Sources", 0)) {
94 if (ImGui.BeginTabBar("Sources", 0)) {
95 if (ImGui.BeginTabItem("Wire")) {
95 if (ImGui.BeginTabItem("Wire")) {
96 foreach (NewsItem story in content.Where( s => (s.source == "Wire" ) )) {
96 foreach (NewsItem story in content.Where( s => (s.source == "Wire" ) ).Take(3)) {
97 if (ImGui.TreeNode(story.hed)) {
97 if (ImGui.TreeNode(story.hed)) {
98 ImGui.TextWrapped(story.contents);
98 ImGui.TextWrapped(story.contents);
99 ImGui.TreePop();
99 ImGui.TreePop();
@@ -103,7 +103,7
103 }
103 }
104 ImGui.EndTabItem();
104 ImGui.EndTabItem();
105 if (ImGui.BeginTabItem("The Naturalist")) {
105 if (ImGui.BeginTabItem("The Naturalist")) {
106 foreach (NewsItem story in content.Where( s => (s.source == "Arborist" ) )) {
106 foreach (NewsItem story in content.Where( s => (s.source == "Arborist" ) ).Take(3)) {
107 if (ImGui.TreeNode(story.hed)) {
107 if (ImGui.TreeNode(story.hed)) {
108 ImGui.TextWrapped(story.contents);
108 ImGui.TextWrapped(story.contents);
109 ImGui.TreePop();
109 ImGui.TreePop();
@@ -112,7 +112,7
112 ImGui.EndTabItem();
112 ImGui.EndTabItem();
113 }
113 }
114 if (ImGui.BeginTabItem("All True News")) {
114 if (ImGui.BeginTabItem("All True News")) {
115 foreach (NewsItem story in content.Where( s => (s.source == "True" ) )) {
115 foreach (NewsItem story in content.Where( s => (s.source == "True" ) ).Take(3)) {
116 if (ImGui.TreeNode(story.hed)) {
116 if (ImGui.TreeNode(story.hed)) {
117 ImGui.TextWrapped(story.contents);
117 ImGui.TextWrapped(story.contents);
118 ImGui.TreePop();
118 ImGui.TreePop();
@@ -43,6 +43,7
43 <Compile Include="FilledRectangle.cs" />
43 <Compile Include="FilledRectangle.cs" />
44 <Compile Include="Simulation.cs" />
44 <Compile Include="Simulation.cs" />
45 <Compile Include="Utils\MathUtils.cs" />
45 <Compile Include="Utils\MathUtils.cs" />
46 <Compile Include="Utils\Extensions.cs" />
46 <Compile Include="Utils\Node.cs" />
47 <Compile Include="Utils\Node.cs" />
47 <Compile Include="UI\BudgetWindow.cs" />
48 <Compile Include="UI\BudgetWindow.cs" />
48 <Compile Include="UI\DebugWindow.cs" />
49 <Compile Include="UI\DebugWindow.cs" />
You need to be logged in to leave comments. Login now