-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Speech Fomatting (PORT) #663
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not fond of the implementation for emphasis... It's very messy and hard to follow. Having the same symbol /
have 3 different uses might also make it unwieldy for users.
We should just port TG's emphasis implementation instead as it's way cleaner. No point in re-inventing the wheel.
//allow player to format their speech | ||
message = replacetextEx(message, regex(@"^([/+]*)(.*?)([/+]*)$"), /proc/format_dialogue) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A bit early, no? There's still quite a bit of parsing to go through.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could be, can´t claim to understand this code, just tested if it did what it said on the tin and it did.
Could we make this consistent with SS13 in terms of formatting? Otherwise, lovely addition. |
Haven´t been able to do this, but perhaps someone else is. Would make sense to keep commands consistent. |
Would you be alright if I made an alternative PR with TG's implementation then? Or would you prefer to redo this one |
Of course, go right ahead! I´ll close this as soon you put yours up. |
|
About The Pull Request
Ports the Formatting from https://github.com/sylphynford/Penumbra/pull/110/files
![emphasis](https://private-user-images.githubusercontent.com/110836368/408864095-772a10a2-50cd-466a-a003-ce8416a9d48e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4NDk0MDQsIm5iZiI6MTczODg0OTEwNCwicGF0aCI6Ii8xMTA4MzYzNjgvNDA4ODY0MDk1LTc3MmExMGEyLTUwY2QtNDY2YS1hMDAzLWNlODQxNmE5ZDQ4ZS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwNlQxMzM4MjRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT00MzhmNzc1YTUxZjU1ZTg3MWE4MTE5OTA3MTk2ZGMxYTE1MzExMmEwZTg0Zjk2MmYzZGI2N2YwYTc1OGQyOWZiJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9._pr2I10vxC0I_pb7sSYU8PpySCf0620qVTufzNIbIQk)
Looks like this
So / word / for cursive, //other// for thick
Also reminder you can sing by putting % in front of words, for all the bards.
The Blackstone branch refactored their speech code somewhat at some point, possibly worth considering adopting the whole thing, then again maybe not. This works independently at least. Had to include the autopunctuation from Azure to keep it consistent, works too.
Pre-Merge Checklist