Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
请给我一个提示,什么是更改整个 Smartface 应用程序配色方案的最佳方法:1. 静态(在构建项目之前)2. 动态(从正在运行的应用程序中)
如果您打算只更改一次方案,您可以静态更改它。您可以定义新颜色,并更改 .pge 文件中的旧颜色。
但是,如果您想多次更改方案颜色或在使用应用程序时,您可以在运行时动态地执行此操作。这将在脚本文件中完成。可以在脚本中更改诸如 fillColor 之类的对象属性。
我不能说哪个最好,但在运行时更改看起来更好。例如,您可以使用编辑框获取颜色,然后可以使用按钮,按下时可以更改配色方案等。