LuckyCrusky Posted October 13, 2016 Share Posted October 13, 2016 прошу добавить глобальный макрос {{my-clan}} пример использования: <font color='{{clannb={{my-clan}}?#FFC000|#FFFFFF}}'>{{clan}}</font> @ Quote Link to comment Short link Share on other sites More sharing options...
vlad_cs_sr Posted October 13, 2016 Share Posted October 13, 2016 @LuckyCrusky, пробовали форматирование {{clannb=LEPRA?#FFC000|#FFFFFF}} ? @ Quote Link to comment Short link Share on other sites More sharing options...
LuckyCrusky Posted October 13, 2016 Author Share Posted October 13, 2016 Влад, вы действительно считаете меня идиотом? ;) а если я захочу поделиться своим конфигом с кем-то не из моего клана? ;) @ Quote Link to comment Short link Share on other sites More sharing options...
demon2597 Posted October 13, 2016 Share Posted October 13, 2016 (edited) а если я захочу поделиться своим конфигом с кем-то не из моего клана? ;) тогда можно отдельный блок создать со списком кланов с помощью макроса ссылки {{.}}, где указать нужные значения для каждого нужного клана и в выражение подставлять этот макрос ссылки <font color='{{.texts.clans.{{clannb}}|#FFFFFF}}'>{{clan}}</font> ................... в texts.xc: "clans": { "ABCD": "#FFC000" } свой клан пусть вносят в список если кому надо. или меняют название или добавляют аналогично со своим цветом, это их дело уже;) Edited October 13, 2016 by demon2597 @ Quote Link to comment Short link Share on other sites More sharing options...
vlad_cs_sr Posted October 13, 2016 Share Posted October 13, 2016 вы действительно считаете меня идиотом? нет @ Quote Link to comment Short link Share on other sites More sharing options...
LuckyCrusky Posted October 13, 2016 Author Share Posted October 13, 2016 Дмитрий, ваше решение не подходит, т.к. на месте {{my-clan}} может оказаться любой клан, что невозможно предусмотреть в texts.xc @ Quote Link to comment Short link Share on other sites More sharing options...
demon2597 Posted October 13, 2016 Share Posted October 13, 2016 Дмитрий, ваше решение не подходит, т.к. на месте {{my-clan}} может оказаться любой клан, что невозможно предусмотреть в texts.xc но texts.xc ведь возможно подправить, о чем я и написал;) но если конечно чтобы совсем ничего не делать, то это да, только макрос новый вводить @ Quote Link to comment Short link Share on other sites More sharing options...
LuckyCrusky Posted October 13, 2016 Author Share Posted October 13, 2016 да я просто собираюсь выложить свой конфиг в общий доступ, я даже не буду знать, кто им пользуется @ Quote Link to comment Short link Share on other sites More sharing options...
demon2597 Posted October 13, 2016 Share Posted October 13, 2016 (edited) да я просто собираюсь выложить свой конфиг в общий доступ, я даже не буду знать, кто им пользуется ну я собственно и не возражаю, нормальный макрос, тем более если конфиг в общий доступ выкладывать то да, надо, согласен Edited October 13, 2016 by demon2597 @ Quote Link to comment Short link Share on other sites More sharing options...
sirmax Posted October 14, 2016 Share Posted October 14, 2016 Готово 2 @ Quote Link to comment Short link Share on other sites More sharing options...
LuckyCrusky Posted October 14, 2016 Author Share Posted October 14, 2016 спасибо :) @ Quote Link to comment Short link Share on other sites More sharing options...
demon2597 Posted October 14, 2016 Share Posted October 14, 2016 спасибо. тоже может заюзаю @ Quote Link to comment Short link Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.