修改导出
@ -384,9 +384,10 @@ function s2t(t) { return stringIDToTypeID(t) }
|
|||||||
}
|
}
|
||||||
|
|
||||||
//文件名合规检测
|
//文件名合规检测
|
||||||
var reg = /^[0-9a-zA-Z\u4e00-\u9fa5"_""\-"]*$/g;
|
//var reg = /^[0-9a-zA-Z\u4e00-\u9fa5"_""\-"]*$/g;
|
||||||
|
var reg = /^[0-9a-zA-Z"_""\-"]*$/g;
|
||||||
if (!reg.test(ss[0])) {
|
if (!reg.test(ss[0])) {
|
||||||
alert("\"" + layer.name + "\" 名字不合法,只能含有中文、英文、数字、-、_")
|
alert("\"" + layer.name + "\" 名字不合法,只能含有英文、数字、-、_")
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1 +0,0 @@
|
|||||||
{"info":{"version":"0.6.1","canvas":{"image":{"w":930,"h":2048},"size":{"w":930,"h":2048},"base":{"x":465,"y":1024}}},"root":{"type":"Root","name":"Sample","elements":[{"type":"Group","elements":[{"type":"Text","text":"神仙","font":"AdobeHeitiStd-Regular","size":35,"color":"E7E3B1","align":"center","x":605,"y":1406,"w":66,"h":33,"opacity":100,"imageName":"shenxian","name":"shenxian"},{"type":"Text","text":"修仙","font":"AdobeHeitiStd-Regular","size":48,"color":"FFFFFF","align":"center","x":151,"y":859,"w":90,"h":44,"opacity":100,"imageName":"xiuxian","name":"xiuxian"},{"type":"Button","elements":[{"type":"Image","image":"shitou1","x":94,"y":1351,"w":112,"h":121,"opacity":100,"imageName":"shitou1","name":"shitou1"},{"type":"Image","image":"shitou3","x":342,"y":1408,"w":79,"h":80,"opacity":100,"imageName":"shitou3","name":"shitou3"},{"type":"Image","image":"shitou2","x":209,"y":1393,"w":108,"h":100,"opacity":100,"imageName":"shitou2","name":"shitou2"},{"type":"Image","image":"Background_1","x":20,"y":360,"w":878,"h":353,"opacity":100,"imageName":"Background_1","name":"Background_1"}],"pivot":"top","imageName":"buttonWZZT","name":"buttonWZZT"},{"type":"Button","elements":[{"type":"Image","image":"bgJingjie","x":76,"y":834,"w":339,"h":92,"opacity":100,"imageName":"bgJingjie","name":"bgJingjie"},{"type":"Image","image":"person","x":546,"y":1299,"w":181,"h":136,"opacity":100,"imageName":"person","name":"person"},{"type":"Image","image":"person","x":437,"y":761,"w":429,"h":330,"opacity":100,"imageName":"person","name":"person"},{"type":"Image","image":"Background_2","x":20,"y":1139,"w":871,"h":354,"opacity":100,"imageName":"Background_2","name":"Background_2"},{"type":"Image","image":"Background_2","x":28,"y":749,"w":871,"h":354,"opacity":100,"imageName":"Background_2","name":"Background_2"}],"pivot":"top","imageName":"buttonXiuLian","name":"buttonXiuLian"},{"type":"Image","image":"title","x":287,"y":140,"w":363,"h":114,"opacity":100,"pivot":"top","imageName":"title","name":"title"},{"type":"Image","image":"bj_mo_2","x":0,"y":0,"w":930,"h":2048,"opacity":100,"imageName":"bj_mo_2","name":"bj_mo_2"}],"full":"True","stretchxy":"True","imageName":"panel","name":"panel"}]}}
|
|
Before Width: | Height: | Size: 1.0 MiB |
Before Width: | Height: | Size: 12 KiB |
1
.psd2uguiExamples/Sample_dst/Sample.layout.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
{"info":{"version":"0.6.1","canvas":{"image":{"w":930,"h":2048},"size":{"w":930,"h":2048},"base":{"x":465,"y":1024}}},"root":{"type":"Root","name":"Sample","elements":[{"type":"Group","elements":[{"type":"Text","text":"神仙","font":"AdobeHeitiStd-Regular","size":35,"color":"E7E3B1","align":"center","x":605,"y":1406,"w":66,"h":33,"opacity":100,"name":"shenxian"},{"type":"Text","text":"修仙","font":"AdobeHeitiStd-Regular","size":48,"color":"FFFFFF","align":"center","x":151,"y":859,"w":90,"h":44,"opacity":100,"name":"xiuxian"},{"type":"Group","elements":[{"type":"Image","image":"shitou1","x":94,"y":1351,"w":112,"h":121,"opacity":100,"imageName":"shitou1","name":"shitou1"},{"type":"Image","image":"box69","x":24,"y":1367,"w":864,"h":593,"opacity":100,"slice":"true","imageName":"box69","name":"box69"},{"type":"Image","image":"box67","x":31,"y":1541,"w":865,"h":411,"opacity":100,"slice":"true","imageName":"box67","name":"box67"},{"type":"Image","image":"shitou2","x":342,"y":1408,"w":79,"h":80,"opacity":100,"imageName":"shitou2","name":"shitou2"},{"type":"Image","image":"shitou3","x":209,"y":1393,"w":108,"h":100,"opacity":100,"imageName":"shitou3","name":"shitou3"},{"type":"Image","image":"Background_1","x":20,"y":360,"w":878,"h":353,"opacity":100,"imageName":"Background_1","name":"Background_1"}],"imageName":"buttonWZZT","name":"buttonWZZT"},{"type":"Button","elements":[{"type":"Image","image":"bgJingjie","x":76,"y":834,"w":339,"h":92,"opacity":100,"imageName":"bgJingjie","name":"bgJingjie"},{"type":"Image","image":"person","x":546,"y":1299,"w":181,"h":136,"opacity":100,"imageName":"person","name":"person"},{"type":"Image","image":"person","x":437,"y":761,"w":429,"h":330,"opacity":100,"imageName":"person","name":"person"},{"type":"Image","image":"Background_2","x":20,"y":1139,"w":871,"h":354,"opacity":100,"imageName":"Background_2","name":"Background_2"},{"type":"Image","image":"Background_2","x":28,"y":749,"w":871,"h":354,"opacity":100,"imageName":"Background_2","name":"Background_2"}],"pivot":"top","name":"buttonXiuLian"},{"type":"Image","image":"title","x":287,"y":140,"w":363,"h":114,"opacity":100,"pivot":"top","name":"title"}],"full":"True","stretchxy":"True","name":"panel"}]}}
|
Before Width: | Height: | Size: 358 KiB After Width: | Height: | Size: 358 KiB |
Before Width: | Height: | Size: 438 KiB After Width: | Height: | Size: 438 KiB |
Before Width: | Height: | Size: 1.7 MiB After Width: | Height: | Size: 1.6 MiB |
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 47 KiB |
BIN
.psd2uguiExamples/Sample_dst/Sample/box67-slice.png
Normal file
After Width: | Height: | Size: 3.4 KiB |
BIN
.psd2uguiExamples/Sample_dst/Sample/box67.png
Normal file
After Width: | Height: | Size: 5.6 KiB |
BIN
.psd2uguiExamples/Sample_dst/Sample/box69-slice.png
Normal file
After Width: | Height: | Size: 3.9 KiB |
BIN
.psd2uguiExamples/Sample_dst/Sample/box69.png
Normal file
After Width: | Height: | Size: 8.3 KiB |
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 46 KiB |
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 358 KiB After Width: | Height: | Size: 358 KiB |
BIN
.psd2uguiExamples/Sample_dst/Sample_output/Background_2.png
Normal file
After Width: | Height: | Size: 438 KiB |
Before Width: | Height: | Size: 1.7 MiB After Width: | Height: | Size: 1.6 MiB |
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 47 KiB |
BIN
.psd2uguiExamples/Sample_dst/Sample_output/box67.png
Normal file
After Width: | Height: | Size: 3.4 KiB |
BIN
.psd2uguiExamples/Sample_dst/Sample_output/box69.png
Normal file
After Width: | Height: | Size: 3.9 KiB |
BIN
.psd2uguiExamples/Sample_dst/Sample_output/person.png
Normal file
After Width: | Height: | Size: 46 KiB |
BIN
.psd2uguiExamples/Sample_dst/Sample_output/shitou2.png
Normal file
After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 1.0 MiB |
Before Width: | Height: | Size: 229 KiB |
Before Width: | Height: | Size: 12 KiB |