mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 23:46:24 -06:00
remove: Revert "NEW: add christmas cabin"
This reverts commit 19767aebb827abb83229e100a5ae38ff76de6478. Change-Id: I2ccceae409a16598658a2b35ec56b11617dd0afa
This commit is contained in:
parent
32b46292b9
commit
b5967505bd
8 changed files with 1 additions and 139 deletions
|
@ -12,9 +12,6 @@ function OnInit()
|
|||
|
||||
SendMsg_GetLoginInfo();
|
||||
SendMsg_GetRecentFile();
|
||||
|
||||
//-----Christmas-----
|
||||
ShowCabin();
|
||||
}
|
||||
|
||||
//------最佳打开文件的右键菜单功能----------
|
||||
|
@ -25,7 +22,7 @@ var MousePosY=0;
|
|||
|
||||
function Set_RecentFile_MouseRightBtn_Event()
|
||||
{
|
||||
$("#FileList .FileItem").mousedown(
|
||||
$(".FileItem").mousedown(
|
||||
function(e)
|
||||
{
|
||||
//FilePath
|
||||
|
@ -404,66 +401,3 @@ function OpenWikiUrl( strUrl )
|
|||
|
||||
//---------------Global-----------------
|
||||
window.postMessage = HandleStudio;
|
||||
|
||||
|
||||
//---------------Christma cabin
|
||||
var CCabin={
|
||||
"model":[
|
||||
{
|
||||
"name":"Christmas Cabin X1 X1C",
|
||||
"icon":"Cover_X1_X1C.png",
|
||||
"file":"Bambu Lab Christmas Cabin X1 X1C.gcode.3mf"
|
||||
},
|
||||
{
|
||||
"name":"Christmas Cabin P1P",
|
||||
"icon":"Cover_P1P.png",
|
||||
"file":"Bambu Lab Christmas Cabin P1P.gcode.3mf"
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
function ShowCabin()
|
||||
{
|
||||
let nCabin=CCabin.model.length;
|
||||
|
||||
if(nCabin==0)
|
||||
{
|
||||
$('#CabinList').html('');
|
||||
|
||||
$('#ChristmasArea').hide();
|
||||
return;
|
||||
}
|
||||
|
||||
let strHtml='';
|
||||
for(let m=0;m<nCabin;m++)
|
||||
{
|
||||
let OneCabin=CCabin.model[m];
|
||||
|
||||
let OneHtml='<div class="FileItem" onClick="OnOpenCabin(\''+OneCabin.file+'\')" >'+
|
||||
'<div class="FileImg"><img src="model/'+OneCabin.icon+'"/></div>'+
|
||||
'<div class="FileName TextS1">'+OneCabin.name+'</div>'+
|
||||
'</div>';
|
||||
|
||||
strHtml+=OneHtml;
|
||||
}
|
||||
|
||||
$('#CabinList').html(strHtml);
|
||||
|
||||
$('#ChristmasArea').show();
|
||||
$('#ChristmasArea').css('display','flex');
|
||||
}
|
||||
|
||||
function OnOpenCabin( cabinfile )
|
||||
{
|
||||
//alert(cabinfile);
|
||||
|
||||
var tSend={};
|
||||
tSend['sequence_id']=Math.round(new Date() / 1000);
|
||||
tSend['command']="homepage_open_ccabin";
|
||||
tSend['data']={};
|
||||
tSend['data']['file']=cabinfile;
|
||||
|
||||
SendWXMessage( JSON.stringify(tSend) );
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue