Skip to content

Parametric attribute values #19

@ada-x64

Description

@ada-x64

I might just be doing this wrong, but it would be extremely helpful to be able to do something like this:

<!--bg_img.xml -->
<template>
    <property name="src" />
    <image
            src="{src}"
            zindex="-100"
            position="absolute"
            top="0"
            left="0"
            width="100vw"
            height="100vh"
        />
</template>
<!-- main_menu.xml -->
<template>
    <bg_img src="textures/bg1.png" />
    <!-- ...-->
</template>

As it is now, you could probably use a tag, then query every BgImage component and manually set the image source, but generally it would be awesome to be able to set these without having to go through the code. This would make styling components way easier.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions