www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - My dialogue code is not working as it should!

reply TodNaz <tod.naz ya.ru> writes:
Hello! I can’t understand ... My dialogue code is not working as 
it should! He must, if the texture does not exceed the maximum 
value, add a character, otherwise go to a new line until the text 
ends. But he constantly makes the transition to a new line. 
Either I'm stupid, or something is wrong. If something is not 
clear, knock! Preferably by mail: tod.naz ya.ru

Code:
https://pastebin.com/tDtUnjYu
Oct 20 2019
parent SrMordred <patric.dexheimer gmail.com> writes:
On Sunday, 20 October 2019 at 08:41:19 UTC, TodNaz wrote:
 Hello! I can’t understand ... My dialogue code is not working 
 as it should! He must, if the texture does not exceed the 
 maximum value, add a character, otherwise go to a new line 
 until the text ends. But he constantly makes the transition to 
 a new line. Either I'm stupid, or something is wrong. If 
 something is not clear, knock! Preferably by mail: tod.naz ya.ru

 Code:
https://pastebin.com/tDtUnjYu
Sorry but I think no one here will just take a look at your project and search where the problem is. If you could create a minimal code that shows the code that behaves differently of what u expect, i´m sure that everyone here will be glad to help out :)
Oct 20 2019