<Context FontSize="20" Font="UI/Fonts/Titillium-Semibold">
<Container ID="ScreenContainer" Anchor="C,C" TextAnchor="C,C" Offset="0,0" Size="f,f" hidden="0" alpha="1">
<Image Texture="UI/Art/GameStyle/LoadScreen.dds" Anchor="c,c" FillAndCrop="1" Size="f,f" alpha="1" hidden="0"/>
<Container Anchor="C,T" Offset="0,40" GridID="BlueBox" ID="Panel" ConsumeMouse="1" AutoSize="1" AutoSizePadding="250,30" hidden ="0">
<Text DoNotTranslate="1" Text=" " ID="LoadingText" Anchor="c,c" GlyphColor="Orange" />
</Container>
<Image ID="LoadingGameLogo" Anchor="R,B" Offset="100,100" Texture="UI/Art/GameStyle/Play/loadicon.dds" Hidden="0" Size ="200,200"/>
</Container>
</Context>
This is what the current state of the code is (in this state, it is entirely functional). Right now, it takes the image from the correct folder, and uses it briefly for the loading screen. Note that the ../loadicon.dds should always be there, regardless of which loading screen is used.
What I want to do is have XML choose a random element from a set list alongside ../LoadScreen.dds so that the loading screen is randomly chosen from amongst them. How exactly should I go about this process? I don't know if I should set a variable that picks a number in a set, or if there's a better way to have XML just choose a random element from the options I offer it.
Aucun commentaire:
Enregistrer un commentaire