mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Issue #293: remove unused user settings
This commit is contained in:
parent
fae04f3616
commit
c8fa83462a
@ -10,12 +10,11 @@
|
|||||||
pskl.utils.inherit(ns.MiscExportController, pskl.controller.settings.AbstractSettingController);
|
pskl.utils.inherit(ns.MiscExportController, pskl.controller.settings.AbstractSettingController);
|
||||||
|
|
||||||
ns.MiscExportController.prototype.init = function () {
|
ns.MiscExportController.prototype.init = function () {
|
||||||
|
var cDownloadButton = document.querySelector('.c-download-button');
|
||||||
var downloadButton = document.querySelector('.c-download-button');
|
this.addEventListener(cDownloadButton, 'click', this.onDownloadCFileClick_);
|
||||||
this.addEventListener(downloadButton, 'click', this.onCDownloadButtonClick_);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
ns.MiscExportController.prototype.onCDownloadButtonClick_ = function (evt) {
|
ns.MiscExportController.prototype.onDownloadCFileClick_ = function (evt) {
|
||||||
var fileName = this.getPiskelName_() + '.c';
|
var fileName = this.getPiskelName_() + '.c';
|
||||||
var cName = this.getPiskelName_().replace(' ','_');
|
var cName = this.getPiskelName_().replace(' ','_');
|
||||||
var width = this.piskelController.getWidth();
|
var width = this.piskelController.getWidth();
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
ONION_SKIN : 'ONION_SKIN',
|
ONION_SKIN : 'ONION_SKIN',
|
||||||
LAYER_PREVIEW : 'LAYER_PREVIEW',
|
LAYER_PREVIEW : 'LAYER_PREVIEW',
|
||||||
LAYER_OPACITY : 'LAYER_OPACITY',
|
LAYER_OPACITY : 'LAYER_OPACITY',
|
||||||
EXPORT_PNG_BEST_FIT: 'EXPORT_PNG_BEST_FIT',
|
|
||||||
EXPORT_PNG_POWER_TWO: 'EXPORT_PNG_POWER_TWO',
|
EXPORT_PNG_POWER_TWO: 'EXPORT_PNG_POWER_TWO',
|
||||||
EXPORT_SCALE: 'EXPORT_SCALE',
|
EXPORT_SCALE: 'EXPORT_SCALE',
|
||||||
EXPORT_TAB: 'EXPORT_TAB',
|
EXPORT_TAB: 'EXPORT_TAB',
|
||||||
@ -32,7 +31,6 @@
|
|||||||
'ONION_SKIN' : false,
|
'ONION_SKIN' : false,
|
||||||
'LAYER_OPACITY' : 0.2,
|
'LAYER_OPACITY' : 0.2,
|
||||||
'LAYER_PREVIEW' : true,
|
'LAYER_PREVIEW' : true,
|
||||||
'EXPORT_PNG_BEST_FIT' : false,
|
|
||||||
'EXPORT_PNG_POWER_TWO' : false,
|
'EXPORT_PNG_POWER_TWO' : false,
|
||||||
'EXPORT_SCALE' : 1,
|
'EXPORT_SCALE' : 1,
|
||||||
'EXPORT_TAB' : 'gif',
|
'EXPORT_TAB' : 'gif',
|
||||||
|
Loading…
Reference in New Issue
Block a user