STATUS: ONLINE | DISPLAYING 15 ITEMS PER PAGE
前端Lua

[LUA-print] LUA ERROR: target is nil value [LUA-print] stack traceback: [string "scripts/GUI/GUI.lua"]:101: in function 'CheckIsInvalidCObject' [string "scripts/GUI/GUI.lua"]:969: in function 'setPosition' [string "GUILayout/M

前端Lua

UILib:imageLoadTexture(ui.TITLE_1, string.format("res/custom/ChuanSonga/%s.png", cfg.mapimg))

前端Lua

function lib:widget_popUp_move_to_fadeout(widget, move_time, delay_time, fadeout_time) delay_time = delay_time or 9999 -- 改成 9999,让内部永不淡出 fadeout_time = fadeout_time or 1 move_time = move_time or 0.2 GUI:setAnchorPoint(widget, 0.5,

前端Lua

设置按钮文本

前端Lua

获取按钮中的文本

前端Lua

设置控件大小

前端Lua

function zhuansheng.tigger_tips() local ui = zhuansheng.parent._ui local parent = ui.ImageView local curLevel = lib:get_zs_level() or 0 local old_layout = GUI:getChildByName(parent, "zs_tips_layout") SL:Print("GUI:Win_IsNull(old

前端Lua

function zhuansheng.tigger_tips() local ui = zhuansheng.parent._ui local parent = ui.ImageView local curLevel = lib:get_zs_level() or 0 -- Create tips_layout local tips_layout = GUI:Layout_Create(parent, "zs_tips_layout"

前端Lua

function zhuansheng.tigger_tips() local ui = zhuansheng.parent._ui local parent = ui.ImageView local curLevel = lib:get_zs_level() or 0 -- Create tips_layout local tips_layout = GUI:Layout_Create(parent, "zs_tips_layout"

前端Lua

MainTarget = {} MainTarget.jobIconPath = { "res/private/main/Target/1900012533.png", "res/private/main/Target/1900012534.png", "res/private/main/Target/1900012535.png" } MainTarget.heroJobIconPath = { "res/private/main/Target/1900012

前端Lua

function MainTarget.OnClickLockPanel() local actor = SL:GetMetaValue("ACTOR_DATA", MainTarget._targetID) if not actor then return end -- 未存活 if not SL:GetMetaValue("PET_ALIVE") then return end -- F9关闭了

前端Lua

local MainButton = {} MainButton.cfg = { { but_id = "id1", x = 230, y = -270, but_img = "res\\custom\\top/20.png", cmd = { 1, 0, 0 } }, } -- 检查明天是否是周五、六、日 function MainButton:checkTomorrowIsWeekend() -- SL:Print("--------------", SL:GetMetaV

前端Lua

local MainButton = {} MainButton.cfg = { { but_id = "id1", x = 230, y = -270, but_img = "res\\custom\\top/20.png", cmd = { 1, 0, 0 } }, } -- 检查明天是否是周五、六、日 function MainButton:checkTomorrowIsWeekend() -- SL:Print("--------------", SL:GetMetaV

前端Lua

local MainButton = {} MainButton.cfg = { { but_id = "id1", x = 230, y = -270, but_img = "res\\custom\\top/20.png", cmd = { 1, 0, 0 } }, } -- 检查明天是否是周五、六、日 function MainButton:checkTomorrowIsWeekend() -- SL:Print("--------------", SL:GetMetaV

前端Lua

lib:left_move_to_fadeout("image_2","res/yidalu/zhuansheng4.0/zhuansheng tup.png",0.2,2,0.2,function() end) SL:ScheduleOnce(function() local topLayer = GUI:Attach_UITop() local image = GUI:getChildByName(topLayer, "image_2")