Improve ship design handling in the design window.
Posted: Fri May 26, 2017 7:56 pm
I've posted a PR #1587
with improvements to the ship design handling of the design window.
It allows saved designs to be manipulated, saved, deleted, drag dropped, added
to the finished designs individually or as a group at any time or automatically
at game start.
It allows the finished designs to be made obsolete or restored over the course
of the game. Obsolete designs don't appear in the production window, but still
appear in the design window.
I'll provide details of the changes and then an image at the bottom of the post.
In detail the changes to the saved designs are:
- saving of the designs automatically chooses filenames in the shipdesigns
directory without requesting a file name for each ship and breaking immersion.
- saved designs can be dragged and dropped to reorder them. The order will
persist in new games
- saved designs can be deleted
- saved designs can be edited by dragging them to the bench or doubling clicking
them
- new saved designs can be added directly when editing an existing saved design
- ctrl-clicking a saved design adds it to the empire's finished designs
- there is an option, "Add All Saved Ship Designs at Game Start" to add all
saved designs to the empire at game start. (This is a bug fix and it now
works even if the design window is not opened.) This option can be changed in
the options window or in the right click context menu for any saved design.
In detail the changes to the finished designs are:
- finished designs can now be available, unavailable or obsolete. Obsolete
designs have been removed from the empire everywhere except the design window.
They will not appear in the production window.
- obsolete and unavailable designs appear desaturated with a popup indicating
if they are obsolete or unavailable
- designs can be made obsolete/unobsolete from the right click context menu or
by ctrl-clicking.
- designs can be deleted from the right-click context menu. Deleted designs
can't be restored.
- there is an option "Add All Default Ship Designs at Game Start" to add/not add
the default designs to the empire at game start. This option can be changed
in the options window or from the right-click context menu of any finished
design.
Because of the added state, obsolete, an additional toggle button Obsolete is
added to the Availabilities filer. The button shows/hides obsolete designs.
p.s. Scripter bonus #1 It you copy the default/scripting/ship_designs into your
saved designs directory then you can edit the default designs and their
ordering. Copying it back to its original location will use the new
designs and ordering as the default ship designs.
p.p.s. Scripter bonus #2: It works with monsters too. Monsters dragged to the
bench from the saved designs will be editable.
with improvements to the ship design handling of the design window.
It allows saved designs to be manipulated, saved, deleted, drag dropped, added
to the finished designs individually or as a group at any time or automatically
at game start.
It allows the finished designs to be made obsolete or restored over the course
of the game. Obsolete designs don't appear in the production window, but still
appear in the design window.
I'll provide details of the changes and then an image at the bottom of the post.
In detail the changes to the saved designs are:
- saving of the designs automatically chooses filenames in the shipdesigns
directory without requesting a file name for each ship and breaking immersion.
- saved designs can be dragged and dropped to reorder them. The order will
persist in new games
- saved designs can be deleted
- saved designs can be edited by dragging them to the bench or doubling clicking
them
- new saved designs can be added directly when editing an existing saved design
- ctrl-clicking a saved design adds it to the empire's finished designs
- there is an option, "Add All Saved Ship Designs at Game Start" to add all
saved designs to the empire at game start. (This is a bug fix and it now
works even if the design window is not opened.) This option can be changed in
the options window or in the right click context menu for any saved design.
In detail the changes to the finished designs are:
- finished designs can now be available, unavailable or obsolete. Obsolete
designs have been removed from the empire everywhere except the design window.
They will not appear in the production window.
- obsolete and unavailable designs appear desaturated with a popup indicating
if they are obsolete or unavailable
- designs can be made obsolete/unobsolete from the right click context menu or
by ctrl-clicking.
- designs can be deleted from the right-click context menu. Deleted designs
can't be restored.
- there is an option "Add All Default Ship Designs at Game Start" to add/not add
the default designs to the empire at game start. This option can be changed
in the options window or from the right-click context menu of any finished
design.
Because of the added state, obsolete, an additional toggle button Obsolete is
added to the Availabilities filer. The button shows/hides obsolete designs.
p.s. Scripter bonus #1 It you copy the default/scripting/ship_designs into your
saved designs directory then you can edit the default designs and their
ordering. Copying it back to its original location will use the new
designs and ordering as the default ship designs.
p.p.s. Scripter bonus #2: It works with monsters too. Monsters dragged to the
bench from the saved designs will be editable.