C++ AntTweakBar:多个"variables"以某种方式链接。错误

C++ AntTweakBar: multiple "variables" appear linked in some way.. bug

本文关键字:方式 链接 错误 AntTweakBar 多个 variables C++      更新时间:2023-10-16

对于了解AntTweakBar的人:

当我使多个TwAddVarRW(变量)链接到布尔值…(我总共有大约15个布尔条在彼此下面)

当我"检查"一个…在它下面的其他4个(大多数时候)也会立即被检查!而布尔值只从我点击的那个改变!这是怎么发生的?错误吗?

解释:(情况未检查)

bool 1 = false = "not checked"
bool 2 = false = "not checked"
bool 3 = false = "not checked"
bool 4 = false = "not checked"
bool 5 = false = "not checked"
bool 6 = false = "not checked"

——>点击/检查bool 2按钮

("2被点击"的情况)

bool 1 = false = "not checked"
bool 2 = true  = "checked"
bool 3 = false = "checked"
bool 4 = false = "checked"
bool 5 = false = "checked"
bool 6 = false = "checked"

bool 1 = false = "not checked"
bool 2 = true  = "checked"
bool 3 = false = "not checked"
bool 4 = false = "not checked"
bool 5 = false = "not checked"
bool 6 = false = "not checked"

但即使我取消了一个不应该被选中的,无论是哪个,他们都取消了....:年代所以这很奇怪……

问题是他们使用的布尔值是作为引用给出/使用的!我们放弃了它是"TW_TYPE_BOOL32",而它实际上是"TW_TYPE_BOOL8"…所以这样读参考文献是错误的!