Show popup menu on "Play" buttons with Ctrl+click

This commit is contained in:
David Capello 2016-08-13 13:35:35 -03:00
parent 3a4251a9a4
commit d7f2155adb
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,5 @@
// Aseprite
// Copyright (C) 2001-2015 David Capello
// Copyright (C) 2001-2016 David Capello
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
@ -82,6 +82,8 @@ AniControls::AniControls()
addChild(tooltips);
for (int i=0; i<ACTIONS; ++i)
tooltips->addTooltipFor(getItem(i), getTooltipFor(i), BOTTOM);
getItem(ACTION_PLAY)->enableFlags(CTRL_RIGHT_CLICK);
}
void AniControls::updateUsingEditor(Editor* editor)

View File

@ -94,6 +94,7 @@ public:
SkinPartPtr(nullptr),
SkinPartPtr(nullptr))
, m_isPlaying(false) {
enableFlags(CTRL_RIGHT_CLICK);
setupIcons();
setup_bevels(this, 0, 0, 0, 0);
setDecorative(true);