SoaT Posted March 17, 2023 Share Posted March 17, 2023 (edited) hangar.xc // Text format for current server in the list, // Flash HTML tags supported. "{server}" for the server value. // Форматирование текста для текущего сервер в списке, // Поддерживаются теги Flash HTML. "{server}" заменяется на значение текущего сервера. "currentServerFormat": "<b>{server}</b>", Не очень понимаю как задать зелёный цвет? "currentServerFormat": <font color="green"><b>{server}</b></font> не работает Edited March 20, 2023 by SoaT Решено Link to comment Short link Share on other sites More sharing options...
Kurzdor Posted March 17, 2023 Share Posted March 17, 2023 (edited) @SoaT <font color="#00ff00"><b>{server}</b></font> https://htmlcolorcodes.com/color-picker/ Отсюда берём HEX код для цвета. Edited March 17, 2023 by Kurzdor Link to comment Short link Share on other sites More sharing options...
SoaT Posted March 18, 2023 Author Share Posted March 18, 2023 (edited) 18 часов назад, Kurzdor сказал: @SoaT <font color="#00ff00"><b>{server}</b></font> https://htmlcolorcodes.com/color-picker/ Отсюда берём HEX код для цвета. Не. В том то и дело, что через hex тоже не работает. (перепроверил) Пропадает и в логине и в ангаре панель с пингом и онлайном Edited March 18, 2023 by SoaT Link to comment Short link Share on other sites More sharing options...
Wild_RNB Posted March 18, 2023 Share Posted March 18, 2023 @SoaT Прикрепите логи и ваши файлы hangar.xc и login.xc. Link to comment Short link Share on other sites More sharing options...
SoaT Posted March 18, 2023 Author Share Posted March 18, 2023 (edited) 39 минут назад, Wild_RNB сказал: @SoaT Прикрепите логи и ваши файлы hangar.xc и login.xc. python.log xvm.log hangar.xc login.xc Если в hanger.xc "currentServerFormat": "<font color="#00ff00"><b>{server}</b></font>", то в xvm.log JSONxLoaderException: Illegal character "#" at 386:44 in "res_mods\configs\xvm\default\hangar.xc" Если в hangar.xc "currentServerFormat": "<font color="0x00ff00"><b>{server}</b></font>", то в xvm.log JSONxLoaderException: Illegal character "x" at 386:45 in "res_mods\configs\xvm\default\hangar.xc" Если в hanger.xc "currentServerFormat": "<font color="00ff00"><b>{server}</b></font>", то в xvm.log JSONxLoaderException: Illegal character "f" at 386:46 in "res_mods\configs\xvm\default\hangar.xc" Edited March 18, 2023 by SoaT Link to comment Short link Share on other sites More sharing options...
ktulho Posted March 18, 2023 Share Posted March 18, 2023 1 час назад, SoaT сказал: Если в hanger.xc "currentServerFormat": "<font color="#00ff00"><b>{server}</b></font>", то в xvm.log JSONxLoaderException: Illegal character "#" at 386:44 in "res_mods\configs\xvm\default\hangar.xc" Видимо проблема, в кавычках. Попробуйте так: "currentServerFormat": "<font color='#00ff00'><b>{server}</b></font>" 2 @ Link to comment Short link Share on other sites More sharing options...
Kurzdor Posted March 18, 2023 Share Posted March 18, 2023 (edited) @SoaT @ktulho ещё можно экранировать double quote если используете их в html: "currentServerFormat": "<font color=\"#00ff00\"><b>{server}</b></font>" Edited March 18, 2023 by Kurzdor 2 @ Link to comment Short link Share on other sites More sharing options...
SoaT Posted March 18, 2023 Author Share Posted March 18, 2023 11 часов назад, ktulho сказал: Видимо проблема, в кавычках. Попробуйте так: "currentServerFormat": "<font color='#00ff00'><b>{server}</b></font>" 5 часов назад, Kurzdor сказал: @SoaT @ktulho ещё можно экранировать double quote если используете их в html: "currentServerFormat": "<font color=\"#00ff00\"><b>{server}</b></font>" ДА! Точно. Оба варианта - рабочие. Спасибо большое, ребят Link to comment Short link Share on other sites More sharing options...
Recommended Posts