Description:
Add procedural generation for descriptions.
Commit status:
[Not Reviewed]
References:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r257:aad68f4a65c9 -

@@ -27,7 +27,9
27 27 "Grey" ],
28 28 "surname": ["Walker", "Wright", "Phillips", "Alvarez",
29 29 "Smith", "Washington", "Perry", "Wong", "Stephens",
30 "Richards", "Albertson", "Klein", "Studebaker", "Dopp"],
30 "Richards", "Albertson", "Klein", "Studebaker", "Dopp", "Applebaum",
31 "Thomas", "MacDonald", "Loeffler", "Petry", "Augustin", "Russo", "Adorno",
32 "Milton", "Coltrane", "Kim", "Lindgren", "Kerry", "Harris"],
31 33 "greeting": [ "Hi", "Hello", "Greetings" ],
32 34 "addressGreeting": "#greeting#, #name#",
33 35 "howdoing": [ "I'm good.", "Fine", "Alright, I guess." ],
@@ -1342,10 +1344,12
1342 1344 "large_number": ["billions", "millions", "tens of millions", "hundreds of millions"],
1343 1345 "secrets_etc": ["mysteries", "secrets", "enigmas"],
1344 1346 "many": ["#large_number# of", "many", "numerous"],
1347 "establish_year": ["1893", "1901", "1788", "1822"],
1345 1348 "company_ending": ["LLC", "Inc.", "Corporation"],
1346 "company": ["#surname# Brothers", "#surname# and Sons", "#surname# and Progeny", "#surname# Siblings"],
1347 "logging_company": ["#company#", "#company#", "#surname# Logging",
1348 "#town_name_adjectives# #town_name_endings# Logging #company_ending#"],
1349 "family_company": ["#surname# Brothers", "#surname# and Sons", "#surname# and Progeny", "#surname# Siblings"],
1350 "logging_company": ["#family_company#", "#family_company#", "#surname# Logging", "#town_name_adjectives# #town_name_endings# #company_ending#",
1351 "#tree_species_common# forestry #company_ending#", "the #tree_species_common# forestry company "],
1352 "company_description": ["Family loggers since #establish_year#", "Loggers since #establish_year#", "Dedicated to our community, workers, and environment."],
1349 1353 "vars": "assistantName = #assistantName# \n whatever = #whatever#",
1350 1354 "test": "test",
1351 1355 "empty": ""
@@ -89,7 +89,7
89 89 SendMessage<TickMessage>(new TickMessage{});
90 90 //For now:
91 91 SendMessage<SpawnContractMessage>(new SpawnContractMessage{ max_squares = 100,
92 name = string.Format("#company# {0}", this.simulation.DateTime.ToShortDateString()) });
92 name = string.Format("#logging_company.capitalizeAll# {0}", this.simulation.DateTime.ToShortDateString()) });
93 93
94 94
95 95 foreach (ref readonly var entity in ReadEntities<TreeDeltaComponent>())
@@ -259,7 +259,7
259 259 {
260 260
261 261 WorldBuilder.SendMessage(new SpawnOrganizationtMessage { offersContracts = true,
262 description = "Expert loggers since 1893." });
262 description = "#company_description#" });
263 263 }
264 264 WorldBuilder.SendMessage(new SpawnContractMessage
265 265 {
@@ -52,7 +52,7
52 52 ImGui.Image(_imGuiTexture, new Num.Vector2(250, 200), map.GetSourceUVStart(imageIndex), map.GetSourceUVEnd(imageIndex), Num.Vector4.One, Num.Vector4.Zero); // Here, the previously loaded texture is used
53 53
54 54 ImGui.PushFont(italicFont);
55 ImGui.Text(description);
55 ImGui.TextWrapped(description);
56 56 ImGui.PopFont();
57 57
58 58 ImGui.Separator();
@@ -52,7 +52,6
52 52 #endif
53 53
54 54 this.monoFont = io.Fonts.AddFontFromFileTTF(@"Content/iosevka-term-extendedmedium.ttf", 15);
55 this.italicFont = io.Fonts.AddFontFromFileTTF(@"Content/iosevka-term-extendedmediumitalic.ttf", 15);
56 55 unsafe //god this sucks
57 56 {
58 57 ImFontConfigPtr config = ImGuiNative.ImFontConfig_ImFontConfig();
@@ -65,6 +64,7
65 64
66 65
67 66 }
67 this.italicFont = io.Fonts.AddFontFromFileTTF(@"Content/iosevka-term-extendedmediumitalic.ttf", 15);
68 68
69 69 _imGuiRenderer.RebuildFontAtlas(); // Required so fonts are available for rendering
70 70
You need to be logged in to leave comments. Login now