Created
August 11, 2012 20:46
-
-
Save 40/3327173 to your computer and use it in GitHub Desktop.
Applying tiled background to container or page in #BB10 Cascades
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Container { | |
id: rootContainer | |
background: back.imagePaint | |
attachedObjects: [ | |
ImagePaintDefinition { | |
id: back | |
repeatPattern: RepeatPattern.XY | |
imageSource: "asset:///container/tiled/core16x16" | |
} | |
] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Page { | |
id: tab1 | |
background: t1bg.imagePaint | |
attachedObjects: [ | |
ImagePaintDefinition { | |
id: t1bg | |
repeatPattern: RepeatPattern.XY | |
imageSource: "asset:///container/tiled/core16x16" | |
} | |
] | |
} | |
Page { | |
id: tab2 | |
background: t2bg.imagePaint | |
attachedObjects: [ | |
ImagePaintDefinition { | |
id: t2bg | |
repeatPattern: RepeatPattern.XY | |
imageSource: "asset:///container/tiled/core16x16" | |
} | |
] | |
} | |
Page { | |
id: tab3 | |
background: t3bg.imagePaint | |
attachedObjects: [ | |
ImagePaintDefinition { | |
id: t3bg | |
repeatPattern: RepeatPattern.XY | |
imageSource: "asset:///container/tiled/core16x16" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For people arriving here from a search engine, make sure you read the documentation for RepeatPattern before trying this. In particular, the image must be a power of two (with any ratio) and must have a metadata (.amd) file that sets "repeatable: true".