mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-03 16:20:20 +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>
|
||||||
<key command="ToggleTilesMode" shortcut="Space+Tab" />
|
<key command="ToggleTilesMode" shortcut="Space+Tab" />
|
||||||
<key command="TilesetMode" shortcut="Space+1">
|
<key command="TilesetMode" shortcut="Space+1">
|
||||||
<param name="mode" value="manual" />
|
<param name="mode" value="auto" />
|
||||||
</key>
|
</key>
|
||||||
<key command="TilesetMode" shortcut="Space+2">
|
<key command="TilesetMode" shortcut="Space+2">
|
||||||
<param name="mode" value="auto" />
|
<param name="mode" value="manual" />
|
||||||
</key>
|
</key>
|
||||||
<key command="TilesetMode" shortcut="Space+3">
|
<key command="TilesetMode" shortcut="Space+3">
|
||||||
<param name="mode" value="stack" />
|
<param name="mode" value="stack" />
|
||||||
|
@ -13,8 +13,8 @@ namespace app {
|
|||||||
// These modes are available edition modes for the tileset when an
|
// These modes are available edition modes for the tileset when an
|
||||||
// tilemap is edited.
|
// tilemap is edited.
|
||||||
enum class TilesetMode {
|
enum class TilesetMode {
|
||||||
Manual, // Modify existent tiles (don't create new ones)
|
|
||||||
Auto, // Add/remove tiles automatically when needed
|
Auto, // Add/remove tiles automatically when needed
|
||||||
|
Manual, // Modify existent tiles (don't create new ones)
|
||||||
Stack, // Stack modified tiles as 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_buttons.addItem(theme->parts.palOptions());
|
||||||
m_tilesButton.addItem(theme->parts.tiles());
|
m_tilesButton.addItem(theme->parts.tiles());
|
||||||
|
|
||||||
static_assert(0 == int(TilesetMode::Manual) &&
|
static_assert(0 == int(TilesetMode::Auto) &&
|
||||||
1 == int(TilesetMode::Auto) &&
|
1 == int(TilesetMode::Manual) &&
|
||||||
2 == int(TilesetMode::Stack), "Tileset mode buttons doesn't match TilesetMode enum values");
|
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.tilesAuto());
|
||||||
|
m_tilesetModeButtons.addItem(theme->parts.tilesManual());
|
||||||
m_tilesetModeButtons.addItem(theme->parts.tilesStack());
|
m_tilesetModeButtons.addItem(theme->parts.tilesStack());
|
||||||
setTilesetMode(m_tilesetMode);
|
setTilesetMode(m_tilesetMode);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user