|
发表于 2018-6-29 00:00:47
|
显示全部楼层
本帖最后由 toxic@tj 于 2018-6-29 11:38 编辑
- function messageShow_log(logs,color,bcolor)
- local w = GetWorld ("messageShow") -- get "chat" world
- local c_text= color or "#eadb76"
- local c_back= bcolor or "#272822"
- local log_world='messageShow'
-
- --if not flag.log or flag.log=="no" then return end
-
- if score.id then
- logs='【'..score.id..'】'..logs
- end
- if flag.log and flag.log=="yes" then
- -- if not found, try to open it
- if first_time and not w then
- local filename = GetInfo (67) .. log_world .. ".mcl"
- Note(filename)
- --local filename = GetInfo (67) .. "log.mcl"
- Open (filename)
- w = GetWorld (log_world) -- try again
- if not w then
- ColourNote ("white", "red", "Can't open chat world file: " .. filename)
- first_time = false -- don't repeatedly show failure message
- end -- can't find world
- end -- can't find world first time around
-
- if color~=nil then c_text=color end
-
- if w then
- w:ColourTell ("white","black",os.date())
- w:ColourTell (c_text,c_back,logs)
- w:Note("")
- end
- else
- if GetVariable("flagnote") then
- flag.note = tonumber(GetVariable("flagnote"))
- end
- if flag.note and flag.note==1 then
- ColourTell ("white","black",os.date())
- ColourTell (c_text,c_back,logs)
- Note("")
- end
- end
- end
复制代码
我这个代码改的对吗???整个代码都加到chat.lu里 然后出提示依然在奖励的LOG里 没有单独出窗口啊? |
|