View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0006325||The Dark Mod||General||public||07.10.2023 17:30||17.11.2023 22:45|
|OS||Windows 10 Home|
|Fixed in Version||TDM 2.12|
|Summary||0006325: Text entity - should include necessary args by default; have to manually create|
|Description||The info\text entity creates without necessary args forcing manual creation of args.|
These are not showing even if "show inherited properties" is selected.
- text : this is the reason for creating a Text entity and should not be missing by default. I request it be present with default text, too, so it is easy to search in the .map text.
- force : include this but default to 0
- playerOriented - include this but default to 0
|Steps To Reproduce||Create an info\text entity in a map in Dark Radiant.|
Attempt to set the Text arg in the entity properties, notice it is missing.
Lament and weep that it is missing. Or manually create the text arg without drama. I dunno.... you do you!
Also notice that force and playerOriented would be useful if present but defaulted to 0.
|Tags||No tags attached.|
|While this is not an unreasonable request, note that we currently don't create "default spawnargs" for ANY entity created via the Entity Chooser, beyond the classname/name/origin which are required for all entities. DarkRadiant has no way to know what the purpose of an arbitrary entity class is, and what spawnargs might be useful to set by default, so in order to implement this we would need a mechanism for this information to be provided by the game data. Some new "editor_whatever" spawnargs might be suitable for this purpose, e.g. "editor_defaultprop text" "Initial text".|
|Actually, there's a TDM spawnarg which is respected by DarkRadiant: it's "editor_setKeyValue", but it has to be added to the entityDef to work:|
|Oh that is useful. I guess this issue needs to be migrated to the Dark Mod subproject then (if that's even possible in Mantis), so the necessary spawnargs can be added to the entityDef.|
Added missing default spawnargs as described in the bug report. Used editor_setKeyValue for "text" so that it prominently shows up in the entity inspector as soon as the entity created, while the other 2 spawnargs are shown only under inherited properties with a default value of 0 (this is what getBool in the code should default to if a spawnarg is missing, as has been the case until now).
|07.10.2023 17:30||cvlw||New Issue|
|07.10.2023 17:30||cvlw||File Added: TextMissingArgs001.jpg|
|11.10.2023 19:04||orbweaver||Severity||minor => feature|
|11.10.2023 19:14||orbweaver||Note Added: 0016125|
|28.10.2023 04:36||greebo||Note Added: 0016150|
|28.10.2023 04:36||greebo||File Added: grafik.png|
|01.11.2023 20:06||orbweaver||Note Added: 0016159|
|17.11.2023 07:43||greebo||Project||DarkRadiant => The Dark Mod|
|17.11.2023 22:45||Dragofer||Assigned To||=> Dragofer|
|17.11.2023 22:45||Dragofer||Status||new => resolved|
|17.11.2023 22:45||Dragofer||Resolution||open => fixed|
|17.11.2023 22:45||Dragofer||Fixed in Version||=> TDM 2.12|
|17.11.2023 22:45||Dragofer||Note Added: 0016178|