Celestia
Celestia copied to clipboard
CELX starcolor/starstyle with menu item sync
New CELX commands have been added:
celestia:setstarcolor()
celestia:setstarstyle()
When executed, the new values are stored in the registry, but the menu items (Render->Star style & render->Star color) do not change their position (not synchronized).
At the same time, need to correct the order of the menu items Render->Star style. Should be:
- Points
- Fuzzy Points
- Scaled Discs
Synchronization with menu for StarStyle described in winmain.cpp - syncMenusWithRendererState() function. Sync for StarColor and TextureResolution added in syncMenusWithRendererState() function by Leserg. But methods celestia:setstarcolor() and celestia:setstarstyle() are not described in the Windows interface, so I can not use syncMenusWithRendererState() function for synchronization.
Render->Star style order I'll do today.
Changed order of Render->Star style menu items (f79990a)
Need to create StarStyle & StarColor sync with menu.
Need to check for QT.
syncMenusWithRendererState is a bad implementation of this idea.
Actually we should introduce hook(s) called when script change application state.
btw, in qt version celestia:setstarstyle()
changes menus.
Win native UI is doomed as nobody wants to maintain it. I don't think this issue will have any care.
Have you fully switched to QT?
Not yet, but Qt is the only UI which has support.