-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New plugin: Bunch o' Screenshots #522
base: master
Are you sure you want to change the base?
Conversation
idk, everything uploaded? lol
fixed indentation and (old data) for bunch_o_screenshots
} | ||
|
||
// When updating, apply meta data changes to plugins.json entry! | ||
BBPlugin.register("plugin", { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please ensure ID consistency. The plugin directory currently has a different ID compared to the one specified in plugins.json, and the name here plus the file name is just "plugin" when it should be the proper plugin ID.
Settings.openDialog(); | ||
Settings.dialog.close(0); | ||
BosSettings["BoSoutputDirectory"].set(fallbackDirectory); | ||
Blockbench.showMessageBox({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This error message seems to pop up when first installing the plugin.
const projectName = Project | ||
? Project.name.replace(/\.geo$/, "") | ||
: "screenshot"; | ||
savePath = `${currentSettings.outputDirectory}\\${projectName}.png`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The backslash for file paths is only going to work on Windows. Please use the character that works for the respective system. You can use the NodeJS path module (PathModule
) to make this easier and more reliable.
type: "click", | ||
click: function () { | ||
let dialog = new Dialog({ | ||
title: "WIP", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This does not seem to do anything, you should comment it out.
if (BosSettings == null) { | ||
doLog("create settings"); | ||
BosSettings = { | ||
BoSdevMode: new Setting("BoSdevMode", { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can just spell out names with spaces in between, no need to cram it all into one word.
Fixed previous issues and conflicting change, hope this works now :)