projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
b718d3d
)
changed showing standard element properties for some engines in editor
author
Holger Schemel
<info@artsoft.org>
Fri, 26 Apr 2024 10:15:17 +0000
(12:15 +0200)
committer
Holger Schemel
<info@artsoft.org>
Fri, 26 Apr 2024 10:17:10 +0000
(12:17 +0200)
src/editor.c
patch
|
blob
|
history
diff --git
a/src/editor.c
b/src/editor.c
index b3304f7befcbc15ad8ba4f598b80937dcee33189..f21d086ea693aa6a9225d11f7c9eb4c787d2a0ae 100644
(file)
--- a/
src/editor.c
+++ b/
src/editor.c
@@
-11983,33
+11983,38
@@
static void DrawPropertiesInfo(void)
ypos += 2 * MAX(font1_height, font2_height);
ypos += 2 * MAX(font1_height, font2_height);
- // ----- print standard properties of this element
+ // ----- print standard properties of this element
(only for certain game engines)
- DrawTextS(xpos, ypos, font1_nr, properties_text);
+ if (level.game_engine_type == GAME_ENGINE_TYPE_RND ||
+ level.game_engine_type == GAME_ENGINE_TYPE_EM ||
+ level.game_engine_type == GAME_ENGINE_TYPE_SP)
+ {
+ DrawTextS(xpos, ypos, font1_nr, properties_text);
- ypos += line1_height;
+
ypos += line1_height;
- for (i = 0; properties[i].value != -1; i++)
- {
- if (!HAS_PROPERTY(properties_element, properties[i].value))
- continue;
+
for (i = 0; properties[i].value != -1; i++)
+
{
+
if (!HAS_PROPERTY(properties_element, properties[i].value))
+
continue;
- DrawTextS(xpos, ypos, font2_nr, properties[i].text);
+
DrawTextS(xpos, ypos, font2_nr, properties[i].text);
- ypos += font2_height;
+
ypos += font2_height;
- num_standard_properties++;
- }
+
num_standard_properties++;
+
}
- if (num_standard_properties == 0)
- {
- DrawTextS(xpos + properties_text_len, ypos - line1_height + font2_yoffset,
- font2_nr, none_text);
+
if (num_standard_properties == 0)
+
{
+
DrawTextS(xpos + properties_text_len, ypos - line1_height + font2_yoffset,
+
font2_nr, none_text);
- ypos -= (line1_height - font1_height);
- }
+
ypos -= (line1_height - font1_height);
+
}
- ypos += MAX(font1_height, font2_height);
+ ypos += MAX(font1_height, font2_height);
+ }
// ----- print special description of this element
// ----- print special description of this element