mirror of
https://github.com/HarbourMasters/Starship
synced 2026-05-23 06:54:39 -04:00
Merge branch 'main' of https://github.com/HarbourMasters/Starship
This commit is contained in:
@@ -51,9 +51,9 @@ Congratulations, you are now sailing with Starship! Have fun!
|
||||
| Keys | Action |
|
||||
| - | - |
|
||||
| F1 | Toggle menubar |
|
||||
| F4 | Reset |
|
||||
| F11 | Fullscreen |
|
||||
| Tab | Toggle Alternate assets |
|
||||
| Ctrl+R | Reset |
|
||||
|
||||
### Graphics Backends
|
||||
Currently, there are three rendering APIs supported: DirectX11 (Windows), OpenGL (all platforms), and Metal (macOS). You can change which API to use in the `Settings` menu of the menubar, which requires a restart. If you're having an issue with crashing, you can change the API in the `starship.cfg.json` file by finding the line `"Backend":{`... and changing the `id` value to `3` and set the `Name` to `OpenGL`. `DirectX 11` with id `2` is the default on Windows. `Metal` with id `4` is the default on macOS.
|
||||
|
||||
@@ -326,6 +326,10 @@ void GameEngine::StartFrame() const {
|
||||
CVarSetInteger("gEnhancements.Mods.AlternateAssets", !CVarGetInteger("gEnhancements.Mods.AlternateAssets", 0));
|
||||
break;
|
||||
}
|
||||
case KbScancode::LUS_KB_F4: {
|
||||
gNextGameState = GSTATE_BOOT;
|
||||
break;
|
||||
}
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -423,13 +423,7 @@ void DrawMenuBarIcon() {
|
||||
|
||||
void DrawGameMenu() {
|
||||
if (UIWidgets::BeginMenu("Starship")) {
|
||||
if (UIWidgets::MenuItem("Reset",
|
||||
#ifdef __APPLE__
|
||||
"Command-R"
|
||||
#else
|
||||
"Ctrl+R"
|
||||
#endif
|
||||
)) {
|
||||
if (UIWidgets::MenuItem("Reset", "F4")) {
|
||||
gNextGameState = GSTATE_BOOT;
|
||||
}
|
||||
#if !defined(__SWITCH__) && !defined(__WIIU__)
|
||||
|
||||
Reference in New Issue
Block a user