Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Theming: Binding engine condition (X ? A : B) not working on stackpanels #1850

Open
pajarorrojo opened this issue Jan 11, 2025 · 0 comments
Open

Comments

@pajarorrojo
Copy link
Contributor

Concerned project

Standalone emulationstation

Distribution Version

41 Stable

Architecture

x86_64

Issue description

Hello,

The condition (X ? A : B) in the binding engine is not working inside a stackpanel, neither in the attributes of the stackpanel itself nor in the attributes of its children. An example:

      <stackpanel name="contenedor-gamedata" extra="true">
         <x>exists({game:video}) ? '0.2' : '0.8'</x>
         <y>0.5</y>
         <size>0.5 0.03</size>
         <orientation>horizontal</orientation>
         <zIndex>99</zIndex>

            <text name="game-name">
               <text>{game:name}</text>
               <color>{game:favorite} ? 'ff0000' : 'ffffff'</color>
            </text>
      </stackpanel>

In the simple example, neither the horizontal position of the stackpanel changes if the game video does not exist, nor does the color of the game title change if it is marked as a favorite.

Thank you.

Logs and data

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant