-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
363843a
commit d45a75b
Showing
5 changed files
with
9,478 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
var LAppDefine = { | ||
// 调试,true时会在console里显示日志 | ||
DEBUG_LOG : true, | ||
DEBUG_MOUSE_LOG : false, // 鼠标相关日志 | ||
// 全部设定 | ||
//这里配置canvsa元素的id | ||
CANVAS_ID : "mycanvas", | ||
//是否开启滚轮缩放,默认true | ||
IS_SCROLL_SCALE : true, | ||
// 画面最大缩放级别 | ||
VIEW_MAX_SCALE : 2, | ||
// 画面最小缩放级别 | ||
VIEW_MIN_SCALE : 0.8, | ||
|
||
VIEW_LOGICAL_LEFT : -1, | ||
VIEW_LOGICAL_RIGHT : 1, | ||
|
||
VIEW_LOGICAL_MAX_LEFT : -2, | ||
VIEW_LOGICAL_MAX_RIGHT : 2, | ||
VIEW_LOGICAL_MAX_BOTTOM : -2, | ||
VIEW_LOGICAL_MAX_TOP : 2, | ||
|
||
// 动作优先级常量 | ||
//关于各个事件触发的表情可以用动作常量优先级来取代 | ||
PRIORITY_NONE : 0, | ||
PRIORITY_IDLE : 1, | ||
PRIORITY_NORMAL : 2, | ||
PRIORITY_FORCE : 3, | ||
|
||
//是否绑定切换模型按钮 | ||
IS_BIND_BUTTON : true, | ||
//绑定按钮元素id | ||
BUTTON_ID : "Change", | ||
//是否开启模型切换完成之前禁止按钮点击的选项,默认为true | ||
IS_BAN_BUTTON : true, | ||
//设置按钮禁止状态时的class,可自定义样式,前提是IS_BAN_BUTTON为true | ||
BAN_BUTTON_CLASS : "inactive", | ||
//设置按钮正常状态时的class | ||
NORMAL_BUTTON_CLASS : "active", | ||
//衣服切换模式 目前只支持两种 sequence-顺序 random-随机 | ||
//需事先配置好json文件里的textures属性 | ||
//暂不支持保存功能 | ||
TEXURE_CHANGE_MODE : "sequence", | ||
IS_START_TEXURE_CHANGE : false, | ||
TEXURE_BUTTON_ID : "", | ||
/** | ||
* 模型定义 | ||
自定义配置模型,同一数组内放置两个模型则为开启双模型 | ||
三模型也只取数组里的前两个 | ||
模型出现的顺序与数组一致 | ||
这里请用相对路径配置 | ||
*/ | ||
MODELS: | ||
[ | ||
["model/haru/haru.model.json"], | ||
["model/xiaomai/xiaomai.model.json"], | ||
["model/wanko/wanko.model.json"], | ||
["model/shizuku/shizuku.model.json"], | ||
["model/haru/haru_01.model.json","model/haru/haru_02.model.json"], | ||
["model/Epsilon2.1/Epsilon2.1.model.json"], | ||
["model/Pio/model.json"], | ||
["model/baozaifan/model.json"] | ||
], | ||
|
||
// 与外部定义的json文件匹配 | ||
MOTION_GROUP_IDLE : "idle", // 空闲时 | ||
MOTION_GROUP_TAP_BODY : "tap_body", // 点击身体时 | ||
MOTION_GROUP_FLICK_HEAD : "flick_head", // 抚摸头部 | ||
MOTION_GROUP_PINCH_IN : "pinch_in", // 放大时 | ||
MOTION_GROUP_PINCH_OUT : "pinch_out", // 缩小时 | ||
MOTION_GROUP_SHAKE : "shake", // 摇晃 | ||
//如果有自定义的动作分组可以放在这里 | ||
|
||
// 与外部定义json文件相匹配 | ||
HIT_AREA_HEAD : "head", | ||
HIT_AREA_BODY : "body", | ||
|
||
//初始化的模型大小 | ||
SCALE : 1.0, | ||
//新增属性,是否播放音频 默认为true | ||
IS_PLAY_AUDIO : true, | ||
//新增属性,audio标签id值 | ||
AUDIO_ID : "my_audio" | ||
}; |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.