小编Nat*_*995的帖子

尝试索引字段“text”(零值)

在插件开发过程中,我的 Wow 客户端收到以下错误/

83x FrameXML\OptionsFrameTemplates.lua:157: attempt to index field 
'text' (a nil value)
FrameXML\OptionsFrameTemplates.lua:157: in function <FrameXML\OptionsFrameTemplates.lua:156>

Locals:
self = ShiftDropDown_Button {
 0 = <userdata>
 toggle = ShiftDropDown_ButtonToggle {
 }
}
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index field 'text' (a nil value)"
Run Code Online (Sandbox Code Playgroud)

我用这个在 XML 文件中调用它

        <Button name="ShiftDropDown_Button" inherits="InterfaceOptionsListButtonTemplate" text="Select Target">
            <Size>
                <AbsDimension x="150" y="10" />
            </Size>
            <Anchors> …
Run Code Online (Sandbox Code Playgroud)

lua world-of-warcraft

2
推荐指数
1
解决办法
2021
查看次数

标签 统计

lua ×1

world-of-warcraft ×1