Description:
Add procedural generation for descriptions.
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
@@ -27,7 +27,9 | |||||
|
27 | "Grey" ], |
|
27 | "Grey" ], |
|
28 | "surname": ["Walker", "Wright", "Phillips", "Alvarez", |
|
28 | "surname": ["Walker", "Wright", "Phillips", "Alvarez", |
|
29 | "Smith", "Washington", "Perry", "Wong", "Stephens", |
|
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 | "greeting": [ "Hi", "Hello", "Greetings" ], |
|
33 | "greeting": [ "Hi", "Hello", "Greetings" ], |
|
32 | "addressGreeting": "#greeting#, #name#", |
|
34 | "addressGreeting": "#greeting#, #name#", |
|
33 | "howdoing": [ "I'm good.", "Fine", "Alright, I guess." ], |
|
35 | "howdoing": [ "I'm good.", "Fine", "Alright, I guess." ], |
@@ -1342,10 +1344,12 | |||||
|
1342 | "large_number": ["billions", "millions", "tens of millions", "hundreds of millions"], |
|
1344 | "large_number": ["billions", "millions", "tens of millions", "hundreds of millions"], |
|
1343 | "secrets_etc": ["mysteries", "secrets", "enigmas"], |
|
1345 | "secrets_etc": ["mysteries", "secrets", "enigmas"], |
|
1344 | "many": ["#large_number# of", "many", "numerous"], |
|
1346 | "many": ["#large_number# of", "many", "numerous"], |
|
|
1347 | "establish_year": ["1893", "1901", "1788", "1822"], | ||
|
1345 | "company_ending": ["LLC", "Inc.", "Corporation"], |
|
1348 | "company_ending": ["LLC", "Inc.", "Corporation"], |
|
1346 | "company": ["#surname# Brothers", "#surname# and Sons", "#surname# and Progeny", "#surname# Siblings"], |
|
1349 | "family_company": ["#surname# Brothers", "#surname# and Sons", "#surname# and Progeny", "#surname# Siblings"], |
|
1347 | "logging_company": ["#company#", "#company#", "#surname# Logging", |
|
1350 | "logging_company": ["#family_company#", "#family_company#", "#surname# Logging", "#town_name_adjectives# #town_name_endings# #company_ending#", |
|
1348 | "#town_name_adjectives# #town_name_endings# Logging #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 | "vars": "assistantName = #assistantName# \n whatever = #whatever#", |
|
1353 | "vars": "assistantName = #assistantName# \n whatever = #whatever#", |
|
1350 | "test": "test", |
|
1354 | "test": "test", |
|
1351 | "empty": "" |
|
1355 | "empty": "" |
@@ -89,7 +89,7 | |||||
|
89 | SendMessage<TickMessage>(new TickMessage{}); |
|
89 | SendMessage<TickMessage>(new TickMessage{}); |
|
90 | //For now: |
|
90 | //For now: |
|
91 | SendMessage<SpawnContractMessage>(new SpawnContractMessage{ max_squares = 100, |
|
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 | foreach (ref readonly var entity in ReadEntities<TreeDeltaComponent>()) |
|
95 | foreach (ref readonly var entity in ReadEntities<TreeDeltaComponent>()) |
@@ -259,7 +259,7 | |||||
|
259 | { |
|
259 | { |
|
260 |
|
260 | ||
|
261 | WorldBuilder.SendMessage(new SpawnOrganizationtMessage { offersContracts = true, |
|
261 | WorldBuilder.SendMessage(new SpawnOrganizationtMessage { offersContracts = true, |
|
262 |
description = " |
|
262 | description = "#company_description#" }); |
|
263 | } |
|
263 | } |
|
264 | WorldBuilder.SendMessage(new SpawnContractMessage |
|
264 | WorldBuilder.SendMessage(new SpawnContractMessage |
|
265 | { |
|
265 | { |
@@ -52,7 +52,7 | |||||
|
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 |
|
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 | ImGui.PushFont(italicFont); |
|
54 | ImGui.PushFont(italicFont); |
|
55 | ImGui.Text(description); |
|
55 | ImGui.TextWrapped(description); |
|
56 | ImGui.PopFont(); |
|
56 | ImGui.PopFont(); |
|
57 |
|
57 | ||
|
58 | ImGui.Separator(); |
|
58 | ImGui.Separator(); |
@@ -52,7 +52,6 | |||||
|
52 | #endif |
|
52 | #endif |
|
53 |
|
53 | ||
|
54 | this.monoFont = io.Fonts.AddFontFromFileTTF(@"Content/iosevka-term-extendedmedium.ttf", 15); |
|
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 | unsafe //god this sucks |
|
55 | unsafe //god this sucks |
|
57 | { |
|
56 | { |
|
58 | ImFontConfigPtr config = ImGuiNative.ImFontConfig_ImFontConfig(); |
|
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 | _imGuiRenderer.RebuildFontAtlas(); // Required so fonts are available for rendering |
|
69 | _imGuiRenderer.RebuildFontAtlas(); // Required so fonts are available for rendering |
|
70 |
|
70 |
You need to be logged in to leave comments.
Login now