pioneer/data
Gliese852 af5d52cfd9 Move the System Map to PiGUI
The main idea of the interaction of lua side and C++ side is the same as
in the worldview - the C++ View Class builds three-dimensional objects,
some projected points are passed to the lua script, the lua script only
works with screen coordinates.

The difference between the system view and the world view is that not
all objects can have a physical body. If we examine a non-current star
system, we see only system bodies that do not have physical bodies.
Therefore, if for a world view you can simply create an array of
physical bodies, this will not work in a system view.

To solve this problem, struct "Projectable" was created, into which you
can write any point object, system body, ship, Lagrange point,
apocenter, pericenter, etc. Now all these objects can be processed in a
single array.

The names of the types of these objects are recorded in an enum, which
is exported to a enum_table.cpp and read by the script as integers at
the start. I thought it was better to avoid passing strings in such a
hot place in the code. (runs for every object in every frame) Therefore,
type names are written and transmitted as integers.

All colors are now imported from lua: color index names are listed in
the enum, which is exported to the enum_table.cpp. At event
"onGameStart" the lua script reads these names and sends color values to
the class. Now you can change colors at runtime.

* Improvements/fixes: *

- Fix zooming speeds.
- Fix ship's orbits in nonroot frame.
- Remove unused old gui objects.
- Landed ship are now spinning with the planet when rewinding time in a
    planner.
- Now you can center the view on any object, including the player’s ship.
- Add right-click context menu to center or set object as target.
    Therefore, to rotate the view, set the middle button.
- Add indicators for navigation target and combat target.

* Changes in the files explained *

    SystemView.cpp, SystemView.h, system-view-ui.lua, lang/core/en.json

The whole thing, lots of changes. Now the system view draws only the
orbits and the grid. In those places where the icons were drawn, instead
of drawing, they are stored in an array, which is then requested from
the lua.

    LuaEngine.cpp

Add a general function that returns the value of an any enum by name
from an enum_table.cpp (for calling from a lua)

    Space.cpp

Added a notification for the systemview when the ship is removed from
space, because it can be centered at this time, and an segmentation
fault will occur.

    LuaSystemBody.cpp

Added attributes to determine the shape of the icon and set the
navigation target.

    enum_table.cpp, enum_table.h

Rescanned enums to pass color settings and object types between Lua and
C++.

    LuaGame.cpp

The float does not have enough accuracy to display time up to seconds,
change to double.

    icons.svg, themes/default.lua

Add rotate view icon
2020-04-04 11:56:10 +03:00
..
configs I like these Starfield settings the most for now 2020-03-12 19:00:07 +01:00
facegen update the facegen documentation 2015-11-29 19:11:12 +00:00
factions Happy new decade! 2020-01-01 10:47:46 +01:00
fonts Add HyperJump Planner to Sector Map 2018-01-17 16:34:04 -05:00
heightmaps Back port some of Marcels hometowns mod, mostly seeds and the mars.hmap 2016-04-05 22:45:55 +01:00
icons Move the System Map to PiGUI 2020-04-04 11:56:10 +03:00
lang Move the System Map to PiGUI 2020-04-04 11:56:10 +03:00
libs Significantly update commodity prices - need to be higher 2020-03-15 12:32:12 +01:00
models Removing parenting to fix camera issue 2019-01-27 16:15:54 +01:00
modules Make faces in goodstrader persistent 2020-02-23 19:07:55 +01:00
music Upgrade tracks to higher quality + 1 new 2019-09-22 11:22:19 +03:00
pigui Move the System Map to PiGUI 2020-04-04 11:56:10 +03:00
shaders/opengl Happy new decade! 2020-01-01 10:47:46 +01:00
ships Atmospheric flight (#4556) 2019-04-28 14:48:20 +01:00
sounds Add hyperdrive breakdown sound effect (#4401) 2018-09-02 12:20:11 +01:00
stations Adding the smaller station json file. Rotates a bit faster then the 5km one. 2015-06-28 18:17:13 +02:00
systems Add forgotten copyright header to pigui lua-files 2020-02-25 20:01:31 +01:00
textures Resize star_point_2.png to be power of 2 2020-03-14 10:15:46 +00:00
ui Remove newUI ModelSpinner 2020-02-28 17:22:39 -05:00
galaxy_colour.png Better colour image for galaxy (rotated to match our conventions). 2014-09-26 17:50:44 +02:00
galaxy_dense.bmp Rotate galaxy density map to match colour image (bumps savegame). 2014-09-26 17:31:09 +02:00
listdata.exclude
listdata.sh