我不想通过Ctrl+F10调内置系统UI,我希望通过Ctrl+F12调整内置系统UI,这回大大降低我的操作,现在遇到的问题是,我调整好了UI,通过下面这三行代码加载出来控件坐标是不对的:
rgbStorage.main(page)
localparent=GUI:Attach_Parent()
GUI:LoadExport(parent, "bag/storage_layer")
Storage._ui=GUI:ui_delegate(parent)
我通过这段代码2加载出来UI就是正常的
localwin=GUI:GetWindow(nil,winName)
SL:Print("UILoad:",winName)
localnew=false
ifnotwinthen
win=GUI:Win_Create(winName, 0,0, 0, 0, false, false, true, false)
GUI:LoadExport(win, uiPath)
new=true
else
new=false
end
localchildren=GUI:ui_delegate(win)
但我用代码2加载的话,系统又会框框报错,求解决办法,我真的不想再用F10了,我都快吐了。
|