mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-29 00:23:48 +00:00
Swap "auto" mode to first place (Space+1) and "manual" to Space+2
This commit is contained in:
parent
4db4e77c78
commit
2d0227e8b2
@ -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" />
|
||||
|
@ -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
|
||||
};
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user