最美情侣中文字幕电影,在线麻豆精品传媒,在线网站高清黄,久久黄色视频

歡迎光臨散文網(wǎng) 會(huì)員登陸 & 注冊(cè)

殘影的lua代碼

2023-04-28 16:48 作者:Lv_Weirui  | 我要投稿


function getIconColor(chr)
return getColorFromHex(rgbToHex(getProperty(chr .. ".healthColorArray")))
end

function rgbToHex(array)
return string.format('%.2x%.2x%.2x', array[1], array[2], array[3])
end

function goodNoteHit(id, direction, noteType, isSustainNote)
if _G['boyfriendGhostData.strumTime'] == getPropertyFromGroup('notes', id, 'strumTime') and not isSustainNote then
createGhost('boyfriend')
end
if not isSustainNote then
_G['boyfriendGhostData.strumTime'] = getPropertyFromGroup('notes', id, 'strumTime')
updateGData('boyfriend')
end
if noteType == 'GF Sing' or gfSection then
if _G['gfGhostData.strumTime'] == getPropertyFromGroup('notes', id, 'strumTime') and not isSustainNote then
createGhost('gf')
end
if not isSustainNote then
_G['gfGhostData.strumTime'] = getPropertyFromGroup('notes', id, 'strumTime')
updateGData('gf')
end
end
end

function opponentNoteHit(id, direction, noteType, isSustainNote)
if songName == 'double-kill' then

else
if _G['dadGhostData.strumTime'] == getPropertyFromGroup('notes', id, 'strumTime') and not isSustainNote then
createGhost('dad')
end
if not isSustainNote then
_G['dadGhostData.strumTime'] = getPropertyFromGroup('notes', id, 'strumTime')
updateGData('dad')
end

? ?end
if noteType == 'GF Sing' or gfSection then
if _G['gfGhostData.strumTime'] == getPropertyFromGroup('notes', id, 'strumTime') and not isSustainNote then
createGhost('gf')
end
if not isSustainNote then
_G['gfGhostData.strumTime'] = getPropertyFromGroup('notes', id, 'strumTime')
updateGData('gf')
end
end
end

function createGhost(char)
songPos = getSongPosition() --in case game stutters
? ?makeAnimatedLuaSprite(char..'Ghost'..songPos, getProperty(char..'.imageFile'),getProperty(char..'.x'),getProperty(char..'.y'))
? ?addLuaSprite(char..'Ghost'..songPos, false)
? ?setProperty(char..'Ghost'..songPos..'.scale.x',getProperty(char..'.scale.x'))
setProperty(char..'Ghost'..songPos..'.scale.y',getProperty(char..'.scale.y'))
setProperty(char..'Ghost'..songPos..'.flipX', getProperty(char..'.flipX'))
setProperty(char..'Ghost'..songPos..'.color', getIconColor(char))
setProperty(char..'Ghost'..songPos..'.alpha', 1)
doTweenAlpha(char..'Ghost'..songPos..'delete', char..'Ghost'..songPos, 0, 0.4)
setProperty(char..'Ghost'..songPos..'.animation.frameName', _G[char..'GhostData.frameName'])
setProperty(char..'Ghost'..songPos..'.offset.x', _G[char..'GhostData.offsetX'])
setProperty(char..'Ghost'..songPos..'.offset.y', _G[char..'GhostData.offsetY'])
setObjectOrder(char..'Ghost'..songPos, getObjectOrder(char..'Group')-1)
end

function onTweenCompleted(tag)
if (tag:sub(#tag- 5, #tag)) == 'delete' then
removeLuaSprite(tag:sub(1, #tag - 6), true)
end
end

function updateGData(char)
_G[char..'GhostData.frameName'] = getProperty(char..'.animation.frameName')
_G[char..'GhostData.offsetX'] = getProperty(char..'.offset.x')
_G[char..'GhostData.offsetY'] = getProperty(char..'.offset.y')
end

-- i like number 45 :thumbs_up:


殘影的lua代碼的評(píng)論 (共 條)

分享到微博請(qǐng)遵守國(guó)家法律
邮箱| 东平县| 调兵山市| 九江县| 绥棱县| 新安县| 商水县| 黔江区| 吴江市| 沽源县| 伊宁县| 洛隆县| 册亨县| 荆门市| 水富县| 阜康市| 新闻| 汕头市| 榆中县| 即墨市| 莱西市| 会宁县| 博客| 古浪县| 长春市| 柳州市| 沿河| 中牟县| 永新县| 女性| 义乌市| 泾源县| 鸡泽县| 长宁县| 南溪县| 铜鼓县| 威宁| 红河县| 靖宇县| 东乌| 克拉玛依市|