Swap "auto" mode to first place (Space+1) and "manual" to Space+2

This commit is contained in:
David Capello 2020-10-26 17:58:01 -03:00
parent 4db4e77c78
commit 2d0227e8b2
3 changed files with 6 additions and 6 deletions

View File

@ -144,10 +144,10 @@
</key>
<key command="ToggleTilesMode" shortcut="Space+Tab" />
<key command="TilesetMode" shortcut="Space+1">
<param name="mode" value="manual" />
<param name="mode" value="auto" />
</key>
<key command="TilesetMode" shortcut="Space+2">
<param name="mode" value="auto" />
<param name="mode" value="manual" />
</key>
<key command="TilesetMode" shortcut="Space+3">
<param name="mode" value="stack" />

View File

@ -13,8 +13,8 @@ namespace app {
// These modes are available edition modes for the tileset when an
// tilemap is edited.
enum class TilesetMode {
Manual, // Modify existent tiles (don't create new ones)
Auto, // Add/remove tiles automatically when needed
Manual, // Modify existent tiles (don't create new ones)
Stack, // Stack modified tiles as new ones
};

View File

@ -187,12 +187,12 @@ ColorBar::ColorBar(int align, TooltipManager* tooltipManager)
m_buttons.addItem(theme->parts.palOptions());
m_tilesButton.addItem(theme->parts.tiles());
static_assert(0 == int(TilesetMode::Manual) &&
1 == int(TilesetMode::Auto) &&
static_assert(0 == int(TilesetMode::Auto) &&
1 == int(TilesetMode::Manual) &&
2 == int(TilesetMode::Stack), "Tileset mode buttons doesn't match TilesetMode enum values");
m_tilesetModeButtons.addItem(theme->parts.tilesManual());
m_tilesetModeButtons.addItem(theme->parts.tilesAuto());
m_tilesetModeButtons.addItem(theme->parts.tilesManual());
m_tilesetModeButtons.addItem(theme->parts.tilesStack());
setTilesetMode(m_tilesetMode);