我尝试使用ComponentController从主场景导航到ViewA,然后我发现了两个问题
我是Roku开发公司的新手。任何暗示都是感激的。
更新:
我想出了不应该在init()函数中使用setFocus的1的解决方案。我必须将m.top.observeField("focusedChild","onChildFocused")添加到init()中
然后是setFocus in onChildFocused
sub onChildFocused()
print "child focused"
if m.top.isInFocusChain() and not m.button.hasFocus() then
m.button.setFocus(true)
end if
end sub我还是不知道为什么字体不能正常工作。

发布于 2020-07-21 15:28:08
从你的问题中还不清楚你所面临的字体问题是什么。如果您的问题是关于按钮文本字体,请检查您是否正在为按钮设置"textFont“和"focusedTextFont”字体。
https://stackoverflow.com/questions/63001093
复制相似问题