前端Lua
前端Lua
前端Lua
data.type 在哪被修改的
前端Lua
function MainProperty.OnPlayMagicBallEffect(data)
前端Lua
GUI:Animation_setDelayPerUnit(ani, timeval) GUI:Animation_setLoops(ani, 1) GUI:Animation_setRestoreOriginalFrame(ani, true)
前端Lua
for i = data.beginNum, data.beginNum + data.count - 1 do local path = string.format("res/private/mhp_ui_win32/%s%s.png", prefix, i) if SL:IsFileExist(path) then local sp = GUI:Sprite_Create(-1, "sp", 0, 0, path)
前端Lua
if SL:IsFileExist(path) then local sp = GUI:Sprite_Create(-1, "sp", 0, 0, path) pSize = GUI:getContentSize(sp) GUI:Animation_addSpriteFrame(ani, GUI:Sprite_getSpriteFrame(sp)) end
前端Lua
如何做一个切换地图 屏幕上显示出地图名的淡入淡出效果的文字
前端Lua
MainProperty.OnPlayMagicBallEffect(LUA_EVENT_PLAY_MAGICBALL_EFFECT)
前端Lua
SL:RegisterLUAEvent(LUA_EVENT_PLAY_MAGICBALL_EFFECT, "MainProperty", MainProperty.OnPlayMagicBallEffect)
前端Lua
GUI:setVisible(MainProperty._ui.Panel_hp_sfx, data.type ~= 2) GUI:setVisible(MainProperty._ui.Panel_mp_sfx, data.type ~= 2) GUI:setVisible(MainProperty._ui.Panel_fhp_sfx, true) if data.type == 0 then -- HP GUI:setPosition(widget,
前端Lua
if data.type == 0 then -- HP GUI:setPosition(widget, 38 + data.offsetX, 65 + data.offsetY) elseif data.type == 1 then -- MP local hpPosX = GUI:getPositionX(MainProperty._ui.Panel_hp_sfx) local hpWidth = GUI:getContentSize(
前端Lua
为啥超过了 28 级 mp还是不显示呢
前端Lua
local roleJob = SL:GetMetaValue("JOB") local roleLevel = SL:GetMetaValue("LEVEL") if roleLevel < 28 and roleJob == 0 then -- 战士等级小于28 显示全血 if MainProperty._ui.Panel_hp_sfx and MainProperty._ui.Panel_mp_sfx then GUI:setVisi
前端Lua
npc触发
前端Lua