mirror of
				https://github.com/EndPwnArchive/EndPwn3Plugins.git
				synced 2024-08-14 23:57:06 +00:00 
			
		
		
		
	re-remove unused old func and add =null to pos
This commit is contained in:
		
							parent
							
								
									21075e78d2
								
							
						
					
					
						commit
						94240c98fb
					
				
					 1 changed files with 1 additions and 10 deletions
				
			
		| 
						 | 
					@ -24,7 +24,7 @@ exports = {
 | 
				
			||||||
            ourSections: [],
 | 
					            ourSections: [],
 | 
				
			||||||
            _callbacks: {},
 | 
					            _callbacks: {},
 | 
				
			||||||
            _panels: {},
 | 
					            _panels: {},
 | 
				
			||||||
            addSection: function(name,label,color=null,callback,pos){
 | 
					            addSection: function(name,label,color=null,callback,pos=null){
 | 
				
			||||||
                let data = {};
 | 
					                let data = {};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                data.section = name || `SAPI_${Math.floor(Math.random()*10000)}`;
 | 
					                data.section = name || `SAPI_${Math.floor(Math.random()*10000)}`;
 | 
				
			||||||
| 
						 | 
					@ -44,15 +44,6 @@ exports = {
 | 
				
			||||||
                $settingsapi.ourSections.push({section:"HEADER",label:label});
 | 
					                $settingsapi.ourSections.push({section:"HEADER",label:label});
 | 
				
			||||||
                $settingsapi.sections.splice(pos ? pos : $settingsapi.sections.length-4,0,{section:"HEADER",label:label});
 | 
					                $settingsapi.sections.splice(pos ? pos : $settingsapi.sections.length-4,0,{section:"HEADER",label:label});
 | 
				
			||||||
            },
 | 
					            },
 | 
				
			||||||
            exportSections: function(){
 | 
					 | 
				
			||||||
                let out = "";
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
                for(i in $settingsapi._sections){
 | 
					 | 
				
			||||||
                    out = out + convertToText($settingsapi._sections[i]);
 | 
					 | 
				
			||||||
                }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
                return out;
 | 
					 | 
				
			||||||
            },
 | 
					 | 
				
			||||||
            //All of these allow us to use Discord's elements.
 | 
					            //All of these allow us to use Discord's elements.
 | 
				
			||||||
            elements: {
 | 
					            elements: {
 | 
				
			||||||
                createVerticalPanel: function() {
 | 
					                createVerticalPanel: function() {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue