master
tonkia 6 years ago
parent 3348e616cf
commit 4a75cb262a
  1. 11
      static/js/createScheme.js
  2. 10
      views/createScheme.html

@ -208,7 +208,9 @@ function initEvent() {
var component = { var component = {
name: componentName, name: componentName,
models: [], models: [],
modelIndex: -1 modelIndex: -1,
textures: [],
textureIndex: -1
} }
data.components.push(component); data.components.push(component);
freshComponentItem(); freshComponentItem();
@ -239,9 +241,16 @@ function initEvent() {
//todo 还需要发送ajax清空模型文件 //todo 还需要发送ajax清空模型文件
} }
} }
}, {
icon: 'times',
text: '取消',
}] }]
}).show(); }).show();
}); });
$('#textureManagerment').click(function () {
$('#textureManagermentModal').modal('show');
});
} }
function addModel(url, callBack) { function addModel(url, callBack) {

@ -72,8 +72,8 @@
</div> </div>
<div class="list-group" id="modelList"> <div class="list-group" id="modelList">
</div> </div>
<button id="delComponent" class="btn btn-danger pull-right" style="display: none">删除该组件</button> <button id="delComponent" class="btn btn-danger pull-right" style="display: none;margin-left:10px;">删除该组件</button>
<button id="textureManagerment" class="btn pull-right" style="display: none;margin-right:10px;">贴图管理</button> <button id="textureManagerment" class="btn pull-right" style="display: none">贴图管理</button>
</div> </div>
</div> </div>
<div class="panel-footer"> <div class="panel-footer">
@ -106,18 +106,18 @@
<!-- 模态框:材质管理 --> <!-- 模态框:材质管理 -->
<div class="modal fade" id="textureManagermentModal"> <div class="modal fade" id="textureManagermentModal">
<div class="modal-dialog modal-sm"> <div class="modal-dialog modal-lg">
<div class="modal-content"> <div class="modal-content">
<div class="modal-header"> <div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span
class="sr-only">关闭</span></button> class="sr-only">关闭</span></button>
<h4 class="modal-title">材质管理</h4> <h4 class="modal-title">贴图管理</h4>
</div> </div>
<div class="modal-body"> <div class="modal-body">
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<button type="button" class="btn btn-primary" id="addComponent">确定</button> <button type="button" class="btn btn-default" data-dismiss="modal">确定</button>
</div> </div>
</div> </div>
</div> </div>

Loading…
Cancel
Save