Ticket #685 (new enhancement)

Opened 3 years ago

Last modified 21 months ago

ObjectEdit needs to be splitted up

Reported by: chewie Owned by: chewie
Priority: normal Milestone: 0.3.7
Component: tools/editor Version: trunk
Severity: normal Keywords: refactoring, plugin, object, ObjectEdit, animation viewer, instance, highlight
Cc: Blocked By:
Blocking: Time planned:
Time remaining: Time spent:

Description

The ObjectEdit? plugin is too bloated ATM. It should be split up into several minor plugins like:

  • highlight selected instance(s)
  • animation viewer
  • instance editor (e.g. instance id; NOTE: most of instance properties have to be stored / organised by the clients game data structure, so we only provide a mini plugin here)
  • object editor (e.g. blocking properties)

Change History

comment:1 Changed 3 years ago by chewie

  • Owner changed from FIFE to chewie
  • Reporter changed from anonymous to chewie

comment:2 Changed 3 years ago by chewie

(In [3907]) - added InstanceHighlighter? plugin

  • selected instances will now get a color overlay (can be switched to outline in the plugin code)
  • removed instance highlighting from ObjectEdit? plugin
  • added docking status saving to ToolBar? widget class, added default docking settings for Toolbox
  • re-arranged init order in MainWindow?.initGui() to make dockareas available for ToolBar?
  • small change to screenshot icon to give it a bit more space on the left

related to refs #685

comment:3 Changed 3 years ago by chewie

(In [3910]) - re-enabled saving for ObjectEdit? plugin

  • implemented XMLObjectSaver which allows serialization of a fife.Object
    • NOTE: only well-formed xml files are accepted
    • NOTE: provides a compat-mode to scan for <object> tree roots, but also uses new <asset> tree root
  • added namespace sorting to ObjectSelector?

related to refs #685

comment:4 Changed 3 years ago by chewie

(In [3917]) - refactored ObjectEdit?

  • removed AnimationViewer? component
  • added new cell cost & cost id property (not loaded by trunk/ loaders)
  • added cellstackposition property (not loaded by trunk/ loaders)
  • plugin now also saves it's docking status in the editor settings file
  • objects selected in the ObjectSelector? now also update the ObjectEdit? plugin
  • removed all instance related options
  • the plugin does however use the selected instance (if present) to show e.g. selected actions or rotations (not working for animated instances yet, as those need a facing location and don't react on instance.setRotation())
  • image offset of animated objects can now be editted - the plugin applies the new offset to all animation frames
  • saving animation image offsets does not work however (we need to migrate to new XML structure first)
  • small fix for InstanceHighlighter? (deselects previous highlighted instances on new selections)
  • small fix for ObjectSelector? - moved signal for onObjectSelector elsewhere (!= to Elsweyr ;-))
  • adjusted XMLObjectSaver to also save new object properties

related to , refs #685

comment:5 Changed 3 years ago by prock

(In [3919]) * Added InstanceHighlighter? to settings-dist for the editor. It is now enabled by default. refs #685

comment:6 Changed 21 months ago by prock

  • Milestone changed from Proposal to 0.3.7
Note: See TracTickets for help on using tickets.