Commit Graph

18853 Commits (master)

Author SHA1 Message Date
Karl F d7e4b9ecb1 Merge branch 'icons_update' 2020-03-01 08:35:47 +01:00
Karl F c0342da16e Change to better icon for Econ&Trade in InfoVew
Used to be a shopping cart, same as for the commodity market.
Now is crates (cargo) and people (passengers)
2020-03-01 08:29:12 +01:00
Karl F d4859f0357 Add new icons to themes (and indentation fix)
Will be used in up-coming pull requests: OrbitView to PiGui and Flight Log
2020-03-01 08:28:42 +01:00
nozmajner ac5dce0ef2 Adding icons for future PRs: BBS, systemview, imgui migration, bar
related.
2020-03-01 08:28:10 +01:00
Karl F 321022ea87 Add ship jump status to translation strings
This is shown in sector view, and was previously just returning the all caps
English constants.
2020-03-01 08:25:59 +01:00
Paul Cercueil 1c07b40083 Add Sponsor button to github
Add Sponsor button to github, which redirects to
https://pioneerspacesim.net/page/donate/.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
2020-03-01 08:25:04 +01:00
Karl F 1171029bd9 Update in-game advice for how to avoid police in goodstraders
(Follows on #4796, where police was made non-persistent)
2020-03-01 08:22:49 +01:00
Pioneer Transifex 1e17950784 auto-commit: translation updates 2020-03-01 03:01:26 +01:00
Webster Sheets fd75d2039c Remove gameui/Panel
This class was only being used to keep the newUI from obscuring the radar widget.
Because we only have three newUI screens left, it is an acceptable casualty.
2020-02-28 17:44:57 -05:00
Webster Sheets d4d664fdd5 Remove unused gameui/BindingCapture 2020-02-28 17:40:12 -05:00
Webster Sheets ff97e2ee0d Removed unused gameui/LabelOverlay 2020-02-28 17:37:12 -05:00
Webster Sheets 56ef0f04be Remove newUI ModelSpinner 2020-02-28 17:22:39 -05:00
Webster Sheets 4ade8f86fd
Update Changelog.txt 2020-02-28 02:56:57 -05:00
Webster Sheets 91e71e5be0 Remove GalacticView / GalaxyMap
Following a discussion on IRC, we are not intending to port GalaxyView
to pigui. Instead, we will eventually re-integrate it into the SectorView,
unifying all non-System map duties into one view.
2020-02-28 01:11:21 -05:00
Webster Sheets e831f5eab5 Move lua sources to contrib/lua/src 2020-02-28 00:53:14 -05:00
Webster Sheets 4bce34b081 Add PiGuiView shim, delete obsolete ui/StationView 2020-02-28 00:52:00 -05:00
Webster Sheets 869c63fec3
Merge pull request #4813 from Web-eWorks/perf-counter
Draw performance information with ImGui, new performance counter backend
2020-02-28 00:51:52 -05:00
Webster Sheets 9e0b52ec9a src/ takes precedence over contrib/
src/lua/Lua.h and contrib/lua/lua.h were conflicting on case-insensitive
filesystems like Windows and OSX (with non-portable include path support)
Ideally we want contrib/lua to have a different name, as we include lua
via #include <lua.hpp> and not #include <lua/lua.hpp>
2020-02-28 00:09:13 -05:00
Webster Sheets a2e2f397c6 Use std::piecewise_construct 2020-02-28 00:05:41 -05:00
Pioneer Transifex 89bb1b1dd4 auto-commit: translation updates 2020-02-26 03:01:28 +01:00
Karl F b08c31fe4d Add forgotten copyright header to pigui lua-files
(And a "chmod -x" on local_stars.lua)
2020-02-25 20:01:31 +01:00
Webster Sheets 6431134310 ImGui performance display, new PerfStats impl
- Rewrote the Ctrl+i performance display using ImGui
- Added a new generic performance counter implementation using atomics
- Added physics- and frame-time display to performance info
- Rewrote Graphics::Stats to use the new PerfStats impl internally
2020-02-24 16:55:26 -05:00
Webster Sheets 825d3a6804 Decouple pigui rendering from handler
- Explicitly call PiGui::Render at the end of the frame
- PiGui::Render renamed to DrawHandler, now only dispatches to lua handlers
- PiGui::RenderImGui renamed to Render(), now calls EndFrame()
2020-02-24 16:55:26 -05:00
Webster Sheets 5b789269f2 Move PiGui.h/.cpp to pigui folder 2020-02-24 16:55:26 -05:00
cwyss 3fbce03401 Small Lua code cleanup 2020-02-23 22:08:27 +01:00
cwyss 21a80e4488 Make setspeed target more sticky when in setspeed mode
- Don't clear the setspeed target when in setspeed mode and a
  different nav target is selected.

- Change or clear the setspeed target in setspeed mode when
  ctrl-selecting a new nav target or ctrl-deselecting the old
  setspeed target, respectively.

- When not in setspeed mode, implicitly clear the setspeed target on
  any target change.
2020-02-23 22:06:21 +01:00
cwyss bee125d276 Improve the display of clusters of in-space bodies
- Make a more important body the cluster's new main body already when
  building up the clusters:

  This prevents changing the main body later when sorting the
  cluster's bodies by importance.  Since the main body's coordinates
  are used when forming and displaying clusters, a late change of the
  main body may lead to clusters which are closer together than the
  cluster size.

- Use circular cluster areas:

  That way, the clusters don't change with the viewing angle of the
  player.
2020-02-23 21:59:28 +01:00
Karl F db6bf96cf8 Make faces in goodstrader persistent
Closes #4810
2020-02-23 19:07:55 +01:00
Karl F e173bbf642 Update changelog 2020-02-23 15:54:26 +01:00
Paul Cercueil ac3170e962 Fix incorrect cabin usage percentage
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
2020-02-23 15:52:43 +01:00
Paul Cercueil 9164f1708e Re-introduce support for remote Lua console
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
2020-02-23 15:44:58 +01:00
Karl F 3b8b512857 Passengers aren't mass, remove "t" as unit for passengers 2020-02-23 15:19:03 +01:00
Karl F f2f3a628f1 Make police non-persistent in Goodstrader
Idea: one should be able to recognize the trustworthy black market merchants,
by them being persistent to each station. So you learn to recognize the name
of the market, e.g. "Honest Jim".

However, if _both_ police and the _true_ black market merchant are persistent,
you will recognize the name of both, so now you need to remember _which_ was
the fake one.

I much prefer the way it was in Frontier: the undercover police had a new name
every time you docked, so when returning to a station you would only recognize
one of the trader-names.
2020-02-23 14:57:33 +01:00
Karl F 1a296839e2 Fix unused/free cabins shown in station footer being wrong
closes #4806
2020-02-23 14:52:55 +01:00
Karl F 4d6218be37
Merge pull request #4775 from vakhoir/feature/bulletin_board
Bulletin Board view, closes #4797
2020-02-23 14:38:44 +01:00
vakhoir 339b08a0f5 Bulletin board view
Module adjustments to make them compatible with the pigui Bulletin Board
Allow passing Table to PiguiFace constructor
Optional targetResolution parameter to allow rescaling ui into smaller windows
Cleanup unused variables
Add SwitchTo method to pigui tabview
Apply InfoFace refactoring to ShipRepairs and Police
Added body font to char-form
Fixed commodity-market font-resizing
Fixed dialog option crashes
Resetting market views
Fixed Fuel Club to work with the pigui Bulletin Board
Using pionillium font in the Bulletin Board chat form
Window Resizing fix
2020-02-23 13:44:52 +01:00
Webster Sheets e255171631
Update Changelog.txt 2020-02-22 02:45:23 -05:00
vakhoir e77c11c35f Rename DrawTable to TextTable
Extract basic highlightable table from the Market widget
Created dedicated EquipmentMarket and CommodityMarket widgets
Added ChatForm widget
2020-02-22 08:12:05 +01:00
Webster Sheets 53849189c3
Merge pull request #4800 from pioneerspacesim/ui-hot-reload
Replace import() with require(); allow hot reloading of lua files

- Move all top-level lua-related files out of src/ into a topical folder.
- Provide a mechanism to fix the ImGui stack if lua throws an error in the middle of PiGui code
2020-02-22 00:33:46 -05:00
Pioneer Transifex 53a386679f auto-commit: translation updates 2020-02-22 03:01:30 +01:00
Webster Sheets ed8cb05f24 Update for new travis configuration 2020-02-19 18:44:06 -05:00
Webster Sheets 485643ce13 Merge branch 'ui-hot-reload-refactor' into master 2020-02-19 14:40:31 -05:00
Webster Sheets a568f0018e Update (most of) pigui code to use require() 2020-02-19 13:38:29 -05:00
Webster Sheets 64598540a0 Update lua files, part 1
Update everything but data/pigui, data/ui, and the import("ui/XXX.lua") calls.
These will be taken care of at a later date when we update the pigui lua style guid and rip out the newUI code, respectively
2020-02-19 13:38:29 -05:00
Webster Sheets f7f4abd5ab
Update Changelog.txt 2020-02-16 13:06:20 -05:00
Webster Sheets 8430aaf4e0
Merge pull request #4791 from impaktor/shiprepair2pigui
Move ShipRepair screen to pigui
2020-02-16 13:05:47 -05:00
Karl F d682d4aee8 Move ShipRepair screen to PiGui 2020-02-16 16:57:36 +01:00
Pioneer Transifex 6acf6aef28 auto-commit: translation updates 2020-02-16 03:01:31 +01:00
Pioneer Transifex 81faaa1c04 auto-commit: translation updates 2020-02-15 03:01:48 +01:00
Karl F 70e62408ef Add another custom cargo to Cargo-mission
Silly time! We need stem bolts, and self sealing ones!
Finest self-sealing stem bolts in the sector.

(Referenced in sci-fi culture as a gadget with unclear use)
2020-02-14 09:07:59 +01:00