[#12816] Custom SpaceCamera for space floor Space Render
自动翻译暂时不可用
本帖暂时展示 GitHub 原始内容。
This add a SpaceCamera button inside the CustomRulesDialog that just opens the Space Renderer with a panel to modify planets orbits, movement and rotation(and other stuff). The Camera can be freely moved around the Render Space with AWSD Q/E for going up and down or also use scroll to zoom, keeps the vanilla orbit mode too.
All this changes are insolated into maps so doesn't affect anything in the Campaign renderer and overall is just for setting a nice view for the space floor
this also should works with modded planets, if planet gets removed the renderer will just fallback into serpulo and the body selector list all content.planets() and filtering planet.visible so invisible modded planets should not be shown.
Also with multiplayer due all info is stored in rules and they get sent to clients thanks to the json serialization
<img width="1917" height="1138" alt="image" src="https://github.com/user-attachments/assets/c93d2a61-6793-4479-9942-3051521af722" /> <img width="1917" height="1137" alt="image" src="https://github.com/user-attachments/assets/dbdcc7bf-f85c-44c6-90d5-4e021dbc9d3d" />
Tested ingame and compiles with gradle core:compileJava
If your pull request is not translation-related, read the list of requirements below and check each box:
I have read the contribution guidelines.
I have ensured that any new features or fixes in this PR function correctly in-game, if applicable.
I affirm that this code follows Mindustry's AI policy.
由 MDT GitHub 同步机器人自动同步。