projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce7a1e6
)
fixed toolbox gadgets on properties page after test game in level editor
author
Holger Schemel
<info@artsoft.org>
Sat, 1 Apr 2023 10:10:13 +0000
(12:10 +0200)
committer
Holger Schemel
<info@artsoft.org>
Sat, 1 Apr 2023 10:10:13 +0000
(12:10 +0200)
src/editor.c
patch
|
blob
|
history
diff --git
a/src/editor.c
b/src/editor.c
index edd8b12f224f50c3dc0f07097b0ccd34bd6d2c94..a3ab4c4c3e9abfafcba5aea076ec3c7557f14863 100644
(file)
--- a/
src/editor.c
+++ b/
src/editor.c
@@
-8805,6
+8805,15
@@
static void DrawEditorDoorContent(void)
// draw all toolbox gadgets to editor doors
MapControlButtons();
+ // when returning from test game to properties page, redraw toolbox gadgets
+ if (edit_mode == ED_MODE_PROPERTIES)
+ {
+ UnmapLevelEditorToolboxDrawingGadgets();
+ UnmapLevelEditorToolboxCustomGadgets();
+
+ MapLevelEditorToolboxCustomGadgetsIfNeeded();
+ }
+
// draw all palette gadgets to editor doors
ModifyEditorElementList();
RedrawDrawingElements();