Commit Graph

19490 Commits (master)

Author SHA1 Message Date
Webster Sheets b054832aa0 Scale gauges with window resolution 2020-12-21 23:40:33 -05:00
Taylor Talkington 84ecd807cc Fixup VS Solution for added and removed files
Added
 - src/TransferPlanner.cpp
 - src/TransferPlanner.h
 - src/pigui/LuaRadar.cpp
 - src/pigui/Radar.cpp
 - src/pigui/Radar.h

Removed
 - src/ShipCpanel.cpp
 - src/ShipCpanel.h
 - src/ShipCpanelMultiFuncDisplays.cpp
 - src/ShipCpanelMultiFuncDisplays.h
2020-12-21 23:40:33 -05:00
Webster Sheets f708225c03 Remove CPanel and oldUI radar 2020-12-21 23:40:33 -05:00
Webster Sheets d181a8e2f9 Port planar radar to pigui 2020-12-21 23:40:33 -05:00
Webster Sheets f8c91ade0b Port NavTunnel widget to pigui 2020-12-21 23:40:33 -05:00
Webster Sheets b480e22c36 Refactor screen projection functions
Fixes issues with directions being projected as positions.
Clean up several now-unused functions.
Move screen projection functions from Body to Engine where they belong.
2020-12-21 23:40:33 -05:00
Karl F e0a83756e4 Swap alternative names for Alpha Centauri <--> Toliman 2020-12-21 17:48:58 -05:00
Karl F b617c51c92 Make use of system's alternate names, as original author intended 2020-12-21 17:48:58 -05:00
Taylor Talkington 72a9e320fe Add GitHub Action for building VS 2019 Solution 2020-12-21 04:19:52 -05:00
Webster Sheets 25688d06b6 Significantly slash savefile sizes
This change drops the average savefile from 2MB to 500KB.
We're smarter about what data we actually need to serialize -
MatrixTransform is only ever positioned by animations, and we don't
(yet) need to know about every space station market in the system at once.
2020-12-19 15:25:47 -05:00
Gliese852 3b76572336 Remove SetDepthRange calls from SectorView.cpp
This function was used to prevent the indicators from overlapping the
stars, Now they just move a little beyond the stars.
2020-12-19 15:22:52 -05:00
Karl F 705525b8a0 Show import/export in commodity description in commodity market
This should maybe be shown in a separate column, and could be placed better,
but it's a start.
2020-12-19 15:22:29 -05:00
Karl F d64f923565 Change limit for minor import/export
Economy widget in system-econ-view.lua, shown in sector view, changed
price alteration threshold for showing icon for minor import/export from
 +/- 2 to +/- 4. This changes space station (amount in stock), and
what trader ships haul.
2020-12-19 15:22:29 -05:00
gunchleoc c31548557e
Scottish placename revision (#5052)
- Some linguistic fixes for world names

- Fix spelling error in Portuguese placename
- Use Scotttish Gaelic spelling for Scotttish Gaelic placenames
- Replace invented placenames with ones that work in scottish
- Carndow was a duplicate, so I replaced one of those with a new name
- More Norn & Scots for linguistic consistency
- Shift Edinburgh

Co-authored-by: gunchleoc <fios@foramnagaidhlog.net>
2020-12-19 04:50:27 -05:00
Karl F 14cc922c81 Update changelog 2020-12-19 09:51:24 +01:00
Karl F bd46f74670 New BBS advert, offering double price on sold out commodity
If there are any commodities that are sold out (e.g. major imports),
then 50% chance of generating a BBS advert with buyer offering twice
the price, for some fixed amount of the commodity.
2020-12-19 09:48:10 +01:00
Taylor Talkington 334990c70f Fix copying dlls to install folder for windows install target 2020-12-16 07:03:18 -05:00
Taylor Talkington 58ddd30812 Trigger Build Pioneer github action on pushes to master
Trigger build on any push to master
Re-enable cmake 'install' messages since github actions separates the build process out.
2020-12-16 07:03:18 -05:00
Gliese852 775bb689a9
Fix SIGSEGV on switch to system map after HJ (#5077)
If you turn on the ships in the system map, turn off the system map and
jump into another system, then pointers to the ships from the previous
system remain in m_projectables, which cause the a segfault. Now clear
this when switching from view.
2020-12-15 12:17:06 -05:00
gunchleoc d3c991566d
Localize header strings on ship information screen (#5063)
* Fix header translations on ship information screen
2020-12-15 11:50:44 -05:00
Karl F 372df708e8 Let Cranks suggest how much player donates, based on reputation
There is currently no way the player to know:
1. How close they are to next jump in reputation status, nor,
2. Difference between the donation causes (some are more cranks than others)

With this, each donation indicates how much money is needed to gain next level
of reputation. Thus, it still obscures directly knowing reputation points and
the "force multiplier" factor for the particular donation cause on reputation.
2020-12-14 23:45:01 -05:00
Karl F c8f383e3a6 Donate to crank message user inside advert, instead of comms
The comms that was used before, is rendered to world view,
so messages there are not seen. Update message in chat box instead
2020-12-14 23:45:01 -05:00
Karl F 0a0558dd08 Make crank face persistent at least for the current BBS spawn
New pigui chat-form did not support explicitly setting seed, giving new face
every time the advert is clicked.
2020-12-14 23:45:01 -05:00
Karl F e4ec09b1a1 Reduce probability for imported goods to be sold out
In general: Just because something is imported, doesn't mean it will be sold
out, rather that depends on demand exceeding supply (which can happen for
imported and exported products).

For the likelihood of outcome computed from the probability distribution,
consider: although it is uniform, shifting it one unit left/right gives
no-uniform change in likelihood, since the distribution not uniform.
2020-12-14 16:55:58 -05:00
Karl F a8220d8dbb Changelog not updated in a long while 2020-12-13 08:49:56 +01:00
Karl F 02b9e64c6f Clarify tooltip to reduce confusion
Moving rotation from RMB to MMB throws player off balance at first
exposure. The rotate button has also proven to be un-intuitive, based on
player feedback. Hope this helps, if even a minuscule bit.
2020-12-13 08:08:31 +01:00
Karl F f371fcac08 Fix equipment market widget not updating stock properly
1. The third argument to bought/sold wasn't passed correctly, instead the nil
valued member variable was used

2. When selling/buying from ship equipment market, it defaulted to -1 units,
should be 1.

Closes #5071
2020-12-12 17:05:45 -05:00
Webster Sheets 013721f405 Draw space background in SystemView
- Steal the current space's background object; ideally SystemView should have its own copy it generates for systems
- Don't draw stars sourced from the current system's position when looking at other systems
- The background system in general doesn't respect the plane of the ecliptic vs the galactic plane.
  This is a problem that affects WorldView as well as the SystemView
2020-12-11 17:42:16 -05:00
Webster Sheets 365476dfe3 Move TransferPlanner to its own file 2020-12-11 17:42:16 -05:00
WKFO 0b8bcd3047 Fix ambient music looping 2020-12-10 20:54:31 -05:00
Gliese852 5b1e62e978 Show surface starports in the system map 2020-12-10 18:04:03 -05:00
Andrew Copland 6f1e8e6c99
Optimise route rendering (#5033)
* Build all of the lines into a single buffer once, render as necessary and offset using the transform

* Added an optimisation during sector selection to reduce the number of sectors generated. Reserving the size of some vectors.

* Stupid formatting

* DistanceBetweenSqr to avoid sqrts

* Avoid more square roots and reserve the nodes array size with a guess at it's required capacity
2020-12-10 16:42:13 -05:00
Paul Cercueil 7ee5805c3f CMake: Fix modelcompiler not compiling anything
When models are installed on the system, the modelcompiler would use
these instead of the local ones found in the "data" folder. However,
the *.model files are not installed on the system, so the
modelcompiler would end up not compiling anything.

Fix this by returning only the local "data" folder files in
FileSystemPosix.cpp if the PIONEER_LOCAL_DATA_ONLY environment variable
is set, and set this environment variable in CMake when the
modelcompiler is called.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
2020-12-10 15:24:07 -05:00
taylor.talkington@gmail.com 159e9ea095 Add MSVC build to github action builds 2020-12-10 15:22:50 -05:00
gunchleoc ca1ad55661
Fix grammar in translations for N_WHATEVER* strings (#5053)
* Fix grammar in translations for N_WHATEVER* strings

* Delete unused EARTH and SOLAR translation keys + fix a spelling mistake
2020-12-10 00:48:27 -05:00
Karl F 033dd713c6 Fix #5044 - 'width' sometimes int sometimes bool 2020-12-09 19:09:29 +01:00
Taylor Talkington bf9c3d0fbc Remove newui sources and projects from VS 2019 build 2020-12-08 10:30:05 -05:00
Pioneer Transifex 2132b52a3d auto-commit: translation updates 2020-12-08 03:01:35 +01:00
Pioneer Transifex c5e8502ddf auto-commit: translation updates 2020-12-07 03:01:44 +01:00
Karl F 6a84836b68 Nuke the nukes - be consistent and call it 'radioactive waste'
Replace "nuclear waste" with "radioactive waste". Keep one mention of
"nuclear" as in "Created by nuclear reactors, and military hyperdrives"

Closes #5054
2020-12-06 09:39:02 -05:00
Pioneer Transifex fbe7122ece auto-commit: translation updates 2020-12-06 03:01:26 +01:00
Gliese852 a0266d4626 Add IncrementDrag widget
With its help, you can precisely select the amount of something, either
by clicking and moving the mouse, or by clicking on the arrows, or by
entering from the keyboard.
2020-12-05 16:07:51 -05:00
Pioneer Transifex d60cc47387 auto-commit: translation updates 2020-12-05 03:01:15 +01:00
Webster Sheets 0e2aaa1220 Use new body icons for world+overview
- Minor tweaks to icons.svg
- Change population generation of stations and starports to get usable data
- Refactor ui.registerModule to support reloading
- Add helper function to vertically center text on long (e.g. icon) lines
2020-12-04 19:08:54 -05:00
GunChleoc 2a6956e35f Fix unused variables in release build 2020-12-04 18:47:05 -05:00
WKFO c9285e1440 Fix menu music issues 2020-12-04 17:04:50 -05:00
Pioneer Transifex c606f28b56 auto-commit: translation updates 2020-12-04 03:01:17 +01:00
Gliese852 8bb5d451e9 Some map fixes
- fix segfault in the system map if a centered ship is removed
- reset the system map view if the centered ship is hidden
- if the mission target is a specific systembody, when you press the "set
  as nav target" button, the sector map is set to the correct star of the
  multiple system
- shrink the searchbar window in the sector map when nothing is shown on
  it
2020-12-03 16:56:31 -05:00
Pioneer Transifex cc490837e0 auto-commit: translation updates 2020-12-03 03:01:41 +01:00
Karl F df1f125b4f Fixes #5038 tooltip not shown for gun temperature gauge 2020-12-02 17:58:38 +01:00