MaxiDucoli
27-08-2017, 05:10:53
Hola, quer{ia preguntarles si a alguien se le ocurre como poder ayudarme.
Estoy queriendo hacer un editor de temas para el programa EmulationStation, se basa en datos XML.
Mi problema es completo.
No sé leer XML y no se me ocurre como poder pasar esos datos a controles.
Alguien podria darme una idea?
Les dejo el copy-paste del XML para que lo vean
Lo que necesitaría es saber si pueden ayudarme.
Lo que me sirve para hacer el control es lo que dice ;
<image
<video
<text
Y los datos dentro de ellos para las propiedades de los controles.
Es posible?
Les cuento que no es algo que quiero hacer para vender o cosa por estilo.
Es algo que quiero hacer para compartirlo en la comunidad de emuladores y maquinas arcade caseras.
Muchas gracias!
<theme>
<formatVersion>3</formatVersion>
<include>./../simple.xml</include>
<view name="system">
<image name="background" extra="true">
<path>./art/psp_art_blur.jpg</path>
</image>
<image name="logo">
<path>./art/psp.svg</path>
</image>
<helpsystem name="help">
<textColor>ffffff88</textColor>
<iconColor>ffffff88</iconColor>
</helpsystem>
</view>
<view name="basic, detailed">
<text name="system_name_1" extra="true">
<text>Sony</text>
<forceUppercase>1</forceUppercase>
<size>0.45 0.08</size>
<pos>0.527 0.01</pos>
<color>7b7d7f</color>
<fontPath>./../art/OPENSANS-LIGHT.TTF</fontPath>
<fontSize>0.055</fontSize>
<alignment>right</alignment>
</text>
<text name="system_name_2" extra="true">
<text>PlayStation Portable</text>
<forceUppercase>1</forceUppercase>
<size>0.45 0.08</size>
<pos>0.527 0.07</pos>
<color>7b7d7f</color>
<fontPath>./../art/OPENSANS-LIGHT.TTF</fontPath>
<fontSize>0.055</fontSize>
<alignment>right</alignment>
</text>
<image name="logo">
<path>./art/psp.svg</path>
<pos>0.025 0.079</pos>
<maxSize>0.45 0.1</maxSize>
<origin>0 0.5</origin>
</image>
</view>
<view name="basic">
<textlist name="gamelist">
<pos>0.025 0.22</pos>
<size>0.950 0.68</size>
<alignment>center</alignment>
<horizontalMargin>0.01</horizontalMargin>
</textlist>
</view>
<view name="detailed">
<!-- <measuring rectangle
<image name="measure" extra="true">
<pos>0.025 0.22</pos>
<origin>0 0</origin>
<size>0.1 0.301</size>
<path>./../art/white.png</path>
<color>ff00ff</color>
</image>
-->
<image name="md_image">
<pos>0.025 0.22</pos>
<!-- <size>0.125 0.301</size>
--> <maxSize>0.1 0.301</maxSize>
<origin>0 0</origin>
</image>
<text name="md_lbl_rating">
<pos>0.152 0.21</pos>
</text>
<text name="md_lbl_releasedate">
<pos>0.152 0.25</pos>
</text>
<text name="md_lbl_developer">
<pos>0.152 0.29</pos>
<size>0.133 0.04</size>
</text>
<text name="md_lbl_publisher">
<pos>0.152 0.33</pos>
<size>0.133 0.04</size>
</text>
<text name="md_lbl_genre">
<pos>0.152 0.37</pos>
</text>
<text name="md_lbl_players">
<pos>0.152 0.41</pos>
</text>
<text name="md_lbl_lastplayed">
<pos>0.152 0.45</pos>
</text>
<text name="md_lbl_playcount">
<pos>0.152 0.49</pos>
</text>
<text name="md_playcount">
<pos>0.285 0.49</pos>
</text>
<datetime name="md_lastplayed">
<pos>0.285 0.45</pos>
</datetime>
<text name="md_players">
<pos>0.285 0.41</pos>
</text>
<text name="md_genre">
<pos>0.285 0.37</pos>
<size>0.26 0.04</size>
</text>
<text name="md_publisher">
<pos>0.285 0.33</pos>
<size>0.26 0.04</size>
</text>
<text name="md_developer">
<pos>0.285 0.29</pos>
<size>0.26 0.04</size>
</text>
<datetime name="md_releasedate">
<pos>0.285 0.25</pos>
</datetime>
<rating name="md_rating">
<pos>0.285 0.216</pos>
<size>0.028 0.028</size>
<filledPath>./../art/star_filled_spacing.svg</filledPath>
<unfilledPath>./../art/star_hollow_3_spacing.svg</unfilledPath>
</rating>
<text name="md_description">
<size>0.52 0.3</size>
<pos>0.025 0.577</pos>
</text>
<textlist name="gamelist">
<pos>0.615 0.22</pos>
<size>0.359 0.68</size>
<alignment>left</alignment>
<horizontalMargin>0.01</horizontalMargin>
</textlist>
</view>
</theme>
Estoy queriendo hacer un editor de temas para el programa EmulationStation, se basa en datos XML.
Mi problema es completo.
No sé leer XML y no se me ocurre como poder pasar esos datos a controles.
Alguien podria darme una idea?
Les dejo el copy-paste del XML para que lo vean
Lo que necesitaría es saber si pueden ayudarme.
Lo que me sirve para hacer el control es lo que dice ;
<image
<video
<text
Y los datos dentro de ellos para las propiedades de los controles.
Es posible?
Les cuento que no es algo que quiero hacer para vender o cosa por estilo.
Es algo que quiero hacer para compartirlo en la comunidad de emuladores y maquinas arcade caseras.
Muchas gracias!
<theme>
<formatVersion>3</formatVersion>
<include>./../simple.xml</include>
<view name="system">
<image name="background" extra="true">
<path>./art/psp_art_blur.jpg</path>
</image>
<image name="logo">
<path>./art/psp.svg</path>
</image>
<helpsystem name="help">
<textColor>ffffff88</textColor>
<iconColor>ffffff88</iconColor>
</helpsystem>
</view>
<view name="basic, detailed">
<text name="system_name_1" extra="true">
<text>Sony</text>
<forceUppercase>1</forceUppercase>
<size>0.45 0.08</size>
<pos>0.527 0.01</pos>
<color>7b7d7f</color>
<fontPath>./../art/OPENSANS-LIGHT.TTF</fontPath>
<fontSize>0.055</fontSize>
<alignment>right</alignment>
</text>
<text name="system_name_2" extra="true">
<text>PlayStation Portable</text>
<forceUppercase>1</forceUppercase>
<size>0.45 0.08</size>
<pos>0.527 0.07</pos>
<color>7b7d7f</color>
<fontPath>./../art/OPENSANS-LIGHT.TTF</fontPath>
<fontSize>0.055</fontSize>
<alignment>right</alignment>
</text>
<image name="logo">
<path>./art/psp.svg</path>
<pos>0.025 0.079</pos>
<maxSize>0.45 0.1</maxSize>
<origin>0 0.5</origin>
</image>
</view>
<view name="basic">
<textlist name="gamelist">
<pos>0.025 0.22</pos>
<size>0.950 0.68</size>
<alignment>center</alignment>
<horizontalMargin>0.01</horizontalMargin>
</textlist>
</view>
<view name="detailed">
<!-- <measuring rectangle
<image name="measure" extra="true">
<pos>0.025 0.22</pos>
<origin>0 0</origin>
<size>0.1 0.301</size>
<path>./../art/white.png</path>
<color>ff00ff</color>
</image>
-->
<image name="md_image">
<pos>0.025 0.22</pos>
<!-- <size>0.125 0.301</size>
--> <maxSize>0.1 0.301</maxSize>
<origin>0 0</origin>
</image>
<text name="md_lbl_rating">
<pos>0.152 0.21</pos>
</text>
<text name="md_lbl_releasedate">
<pos>0.152 0.25</pos>
</text>
<text name="md_lbl_developer">
<pos>0.152 0.29</pos>
<size>0.133 0.04</size>
</text>
<text name="md_lbl_publisher">
<pos>0.152 0.33</pos>
<size>0.133 0.04</size>
</text>
<text name="md_lbl_genre">
<pos>0.152 0.37</pos>
</text>
<text name="md_lbl_players">
<pos>0.152 0.41</pos>
</text>
<text name="md_lbl_lastplayed">
<pos>0.152 0.45</pos>
</text>
<text name="md_lbl_playcount">
<pos>0.152 0.49</pos>
</text>
<text name="md_playcount">
<pos>0.285 0.49</pos>
</text>
<datetime name="md_lastplayed">
<pos>0.285 0.45</pos>
</datetime>
<text name="md_players">
<pos>0.285 0.41</pos>
</text>
<text name="md_genre">
<pos>0.285 0.37</pos>
<size>0.26 0.04</size>
</text>
<text name="md_publisher">
<pos>0.285 0.33</pos>
<size>0.26 0.04</size>
</text>
<text name="md_developer">
<pos>0.285 0.29</pos>
<size>0.26 0.04</size>
</text>
<datetime name="md_releasedate">
<pos>0.285 0.25</pos>
</datetime>
<rating name="md_rating">
<pos>0.285 0.216</pos>
<size>0.028 0.028</size>
<filledPath>./../art/star_filled_spacing.svg</filledPath>
<unfilledPath>./../art/star_hollow_3_spacing.svg</unfilledPath>
</rating>
<text name="md_description">
<size>0.52 0.3</size>
<pos>0.025 0.577</pos>
</text>
<textlist name="gamelist">
<pos>0.615 0.22</pos>
<size>0.359 0.68</size>
<alignment>left</alignment>
<horizontalMargin>0.01</horizontalMargin>
</textlist>
</view>
</theme>