Xenon UI OXP

Discussion and information relevant to creating special missions, new ships, skins etc.

Moderators: another_commander, winston

User avatar
Krager
---- E L I T E ----
---- E L I T E ----
Posts: 261
Joined: Wed Dec 11, 2024 9:44 pm
Location: Russian

Re: Xenon UI OXP

Post by Krager »

Всё супер! Принимаем как готовый вариант! :)
Добавил картинку в SW_Economy как f6-overlay-sw-economy_16_9_default. Тоже всё хорошо.
Благодарю!
User avatar
Krager
---- E L I T E ----
---- E L I T E ----
Posts: 261
Joined: Wed Dec 11, 2024 9:44 pm
Location: Russian

Re: Xenon UI OXP

Post by Krager »

phkb wrote: Fri Oct 24, 2025 6:25 am
Krager wrote: Thu Oct 23, 2025 12:41 pm
Ещё один вариант, надеюсь крайний. И есть вопрос.
Version 1.2 here: XenonUIResourcesG_Russian.oxz
Сделайте пожалуйста то же самое только под XenonReduxUIResources_4x3 v2.0
User avatar
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 5608
Joined: Tue Jan 21, 2014 10:37 pm
Location: Writing more OXPs, because the world needs more OXPs.

Re: Xenon UI OXP

Post by phkb »

Krager wrote: Fri Oct 24, 2025 9:11 am
Сделайте пожалуйста то же самое только под XenonReduxUIResources_4x3 v2.0
There is nothing to translate or adjust in the Redux resource pack. The only thing to translate would be some Library Config settings in the main Xenon UI Redux pack, but there is no English text applied to anything in the Redux resources.
User avatar
Krager
---- E L I T E ----
---- E L I T E ----
Posts: 261
Joined: Wed Dec 11, 2024 9:44 pm
Location: Russian

Re: Xenon UI OXP

Post by Krager »

Не глянул, думал принци тот же, как и в новой версии) Прошу прощения.
User avatar
Krager
---- E L I T E ----
---- E L I T E ----
Posts: 261
Joined: Wed Dec 11, 2024 9:44 pm
Location: Russian

Re: Xenon UI OXP

Post by Krager »

Добрый день! Xenon UI хорош, красив, удобен. А туннеля как в BGS ему не хватает. Как можно добавить туннель (вылет со станции) из BGS в Xenon UI?
User avatar
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 5608
Joined: Tue Jan 21, 2014 10:37 pm
Location: Writing more OXPs, because the world needs more OXPs.

Re: Xenon UI OXP

Post by phkb »

Krager wrote: Sun Nov 09, 2025 9:54 am
Добрый день! Xenon UI хорош, красив, удобен. А туннеля как в BGS ему не хватает. Как можно добавить туннель (вылет со станции) из BGS в Xenon UI?
Why would you need to move any of various effects into Xenon UI? If you have the Library, BGS and Xenon UI mod packs installed, you can select Xenon UI as your preferred GUI (go into Library Config, find the "GUI-Config" item, select "Show Flags", and change the "Xenon UI" item to "1"). That way, you can have all the bells and whistles that BGS supplies, with the Xenon UI screens on display.
User avatar
Krager
---- E L I T E ----
---- E L I T E ----
Posts: 261
Joined: Wed Dec 11, 2024 9:44 pm
Location: Russian

Re: Xenon UI OXP

Post by Krager »

phkb wrote: Mon Nov 10, 2025 12:06 am
Krager wrote: Sun Nov 09, 2025 9:54 am
Добрый день! Xenon UI хорош, красив, удобен. А туннеля как в BGS ему не хватает. Как можно добавить туннель (вылет со станции) из BGS в Xenon UI?
Why would you need to move any of various effects into Xenon UI? If you have the Library, BGS and Xenon UI mod packs installed, you can select Xenon UI as your preferred GUI (go into Library Config, find the "GUI-Config" item, select "Show Flags", and change the "Xenon UI" item to "1"). That way, you can have all the bells and whistles that BGS supplies, with the Xenon UI screens on display.
В этом случае надо дорабатывать `Docked_HUDs` чтобы можно было левый список подсказок отключать)
У меня сейчас два комплекта оформления:
1. RUS_BGS v2.5.4 mod.oxz (картинку F7 изменил в PhotoShop) и RUS_Docked_HUDs v1.3.1 mod (координаты левого текста сдвигал).
2. RUS_XenonUI v3.8.oxz, RUS_XenonUIResourcesG_Russian v1.2.oxz RUS_Docked_HUDs v1.1.
Буфер обмена01.jpg
RUS_Docked_HUDs v1.3.1 mod.zip
(11.68 KiB) Downloaded 10 times
User avatar
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 5608
Joined: Tue Jan 21, 2014 10:37 pm
Location: Writing more OXPs, because the world needs more OXPs.

Re: Xenon UI OXP

Post by phkb »

Krager wrote: Mon Nov 10, 2025 6:01 am
В этом случае надо дорабатывать `Docked_HUDs` чтобы можно было левый список подсказок отключать)
У меня сейчас два комплекта оформления:
1. RUS_BGS v2.5.4 mod.oxz (картинку F7 изменил в PhotoShop) и RUS_Docked_HUDs v1.3.1 mod (координаты левого текста сдвигал).
2. RUS_XenonUI v3.8.oxz, RUS_XenonUIResourcesG_Russian v1.2.oxz RUS_Docked_HUDs v1.1.
Well, I'm trying *not* to make changes to "Docked HUD's", as that's Wildeblood's mod, and he's quite capable of making any changes that might be necessary.

Rather than for Xenon UI to do something to Docked HUDs, I think the better approach would be for Docked HUD v1.3.1 to check for Xenon UI being installed and (when Library Config is in use) active, and in that situation not put any updates to the HUD. If Wildeblood is happy to make the changes, this is the code he'll need to check for Xenon UI:

Code: Select all

this.$xenonUIInUse = function() {
    if (worldScripts.XenonUI) {
        var lib = worldScripts.Lib_GUI;
        if (lib) {
            if (lib.$cur === "XenonUI") return true;
        } else {
            return true;
        }
    }
    return false;
}
User avatar
Krager
---- E L I T E ----
---- E L I T E ----
Posts: 261
Joined: Wed Dec 11, 2024 9:44 pm
Location: Russian

Re: Xenon UI OXP

Post by Krager »

Здравствуйте! Нужна ваша помощь. У меня установлены `XenonUI` и `BGS` одновременно. Для графики `XenonUI`, для тоннелей и музыки `BGS`. Каждый раз, если надо запустить нового коммандира, приходится идти в GUI и переключать флаг на `XenonUI`. Вопрос, что надо изменить в `XenonUI`, чтобы по умолчанию графика работала с `XenonUI`?
User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2920
Joined: Sat Jun 11, 2011 6:07 am
Location: Nova Hollandia
Contact:

Re: Xenon UI OXP

Post by Wildeblood »

phkb wrote: Mon Nov 10, 2025 6:34 am
I'm trying *not* to make changes to "Docked HUD's", as that's Wildeblood's mod, and he's quite capable of making any changes that might be necessary.

Rather than for Xenon UI to do something to Docked HUDs, I think the better approach would be for Docked HUD v1.3.1 to check for Xenon UI being installed and (when Library Config is in use) active, and in that situation not put any updates to the HUD. If Wildeblood is happy to make the changes, this is the code he'll need to check for Xenon UI:

Code: Select all

this.$xenonUIInUse = function() {
    if (worldScripts.XenonUI) {
        var lib = worldScripts.Lib_GUI;
        if (lib) {
            if (lib.$cur === "XenonUI") return true;
        } else {
            return true;
        }
    }
    return false;
}
Thanks for the checkeroo function, I would have needed to ask you for it if I were intending to return to Docked HUDs. But...

Unless my memory is even worse than I remember, version 1.1 has 1 script file, and version 1.3 has 3 script files (there's a clue in the version numbers). There's a reason they were left separate, and never merged into one file, and this is it. To prevent Docked HUDs 1.3 from displaying text in the left of the screen, (functionally or physically) delete the two new scripts. But, the practical result of that deletion is version 1.1, so... what problem is solved by adding auto-reconfiguration bloat to 1.3, that isn't solved by just using 1.1?

In any case, if anyone wants to do this, you'd need the first item in the this.startUp functions to be a call to this.$xenonUIInUse (or replication of the code directly), and if XenonUI is in use, for the scripts to delete themselves. I believe there's an OXP called Untrumbled which might be an example to follow.

I'm sorry if I seem unhelpful, but I'm just not really seeing a problem here. :?:
User avatar
Krager
---- E L I T E ----
---- E L I T E ----
Posts: 261
Joined: Wed Dec 11, 2024 9:44 pm
Location: Russian

Re: Xenon UI OXP

Post by Krager »

Wildeblood wrote: Fri Dec 05, 2025 6:19 am
Я вас понял, оставил версию `Docked_HUDs v1.1` она меня вполне устраивает.
User avatar
Krager
---- E L I T E ----
---- E L I T E ----
Posts: 261
Joined: Wed Dec 11, 2024 9:44 pm
Location: Russian

Re: Xenon UI OXP

Post by Krager »

phkb wrote: Mon Nov 10, 2025 6:34 am
Подскажите пожалуйста что надо изменить в `XenonUI v3.8` или в `BGS v2.5.4` чтобы при запуске игры по умолчанию приоритетной графикой стала графика из `XenonUI v3.8`?
Сейчас приходится переходить в настроики дополнений и менять флаг во вкладке `GUI Config` библиотеки `Svengali_Library v1.8.5`. Нужно чтоб по умолчанию этот флаг уже стоял на XenonUI.
User avatar
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 5608
Joined: Tue Jan 21, 2014 10:37 pm
Location: Writing more OXPs, because the world needs more OXPs.

Re: Xenon UI OXP

Post by phkb »

Krager wrote: Sat Jan 03, 2026 10:28 pm
Подскажите пожалуйста что надо изменить в `XenonUI v3.8` или в `BGS v2.5.4` чтобы при запуске игры по умолчанию приоритетной графикой стала графика из `XenonUI v3.8`?
Сейчас приходится переходить в настроики дополнений и менять флаг во вкладке `GUI Config` библиотеки `Svengali_Library v1.8.5`. Нужно чтоб по умолчанию этот флаг уже стоял на XenonUI.
You can try changing line 18 of "xenonui.js" from this:

Code: Select all

	this._enableLibGUIInt = true; // flag to indicate whether integration with LibGUI is on or off. true means it is on.
to this

Code: Select all

	this._enableLibGUIInt = false; // flag to indicate whether integration with LibGUI is on or off. true means it is on.
Initial tests show XenonUI screens in most situations when this flag false, at least on my setup. I haven't done comprehensive testing, though.

Also, I haven't included this flag in the Library Config settings. So if you change your mind, you'll need to manually revert the flag back to true.

FWIW, I think I created this flag so I had an easy way of testing changes that aren't linked to Library, but I rarely use Oolite without Library nowadays, so that code might be quite stale by now.

If this flag doesn't get the results you need, I'll have to come up with some code to force Library to have the Xenon UI as default. Not super keen on that option, though.
User avatar
Krager
---- E L I T E ----
---- E L I T E ----
Posts: 261
Joined: Wed Dec 11, 2024 9:44 pm
Location: Russian

Re: Xenon UI OXP

Post by Krager »

phkb wrote: Sun Jan 04, 2026 2:43 am

Code: Select all

	this._enableLibGUIInt = true; // flag to indicate whether integration with LibGUI is on or off. true means it is on.
Это не то, не работает. Этот ключ отключает возможность управления из библиотеки `Svengali_Library v1.8.5`. Пропала из меню возможность переключить графику. Тут наверно надо в самой библиотеке `Svengali_Library v1.8.5` что то менять. Чтоб приоритет был у `Xenon UI`
User avatar
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 5608
Joined: Tue Jan 21, 2014 10:37 pm
Location: Writing more OXPs, because the world needs more OXPs.

Re: Xenon UI OXP

Post by phkb »

Krager wrote: Sun Jan 04, 2026 12:27 pm
Это не то, не работает. Этот ключ отключает возможность управления из библиотеки `Svengali_Library v1.8.5`. Пропала из меню возможность переключить графику. Тут наверно надо в самой библиотеке `Svengali_Library v1.8.5` что то менять. Чтоб приоритет был у `Xenon UI`
Correct. But it's the fast way to prioritise Xenon UI without monkey-patching Library, which I'm trying not to do.

The difficulty in monkey-patching is making it so that it only happens once, otherwise it will become impossible to switch to BGS (because the monkey-patch will keep changing it back). And I'm also trying to make as few code changes as possible, so that I'm not supporting two completely different versions of Xenon UI.

I'm short on time, so this one will need to be parked for the moment. I should have some time in a week or so to revisit.
Post Reply