mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2026-02-04 09:09:09 +00:00
feat(sound): Small script related improvements
* chore(build): rename src/util/Log.* to SysMessage.* * chore(ui): implement SetNonSpaceWrap() for error messages * chore(ui): move Video Script methods into CGVideoOptions class * chore(script): temporary fix GetNumOutputDrivers to eliminate loading errors * feat(sound): add SI2 Log methods * chore(sound): add SI2 CVars * chore(ui): implement Script_PlayGlueMusic * chore(sound): update SI2::Init() * fix: resolve compilation errors in variadic macros SI2_ERR and SI2_LOG --------- Co-authored-by: Tristan Cormier <cormiert2@outlook.com>
This commit is contained in:
parent
8596860120
commit
32cfe08d0b
21 changed files with 366 additions and 73 deletions
|
|
@ -748,6 +748,17 @@ void CSimpleFontString::SetJustifyH(uint8_t justify) {
|
|||
|
||||
void CSimpleFontString::SetNonSpaceWrap(int32_t a2) {
|
||||
// TODO
|
||||
// Proper implementation
|
||||
uint32_t styleFlags = a2
|
||||
? this->m_styleFlags | 0x1000
|
||||
: this->m_styleFlags & ~0x1000;
|
||||
|
||||
if (this->m_styleFlags != styleFlags) {
|
||||
this->m_styleFlags = styleFlags;
|
||||
if (this->m_string) {
|
||||
this->UpdateString();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void CSimpleFontString::SetSpacing(float spacing) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue