Skip to content

Clean up palette import#16601

Merged
Gymnasiast merged 1 commit into
OpenRCT2:developfrom
Gymnasiast:refactor/palette-import
Feb 7, 2022
Merged

Clean up palette import#16601
Gymnasiast merged 1 commit into
OpenRCT2:developfrom
Gymnasiast:refactor/palette-import

Conversation

@Gymnasiast

Copy link
Copy Markdown
Member

This cleans up palette handling in sprite import and makes it much easier to add more (especially the green one that every other tool uses).

@Gymnasiast Gymnasiast mentioned this pull request Feb 6, 2022
12 tasks
@Gymnasiast Gymnasiast force-pushed the refactor/palette-import branch from c85cd79 to 01db530 Compare February 6, 2022 19:36
Comment thread src/openrct2/drawing/ImageImporter.h Outdated
@Gymnasiast Gymnasiast force-pushed the refactor/palette-import branch from 01db530 to 4d6f7e3 Compare February 7, 2022 17:47
@Gymnasiast Gymnasiast merged commit 1062c3d into OpenRCT2:develop Feb 7, 2022
@Gymnasiast Gymnasiast deleted the refactor/palette-import branch February 7, 2022 18:34
@Gymnasiast Gymnasiast added this to the v0.4.0 milestone Feb 7, 2022
Comment on lines +47 to +51
enum class PALETTE : uint8_t
{
OPENRCT2,
KEEP_INDICES,
};

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is not our coding style, we usually do

enum class MyEnum : uint32_t
{
    First = 1,
    Second,
    Third,
    Count,
}

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I will address that in another PR and also do the other enums for the image importer.

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.

3 participants