2016-09-13, 01:41
(2016-09-13, 01:16)LeeH1988 Wrote: Hi, I am currently using Aeon Nox Silvo skin and I am enjoying the customization options available. After searching high and low through the xml files I am finding it difficult to locate where the code for the positioning of the widgets is and more specifically the amount of widget posters shown. I am using the compact panel poster widget which has 9 posters but I wish to change it to show 6/7 posters whilst still being able to scroll along. I would massively appreciate if you could point me in the right direction to achieve this. I would also like to keep the widget in the centre, thanks in advance and keep up the good work....The code for the Widgets is unlike any other skin code because it uses the skin shortcuts template feature. The code for them is spread across ~3 files. The main code is in shortcuts/template.xml and then there are includes and variables located in Includes_Widgets.xml and Variables_Widgets.xml respectively.
Changing them will not be so easy and centering a Widget will make the other useless. If you want to change the position easily and you do not care about the 2nd Widget then you can add a slide animation or new <top> tag in the Widget1 include in the Includes_Widgets.xml file.
Changing poster amount is simply math so divide the width by 9 and multiply that by 6 or 7 to get the width you need to display the amount you want.
I wish you luck and good fortune on your coding adventure
If you feel like it post some screens when you finish