mirror of
https://github.com/tonytins/citylimits.git
synced 2025-03-22 07:22:20 +00:00
Fixed news ticker not replacing text
Glad to get that annoying bug finally out of the way.
This commit is contained in:
parent
05310c8dbc
commit
aed8b266b8
2 changed files with 6 additions and 9 deletions
|
@ -101,7 +101,6 @@ margin_right = 234.609
|
||||||
margin_bottom = 138.5
|
margin_bottom = 138.5
|
||||||
|
|
||||||
[node name="ToolsWindow" type="WindowDialog" parent="Controls/Windows"]
|
[node name="ToolsWindow" type="WindowDialog" parent="Controls/Windows"]
|
||||||
visible = true
|
|
||||||
anchor_left = 0.402435
|
anchor_left = 0.402435
|
||||||
anchor_top = 0.315697
|
anchor_top = 0.315697
|
||||||
anchor_right = 0.60263
|
anchor_right = 0.60263
|
||||||
|
@ -277,7 +276,6 @@ anchor_left = 0.0115391
|
||||||
anchor_top = 0.193259
|
anchor_top = 0.193259
|
||||||
anchor_right = 0.0525548
|
anchor_right = 0.0525548
|
||||||
anchor_bottom = 0.670871
|
anchor_bottom = 0.670871
|
||||||
margin_top = -9.53674e-07
|
|
||||||
hint_tooltip = "Meet"
|
hint_tooltip = "Meet"
|
||||||
size_flags_horizontal = 4
|
size_flags_horizontal = 4
|
||||||
icon = ExtResource( 35 )
|
icon = ExtResource( 35 )
|
||||||
|
@ -290,7 +288,6 @@ anchor_left = 0.0566406
|
||||||
anchor_top = 0.208955
|
anchor_top = 0.208955
|
||||||
anchor_right = 0.601562
|
anchor_right = 0.601562
|
||||||
anchor_bottom = 0.746269
|
anchor_bottom = 0.746269
|
||||||
margin_top = 9.53674e-07
|
|
||||||
custom_constants/separation = 50
|
custom_constants/separation = 50
|
||||||
alignment = 1
|
alignment = 1
|
||||||
script = ExtResource( 38 )
|
script = ExtResource( 38 )
|
||||||
|
|
|
@ -89,20 +89,20 @@ func _random_news(files: Array):
|
||||||
|
|
||||||
if SimData.city_name == "Furtropolis" or "Furville" and "[outlet]" in news_text:
|
if SimData.city_name == "Furtropolis" or "Furville" and "[outlet]" in news_text:
|
||||||
# FNN = Furtropolis/Furry News Network
|
# FNN = Furtropolis/Furry News Network
|
||||||
news_text.replace("[outlet]", "FNN")
|
news_text = news_text.replace("[outlet]", "FNN")
|
||||||
elif "[outlet]" in news_text:
|
else:
|
||||||
news_text.replace("[outlet]", "Pawprint Press")
|
news_text = news_text.replace("[outlet]", "Pawprint Press")
|
||||||
|
|
||||||
if "[species]" in news_text:
|
if "[species]" in news_text:
|
||||||
speices.shuffle()
|
speices.shuffle()
|
||||||
var speices_range = rng.randi_range(speices.size() - 1)
|
var speices_range = rng.randi_range(speices.size() - 1)
|
||||||
news_text.replace("[species]", speices[speices_range])
|
news_text = news_text.replace("[species]", speices[speices_range])
|
||||||
|
|
||||||
if "[city]" in news_text:
|
if "[city]" in news_text:
|
||||||
news_text.replace("[city]", SimData.city_name)
|
news_text = news_text.replace("[city]", SimData.city_name)
|
||||||
|
|
||||||
if "[mayor]" in news_text:
|
if "[mayor]" in news_text:
|
||||||
news_text.replace("[mayor]", SimData.mayor_name)
|
news_text = news_text.replace("[mayor]", SimData.mayor_name)
|
||||||
|
|
||||||
if ticker_text.items.size() > 3:
|
if ticker_text.items.size() > 3:
|
||||||
ticker_text.clear()
|
ticker_text.clear()
|
||||||
|
|
Loading…
Add table
Reference in a new issue