优化textbox控件的行为,联网对战时能显示消息提示了
This commit is contained in:
@@ -237,7 +237,7 @@ function scene.draw()
|
||||
drawFWM()
|
||||
|
||||
--Players
|
||||
for p=textBox.hide and 1 or 2,#PLAYERS do
|
||||
for p=1,#PLAYERS do
|
||||
PLAYERS[p]:draw()
|
||||
end
|
||||
|
||||
@@ -278,11 +278,12 @@ function scene.draw()
|
||||
--Profile
|
||||
drawSelfProfile()
|
||||
end
|
||||
|
||||
--New message
|
||||
if textBox.new and textBox.hide then
|
||||
setFont(30)
|
||||
gc.setColor(1,TIME()%.4<.2 and 1 or 0,0)
|
||||
gc.print("M",460,15)
|
||||
if textBox.new then
|
||||
setFont(40)
|
||||
gc.setColor(1,.5+.5*math.sin(TIME()*26),0)
|
||||
gc.print("M",430,10)
|
||||
end
|
||||
end
|
||||
scene.widgetList={
|
||||
@@ -293,7 +294,6 @@ scene.widgetList={
|
||||
return
|
||||
playing or
|
||||
NET.serverGaming or
|
||||
not textBox.hide or
|
||||
PLY_NET[1].ready or
|
||||
NET.getlock('ready')
|
||||
end},
|
||||
@@ -302,7 +302,6 @@ scene.widgetList={
|
||||
return
|
||||
playing or
|
||||
NET.serverGaming or
|
||||
not textBox.hide or
|
||||
not PLY_NET[1].ready or
|
||||
NET.getlock('ready')
|
||||
end},
|
||||
|
||||
Reference in New Issue
Block a user