前端Lua
前端Lua
前端Lua
function ItemTips.main(data) local parent = GUI:Attach_Parent() ItemTips._data = data ItemTips._panelListSubItems = {} ItemTips.itemCount = 0 ItemTips._PList = nil ItemTips._diff = false ItemTips._equipAttList = {} -- 身上的装
前端Lua
local t = {name = '井中月',path ='res/public_win32/bg_npc_01.png'} if itemData.Name == t.name then GUI:Layout_setBackGroundImage(ItemTips.AddTipLayout,t.path) else end -- 新增加的 -- 注册监听Tips鼠标滚动 SL:RegisterLUAEvent(LUA_EVENT_ITEMTIPS_MOUSE_SCROLL, "ItemTi
前端Lua
local t = {name = '井中月',path ='res/public_win32/bg_npc_01.png'} if itemData.Name == t.name then GUI:Layout_setBackGroundImage(ItemTips.AddTipLayout,t.path) else end -- 新增加的 -- 注册监听Tips鼠标滚动 SL:RegisterLUAEvent(LUA_EVENT_ITE
前端Lua
[LUA-print] LUA ERROR: target is invalid cobj [LUA-print] stack traceback: [string "scripts/GUI/GUI.lua"]:110: in function 'CheckIsInvalidCObject' [string "scripts/GUI/GUI.lua"]:2900: in function 'Layout_setBackGroundImage' [s
前端Lua
local t = {name = '井中月',path ='res/public_win32/bg_npc_01.png'} if itemData.Name == t.name then end -- 新增加的 -- 注册监听Tips鼠标滚动 SL:RegisterLUAEvent(LUA_EVENT_ITEMTIPS_MOUSE_SCROLL, "ItemTips", ItemTips.OnMouseScroll) e
前端Lua
function ItemTips.main(data) local parent = GUI:Attach_Parent() ItemTips._data = data ItemTips._panelListSubItems = {} ItemTips.itemCount = 0 ItemTips._PList = nil ItemTips._diff = false ItemTips._equipAttList = {} -- 身上的装
前端Lua
function huoquname() local newname = itemData.Name return newname end -- 新增加的 -- 注册监听Tips鼠标滚动 SL:RegisterLUAEvent(LUA_EVENT_ITEMTIPS_MOUSE_SCROLL, "ItemTips", ItemTips.OnMouseScroll) end local t = {
前端Lua
function huoquname() local newname = itemData.Name return newname end -- 新增加的 -- 注册监听Tips鼠标滚动 SL:RegisterLUAEvent(LUA_EVENT_ITEMTIPS_MOUSE_SCROLL, "ItemTips", ItemTips.OnMouseScroll) 这里返回的 如何在 local t = {name = '井中月',path ='res/
前端Lua
为什么鼠标移动 返回的值是上次的
前端Lua
local t = {name = '井中月',path ='res/public_win32/bg_npc_01.png'} function ItemTips.AddTipLayout(parent, name) local node = GUI:Widget_Create(parent, "widget_" .. name, 0, 0) GUI:LoadExport(node, "item/item_tips") local ui = GUI:ui_deleg
前端Lua
local t = {name = '井中月',path ='res/public_win32/bg_npc_01.png'} function ItemTips.AddTipLayout(parent, name) local node = GUI:Widget_Create(parent, "widget_" .. name, 0, 0) GUI:LoadExport(node, "item/item_tips") local ui = GUI:ui_deleg
前端Lua
local ui = {} function ui.init(parent) -- Create tipsLayout local tipsLayout = GUI:Layout_Create(parent, "tipsLayout", 265.00, 400.00, 135.00, 173.00, false) GUI:Layout_setBackGroundImageScale9Slice(tipsLayout, 44, 44, 57, 57) GUI:Layout_setBackG
前端Lua
local n1_chuansong = {} local list = { { name = "比奇城", mapId = "0", lv = 0, equal = { "幽灵项链", "幽灵手套", "龙之戒指", } }, { name = "盟重省", mapId = "3", lv = 25, equal = { "幽灵项链", "幽灵手套", "龙之戒指", "道士头盔", } }, { name = "沙巴克城", mapId = "0150", lv =
前端Lua