|
楼主 |
发表于 2019-5-4 22:41:44
|
显示全部楼层
大姑姑
function sendOk()
-- mousedown_lostletter()--马上刷新地点
button_lostletter()--这个是show里面的按钮显示关闭,实际没关闭?
这2个是lua的还是木薯的指令啊,是什么意思
function mousedown_ll()
return function (flags, hotspot_id)
--print("hotspot_id="..hotspot_id)
--print("flags="..flags)
if hotspot_id=='btn_ll' then
if needdolost==1 then
needdolost=0
print('关闭做LL')
else
condition.vpearl=0
wait_kill='yes'
exe('cond;jobtimes')
dolostletter()
end
if flags==16 then
if needdolost==1 then
switch_name4="失落的信笺--开"
else
switch_name4="失落的信笺--关"
end
--text add
WindowRectOp (win2, miniwin.rect_fill, 0,60,140,80,ColourNameToRGB("black")) -- raised, filled, softer, flat 0x909090
WindowFont (win2, "f", "新宋体", 10, true, false, false, false)
WindowText (win2, "f", switch_name4,0,60,140,80,ColourNameToRGB ("gold"), false) -- not Unicode
WindowShow (win2, true) -- show it
end
end
end
end
这个flags是什么啊,赋值16代表什么啊
function mousedown_lostletter()
return function (flags, hotspot_id)
--print("hotspot_id="..hotspot_id)
--print("flags="..flags)
--颂摩崖
local wherell=""
if hotspot_id=='btn_lostletter' then
if flags==16 then
exe('look lose letter')
end
if flags==32 then
return goll()
end
if flags==96 then
return goll_always()
end --text add
--WindowCircleOp (win, miniwin.circle_round_rectangle , 0, 0, 120, 20, 0x909090, 0, 1,0, 0, 9, 9)
WindowRectOp (win3, miniwin.rect_fill, 0,0,300,20,ColourNameToRGB("black")) -- raised, filled, softer, flat 0x909090
WindowFont (win3, "f", "新宋体", 10, true, false, false, false)
WindowText (win3, "f", "失落的信笺地点:"..lostletter_locate,0,0,300,20,ColourNameToRGB ("gold"), false) -- not Unicode
WindowShow (win3, true) -- show it
end
end
end
这里面的flags 16,32,96又是什么啊
|
|