搜索
查看: 1944|回复: 5

[求助] 求教如何写,才能改变分割线的颜色,谢谢!!

[复制链接]
发表于 2020-12-17 15:57:17 | 显示全部楼层 |阅读模式
10金钱
ret = itemInfo.title.."\\"..hintHelper.set(nil, nil, nil, 2)..hintHelper.line(-1)..hintHelper.set(nil, nil, nil, 2).."\\"..ret

附件: 您需要 登录 才可以下载或查看,没有账号?立即注册

最佳答案

查看完整内容

function hintHelper.line(w, fc) local ret = "{type=line" local _w = w or -1 ret = ret..";w="..w if fc ~= nil then if type(fc) == "number" then ret = ret..";fc="..fc elseif type(fc) == "table" then ret = ret..";fc=" for i=1, 4 do ret =ret..fc.."," end end end ret = ret.."}" return ret end FC应该是颜色,你试试 补充内容 (2020-12-18 09:36): hintHelper.line(-1, 0xFF808 ...
发表于 2020-12-17 15:57:18 | 显示全部楼层
function hintHelper.line(w, fc)
        local ret = "{type=line"
        local _w = w or -1
        ret = ret..";w="..w
        if fc ~= nil then
                if type(fc) == "number" then
                        ret = ret..";fc="..fc
                elseif type(fc) == "table" then
                        ret = ret..";fc="
                        for i=1, 4 do
                                ret =ret..fc..","
                        end
                end
        end
        ret = ret.."}"
        return ret
end


FC应该是颜色,你试试

补充内容 (2020-12-18 09:36):
hintHelper.line(-1, 0xFF808080)

补充内容 (2020-12-18 09:37):
----------颜色--------------       
const.clwhite  = 0xFFFFFFFF --白色
const.clblack  = 0xFF000000 --黑色
const.clred    = 0xFFFF0000 --红色
const.clgreen  = 0xFF008000 --深绿色
const.clblue   = 0xFF0000FF --蓝色
const.clyellow = 0xFFFFFF00 --黄色
const.clgray   = 0xFF808080 --灰色
const.cllime   = 0xFF00FF00 --浅绿色
const.clmaroon = 0xFF800000 --栗色
const.clolive  = 0xFF808000 --橄榄色
const.clnavy   = 0xFF000080 --海军蓝
const.clpurple = 0xFF800080 --紫色
const.clteal   = 0xFF008080 --水鸭色
const.clsilver = 0xFFC0C0C0 --银白色
const.clfuchsia= 0xFFFF00FF --紫红色
const.claqua   = 0xFF00FFFF --青色
发表于 2020-12-17 21:47:21 | 显示全部楼层
这个分割线好像是一个图片
 楼主| 发表于 2020-12-17 22:43:51 | 显示全部楼层
玲勋恩 发表于 2020-12-17 21:47
这个分割线好像是一个图片

不可以修改它的颜色吗
 楼主| 发表于 2020-12-18 12:07:56 | 显示全部楼层
侠之小白 发表于 2020-12-17 15:57
function hintHelper.line(w, fc)
        local ret = "{type=line"
        local _w = w or -1

谢谢!已解决,安装说明书,多加了参数,我插,难怪不行
发表于 2020-12-19 21:45:40 | 显示全部楼层
看看啥情况!!!
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|HGEM2论坛

GMT+8, 2024-9-21 01:35 , Processed in 0.503046 second(s), 14 queries .

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表