Skip to content
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

Filename suggestion (numbers) for new layers in Pencil2D #1091

Merged
merged 4 commits into from Oct 7, 2018

Conversation

davidlamhauge
Copy link
Contributor

A function added that suggest new filenames, that differ from existing ones.
If you want a new "Bitmap Layer" and a "Bitmap Layer" exists, it will suggest "Bitmap Layer 2" as filename, and so on.

{
return s;
}
int j = 2;
Copy link
Member

@MrStevns MrStevns Oct 5, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a strict requirement but I find it to be a bad habit and generally dislike seeing one char variable names. when possible/(when you remember) please name variables something that makes sense to the context. j for example could be named "increment" and string could be named "name".

it's a small thing but it improves code readability a lot.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whether it's a bad habit, I don't know, but I tend to use bool b, String s, and int i, j and k.
Being aware that I work on a project with many contributors, I will of course try to apply to the coding style.

Copy link
Member

@MrStevns MrStevns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

I have no objections, only a small comment regarding code readability.

Good work David

@chchwy
Copy link
Member

chchwy commented Oct 7, 2018

Thank you @davidlamhauge @candyface

@chchwy chchwy merged commit 227c3d0 into pencil2d:master Oct 7, 2018
@davidlamhauge davidlamhauge deleted the filenamesuggestion branch October 9, 2018 04:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants