广州大彩串口屏论坛_大彩开发者交流论坛

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 971|回复: 3

Special sign

[复制链接]

19

主题

52

帖子

261

积分

中级会员

Rank: 3Rank: 3

积分
261
发表于 2023-9-20 19:06:13 | 显示全部楼层 |阅读模式
For example, sign for angle/temperature:  [backcolor=rgba(80, 151, 255, 0.18)]° Thier code is 0176. I can past this sign to text label from VTFT level, but how to use it from LUA level. Encoding look's fine- I can write in LUA my country letter but I cannot win with this sign... ;/
回复

使用道具 举报

2

主题

1253

帖子

1万

积分

论坛元老

Rank: 8Rank: 8

积分
12543
发表于 2023-9-22 09:36:46 | 显示全部楼层
There is no way to get a control's color code from lua, and only some lua apis have color parameters, which generally need to be defined in lua
Easy doesn't enter into Grown-up life
成年人的生活里面没有“容易”二字
回复

使用道具 举报

19

主题

52

帖子

261

积分

中级会员

Rank: 3Rank: 3

积分
261
 楼主| 发表于 2023-9-23 21:52:31 | 显示全部楼层
No no, misunderstand. I noo need to change color. I want to display special sign like this °  (celsius degrees) into LUA code.

[backcolor=rgba who you see is not my, probably forum add this text.
回复

使用道具 举报

2

主题

1253

帖子

1万

积分

论坛元老

Rank: 8Rank: 8

积分
12543
发表于 2023-9-25 09:04:30 | 显示全部楼层
Suppose a text control with a screen ID of 1 and a control ID of 2 needs to display an Angle, you can write this in lua:

local temp = 30.0 .. "°"
set_text(1, 2, temp)
Easy doesn't enter into Grown-up life
成年人的生活里面没有“容易”二字
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|广州大彩串口屏论坛_大彩开发者交流论坛

GMT+8, 2024-5-3 22:55 , Processed in 0.049084 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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