mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 23:46:24 -06:00
ENH: remove Christmas cabin menu
Change-Id: Idb01d9f24eacdaec8e2451f6021a8428bae1858f
This commit is contained in:
parent
71a0c8302f
commit
a934fac180
2 changed files with 1 additions and 98 deletions
|
@ -12,9 +12,6 @@ function OnInit()
|
|||
|
||||
SendMsg_GetLoginInfo();
|
||||
SendMsg_GetRecentFile();
|
||||
|
||||
//-----Christmas-----
|
||||
ShowCabin();
|
||||
}
|
||||
|
||||
//------最佳打开文件的右键菜单功能----------
|
||||
|
@ -405,60 +402,3 @@ function OpenWikiUrl( strUrl )
|
|||
//---------------Global-----------------
|
||||
window.postMessage = HandleStudio;
|
||||
|
||||
|
||||
//---------------Christma cabin
|
||||
var CCabin={
|
||||
"model":[
|
||||
{
|
||||
"name":"Bambu Christmas Cabin",
|
||||
"icon":"christmas_cabin.png",
|
||||
"file":"Bambu Christmas Cabin.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