Commit Graph

19490 Commits (master)

Author SHA1 Message Date
Webster Sheets 60b80bccb8
Update Changelog.txt 2020-12-02 00:31:05 -05:00
Webster Sheets 2c4d0439af Removed overlooked newUI files 2020-12-02 00:27:29 -05:00
Webster Sheets 9d179e83e8 Better tooltips for system economy viewer
- Show textual representation of all icons on hover
- Clarify the to/from system
2020-12-02 00:27:29 -05:00
Webster Sheets c638979857 Reduce hydrogen price to 5cr/t (from 10)
This makes in-system missions more viable by halving the fuel cost.
Fuel costs were originally balanced for 1cr/t, so this is still fairly expensive.
2020-12-02 00:27:29 -05:00
Webster Sheets 8704dacb99 Add 5MW mining laser as lower cost alternative
Mining laser power doesn't contribute to reward at the moment, but it's a good impetus for the future.
2020-12-02 00:27:29 -05:00
Webster Sheets 5d5c18738a Fix minor issues
Fix error when savefiles directory doesn't exist
Fix persistent selection state in commodity market
Don't regenerate hyperspace cache until arrival
Fix mipmap generation to restore heat texture
2020-12-02 00:27:29 -05:00
Webster Sheets 82bae0e34e Fix crash when loading old saved model
When the model animations / matrix visitor information is different on disk than the savefile, log an error instead of crashing.
2020-12-02 00:27:29 -05:00
Webster Sheets f7365fd5c8 Add player aim-assist, calc lead in FixedGuns
- Add limited (~1.5 degree) aim assist for the player, using the existing lead pip calculations
- Moved the target lead calculations into FixedGuns instead of WorldView
- Refactored Quaternion.h for simplified construction of axis-angle vectors.

Fix target and frame indicators being misaligned in external camera.
2020-12-02 00:27:29 -05:00
Webster Sheets 6bca99db62 Buff local cargo and delivery missions slightly
Local missions were using 1+urgency instead of 1.5+urgency as a
multiplier. This effectively boosts local mission rewards by ~50%, and
should help pilots be able to pay for fuel while doing in-system
deliveries now.

Also added a minimum bound to the pay of very close local deliveries,
which further buffs the payout of those missions (to offset the time
cost of orbiting a local body and fuel used in intra-atmospheric flight).

Don't generate local missions >20 AU away, to avoid massive systems
(1000 AU between ports) generating missions with hundreds of years to
complete them.
2020-12-02 00:27:29 -05:00
Webster Sheets 1c879729c1
Update Changelog.txt 2020-12-01 13:03:34 -05:00
Webster Sheets d288b6375a Port LuaConsole to pigui
Still not as perfect as I'd like it, but it runs, works correctly, and closes with ESC.

Need to double-press the console binding to close it due to some state tracking being lost when re-adding the input frame.
2020-12-01 13:02:34 -05:00
Webster Sheets 7506dcb849 It is the nature of all things to die...
and the reaper's due must be paid.

As we fly back to base after another successful mission, let us clear
comms in a moment of silence for the wingmates who no longer fly in
this squadron.

- To Robn, who wrote newUI in the first place. Without you, there would
  be no newUI or pigui, and I'd still be complaining about oldUI.
- To Johnbartholomew, who spearheaded the move of existing systems to
  newUI and implemented plenty of code we still use today.
- To ecraven, who did all of the work of adding ImGui to the code base
 and worked tirelessly to port existing screens.
- To vakhoir, who not only worked tirelessly to port the most
  recalcitrant of screens, but developed UI frameworks and paradigms
  that made working on the UI a pleasure instead of a pain.

This commit totally removes the newUI from the codebase. Everything that
made reference to it (save the LuaConsole) has been ported or struck
from the code. This has simplified some systems significantly, has
allowed us to drop 8,000+ lines of C++ code, cut our build times
significantly, and brings us one step closer to a modern rendering and
tools pipeline.
2020-12-01 13:02:34 -05:00
Pioneer Transifex 36e5217c6f auto-commit: translation updates 2020-12-01 03:01:29 +01:00
Pioneer Transifex fa55b389ae auto-commit: translation updates 2020-11-30 03:01:42 +01:00
Pioneer Transifex fc352264cc auto-commit: translation updates 2020-11-29 03:01:30 +01:00
Webster Sheets 0dc8a186db
Update Changelog.txt 2020-11-28 16:53:45 -05:00
Webster Sheets 6f1893a728 Add menu music courtesy of franzopow
- Credit: Francesco Corrado for menu_master.ogg and lost_space_explorer.ogg
- Refactor MusicPlayer.lua to expose an API for other modules to consume.
- Remove SoundMusic's dependency on Lua, decouple through a signal
2020-11-28 16:50:33 -05:00
Karl F a62655c1c4 Update changelog 2020-11-28 12:23:33 +01:00
Webster Sheets 64619664d1 Fix incorrect padding, enable debug reloading
- Fixed a bug in ImGuiStack cleanup
- Simpler mechanism for registering reloaded views
- Call refresh() on reloaded tabs to fix bugs
2020-11-28 12:21:44 +01:00
Webster Sheets b616f2fc97 Minor fixes
- Removed double padding from window
- Reload the ship cargo list when it changes, not every frame
- Made the cargo gauge display the cargo capacity, not the equipment space
2020-11-28 12:21:44 +01:00
Karl F 9740c4b578 Move econ-trade view to pigui 2020-11-28 12:21:44 +01:00
Andrew Copland 1898c54a0b
Merge pull request #5029 from fluffyfreak/fix-vs2019-sigc-paths
Minor changes to fix the vs2019 paths for finding sigc++
2020-11-27 23:51:30 +00:00
Andrew Copland a2ac3f9b81 Minor changes to fix the vs2019 paths for finding sigc++ 2020-11-27 23:40:26 +00:00
Andrew Copland 52b547f935
Merge pull request #5014 from The-EG/win-thirdparty-libs
Update pioneer-thirdparty Windows binaries
2020-11-27 20:57:54 +00:00
Karl F 555cf8d2b1 Update build badge to github actions 2020-11-27 13:38:51 -05:00
Pioneer Transifex 9ef33a556b auto-commit: translation updates 2020-11-27 03:02:18 +01:00
Webster Sheets d1d3eac3e5
Update Changelog.txt 2020-11-26 04:26:05 -05:00
Webster Sheets 4f2e3ad31a Use UNIT_LY from `core` instead of redefining it
- Six extra translations of 'ly', one for each mission module
- Added GO_BACK and SET_RETURN_ROUTE to ui-core (as they're pretty standard for misions)
2020-11-26 04:23:46 -05:00
Webster Sheets 0486290de7 Use TextTable for crew view 2020-11-26 04:23:46 -05:00
Webster Sheets 984ec544f7 Port Missions display to PiGui 2020-11-26 04:23:46 -05:00
Webster Sheets 43292aa397 Add debug reloading to pigui TabView 2020-11-26 04:23:46 -05:00
Webster Sheets 1aa2a78dfa Unify SystemPath formatting 2020-11-26 04:23:46 -05:00
Karl F ef4a390df8 Change font size of ship info view, to harmonize with the other
Use same font size for text in all screens
2020-11-26 03:52:25 -05:00
Karl F 46ee353ceb Add more documentation strings 2020-11-26 03:52:25 -05:00
Pioneer Transifex 094204ef92 auto-commit: translation updates 2020-11-26 03:01:43 +01:00
Webster Sheets 8aec95ccda Do apt-get update before installing packages 2020-11-25 13:57:52 -05:00
Webster Sheets bdeac129fd clang-format compliance 2020-11-25 13:57:52 -05:00
Webster Sheets 744cb0edc0 Increase the amount of space in the debug menu
- Add Set Player Ship Type button to DebugShipSpawn
- Merge Renderer and ImGui tabs
- ShipSpawner now makes better use of available space
2020-11-25 13:57:52 -05:00
Webster Sheets 22aa725211 Add multi-column tables to TextTable 2020-11-25 13:57:52 -05:00
Webster Sheets 32f29017ee Rename PiImage -> pigui.libs.image 2020-11-25 13:57:52 -05:00
Webster Sheets 7e9d085f07 Move PiGuiFace -> pigui.libs.face 2020-11-25 13:57:52 -05:00
Webster Sheets 8b35cb62b0 Port Crew Roster to PiGui
- Temporarily removed Negotiate button because it did nothing
- Table drawing is ugly code but it works well

The crew roster could definitely use a rework, but I'm happy with getting it into pigui to start.
2020-11-25 13:57:52 -05:00
Webster Sheets a41a011069 Better profiling and optimization
- Optimize GeomTree in Debug so the game isn't horribly slow
- Don't profile tight inner loops
- Report BeginFrame/EndFrame timings
2020-11-25 13:57:52 -05:00
Webster Sheets 56e36f4395 Refactor Face display implementation
- Support for editing faces is baked into the PiGuiFace widget
- Better reacts to available space
- Significantly simplifies some calculations surrounding face display
- Added support for window padding to tab-view.lua; no more need to manually add padding with child windows.
2020-11-25 13:57:52 -05:00
Webster Sheets ba7d8e7113 Sturnclaw does violence to sector map, part two
- Move the demographics information from the SystemInfoView to the sector map
- Add utility function to ui.Format for pretty-printing very large numbers
- Show an error message when trying to economy-view an uninhabited system.
2020-11-25 13:57:52 -05:00
Webster Sheets a9be7976f1 Move sector map view to pigui/views 2020-11-25 13:57:52 -05:00
Webster Sheets e16b978fca Use PiGuiView instead of UIView 2020-11-25 13:57:52 -05:00
Pioneer Transifex 6aab0908ae auto-commit: translation updates 2020-11-25 03:01:37 +01:00
Pioneer Transifex 10bc8ea5f5 auto-commit: translation updates 2020-11-24 03:01:21 +01:00
Pioneer Transifex ca7cb42959 auto-commit: translation updates 2020-11-23 03:01:15 +01:00