ace
This commit is contained in:
parent
6d6d9f322c
commit
a0f6df0555
File diff suppressed because it is too large
Load Diff
12
game/game.js
12
game/game.js
|
@ -21452,7 +21452,7 @@
|
|||
}
|
||||
(function(){
|
||||
var page=ui.create.div('#create-extension');
|
||||
var node=ui.create.div('.menubutton.large','创建扩展',start.firstChild,clickMode);
|
||||
var node=ui.create.div('.menubutton.large','制作扩展',start.firstChild,clickMode);
|
||||
node.link=page;
|
||||
node.mode='create';
|
||||
var pageboard=ui.create.div(page);
|
||||
|
@ -21642,7 +21642,15 @@
|
|||
}());
|
||||
var dash2=ui.create.div('.hidden',page);
|
||||
var dash3=ui.create.div('.hidden',page);
|
||||
var dash4=ui.create.div('.hidden',page);
|
||||
var dash4=(function(){
|
||||
var page=ui.create.div('.hidden.menu-buttons');
|
||||
ui.create.div('.config.more','<div style="transform:none;margin-right:3px">←</div>返回',page,function(){
|
||||
page.hide();
|
||||
pageboard.show();
|
||||
});
|
||||
|
||||
return page;
|
||||
}());
|
||||
createDash('将','编辑武将',dash1);
|
||||
createDash('卡','编辑卡牌',dash2);
|
||||
createDash('技','编辑技能',dash3);
|
||||
|
|
|
@ -2,7 +2,8 @@ window.noname_update={
|
|||
version:'1.8.19',
|
||||
changeLog:[
|
||||
'修bug',
|
||||
'移除自定义武将功能、增加扩展制作向导'
|
||||
'新字体',
|
||||
'移除自定义武将、增加扩展制作工具',
|
||||
],
|
||||
files:{
|
||||
global:[
|
||||
|
|
|
@ -0,0 +1,30 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>ACE in Action</title>
|
||||
<style type="text/css" media="screen">
|
||||
#editorx {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="editorx">function foo(items) {
|
||||
var x = "All this is syntax highlighted";
|
||||
return x;
|
||||
}</div>
|
||||
|
||||
<script src="game/ace.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script>
|
||||
var editor = ace.edit("editorx");
|
||||
editor.setTheme("ace/theme/chrome");
|
||||
editor.getSession().setUseWorker(false);
|
||||
editor.getSession().setMode("ace/mode/javascript");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue