mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 21:06:59 -04:00
Symbol editor now has constraints on selection, but part list allows selection inside groups.
Added logical 'xor' operator for scripting. git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@534 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -28,7 +28,7 @@ SymbolBasicShapeEditor::SymbolBasicShapeEditor(SymbolControl* control)
|
||||
|
||||
void SymbolBasicShapeEditor::draw(DC& dc) {
|
||||
// highlight the part we are drawing
|
||||
if (drawing) {
|
||||
if (shape) {
|
||||
control.highlightPart(dc, *shape, HIGHLIGHT_BORDER);
|
||||
}
|
||||
}
|
||||
@@ -64,6 +64,7 @@ void SymbolBasicShapeEditor::destroyUI(wxToolBar* tb, wxMenuBar* mb) {
|
||||
delete sides;
|
||||
delete sidesL;
|
||||
#endif
|
||||
stopActions(); // set status text
|
||||
}
|
||||
|
||||
void SymbolBasicShapeEditor::onUpdateUI(wxUpdateUIEvent& ev) {
|
||||
@@ -80,6 +81,7 @@ void SymbolBasicShapeEditor::onCommand(int id) {
|
||||
if (id >= ID_SHAPE && id < ID_SHAPE_MAX) {
|
||||
// change shape mode
|
||||
mode = id;
|
||||
stopActions();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user