摘要: Laya 1.x UI组件化 author @ixenos 1. UI组件的理解 prefab: 可复用的UI预制体 runtime: 以继承或组合的形式控制prefab的逻辑类 UI组件: prefab + runtime 可复用的带有逻辑的UI预制体 2. Laya 1.x UI组件化的几种形式 阅读全文
posted @ 2023-03-09 00:59 ixenos 阅读(68) 评论(0) 推荐(0) 编辑
摘要: Egret 异步队列处理 @author ixenos 1.异步处理器 enum AsyncProcessorEnum { } class AsyncProcessor extends egret.EventDispatcher{ static __pool__ = "AsyncProcessorP 阅读全文
posted @ 2022-03-18 18:03 ixenos 阅读(151) 评论(0) 推荐(0) 编辑
摘要: git config --global core.quotepath false 阅读全文
posted @ 2022-02-13 02:53 ixenos 阅读(24) 评论(0) 推荐(0) 编辑
摘要: Egret 点击穿透 @author ixenos 1.业务场景 点击区域是表现区域的子集, 需要限制点击范围, 在边缘或者某些位置进行点击 2.具体设置 总容器设置touchEnable=false, 让子元素自行响应 内部建立响应容器, 指定响应范围, 作为响应刚体 内容容器设置touchEna 阅读全文
posted @ 2022-01-25 22:25 ixenos 阅读(223) 评论(0) 推荐(0) 编辑
摘要: vscode 常用快捷键 @author ixenos 1.打开文件 ctrl + p 2.全局搜索 ctrl + shift + f 3.打开方法 ctrl + shift + o 4.删除行 ctrl + shift + k 5.打开终端 ctrl + ` 6.复制行 alt + shift + 阅读全文
posted @ 2022-01-24 16:52 ixenos 阅读(78) 评论(0) 推荐(0) 编辑
摘要: 反思 慎独 @author ixenos 1.前言 1.1 自从不要求提交日报周报后, 整个人就懈怠了起来。 2022年开始不用提交日报周报了, 缺少了这么个监督后, 我日常工作中也不积极积累和思考了,天生散漫的思维一时无法聚拢, INFP的弱点暴露无遗 1.2 这不得不让我想起学生时代 小学的时候 阅读全文
posted @ 2022-01-20 11:48 ixenos 阅读(66) 评论(0) 推荐(0) 编辑
摘要: @author ixenos 1. 浅拷贝 1.1 Object.assign Object.assign(target, ...sources) 1.2 拓展运算符 const target = {...source}; 1.3 数组相关 Array.prototype.concat Array. 阅读全文
posted @ 2022-01-17 17:00 ixenos 阅读(273) 评论(0) 推荐(0) 编辑
摘要: @ixenos 2022年1月6日 1. 低亮度 [ 1, 0, 0, 0, -50, 0, 1, 0, 0, -50, 0, 0, 1, 0, -50, 0, 0, 0, 1, 0 ]; 高亮度改为正数即可 2. 置灰 [ 0.3, 0.6, 0, 0, 0, 0.3, 0.6, 0, 0, 0, 阅读全文
posted @ 2022-01-06 14:55 ixenos 阅读(39) 评论(0) 推荐(0) 编辑
摘要: @author ixenos 2021年12月17日 1.时序 1.1 时序图 1.2 对应plantuml文本 以下puml在vscode的markdown插件:Markdown Preview Enhanced 上正常显示, 会呈现上面的时序图 activate remote_target re 阅读全文
posted @ 2021-12-17 17:17 ixenos 阅读(329) 评论(0) 推荐(0) 编辑
摘要: @author ixenos 2021年12月10日 1.通过计算anchorOffsetX对应的中心偏移, 来模拟中心锚点的弹动 1.1 关键伪代码逻辑如下: let scaleV = 0.9; let scaleBaseX = sp.scaleX; let scaleBaseY = sp.sca 阅读全文
posted @ 2021-12-10 15:02 ixenos 阅读(64) 评论(0) 推荐(0) 编辑