I believe having N functions for what could be a single function and a parameter is stupid.
And now it is a single function with an extra parameter (only with an extra constructor):
https://github.com/madmaxoft/GalExport/b...#L152-L154
Or even more advanced example:
https://github.com/madmaxoft/GalExport/b...#L415-L425
And now it is a single function with an extra parameter (only with an extra constructor):
a_Player:SendMessage(cCompositeChat("Message, like, whatever", mtInfo))
And it can be easily extended to include further parts, url or clickable commands:
a_Player:SendMessage(cCompositeChat("Usage: ", mtInfo)
:AddSuggestCommandPart("/cmd verb1 verb2", "/cmd verb1 verb2", "u@b")
:AddTextPart(" Param1 Param2", "@2")
)
Currently only GalExport is using this construct to its full potential, but I expect to implement it in WE and Gallery, too.https://github.com/madmaxoft/GalExport/b...#L152-L154
Or even more advanced example:
https://github.com/madmaxoft/GalExport/b...#L415-L425

