tootall_2012
King
- Joined
- Feb 11, 2012
- Messages
- 921
Is it possible to insert line returns within the simple civ.ui.text without using the func.splitlines?
I've read in lua forums that the "\n" serve that purpose but when I try to enter it in my text it doesn't appear to do work.
Code:
local Text =
[[Emperor Napoléon, having failed to subdue any of the other major powers in your bid for mastery of the continent, Austria has sent a diplomatic letter to your minister of foreign affairs stating that it has joined the ranks of the anti-French coalition and therefore that, once again, a state of war exists between your two nations.
^
Expect no further peace treaty from it, other than one gained by the conquest of all its cities.
^
Furthermore, any Austrian troops that were still in your service have deserted.]]
civ.ui.text(func.splitlines(introText))
I've read in lua forums that the "\n" serve that purpose but when I try to enter it in my text it doesn't appear to do work.
Code:
civ.ui.text("Emperor Napoléon, having failed to subdue any of the other major powers in your bid for mastery of the continent, Austria has sent a diplomatic letter to your minister of foreign affairs stating that it has joined the ranks of the anti-French coalition and therefore that, once again, a state of war exists between your two nations. \nExpect no further peace treaty from it, other than one gained by the conquest of all its cities.\nFurthermore, any Austrian troops that were still in your service have deserted.")