Page 1 of 1

Several Questions

Posted: Mon May 23, 2016 1:18 am
by Murmel
Hi.

Sorry First my English ist not good.

1. How can I load a background Picture?
@BGPIC 1, "pergament800x600.png", {Transparency = #WHITE}

2. Can I write a Variable T$="Hello" in <textview styled="true"> ?

3. Can you give a Example to use HSpace.Width ?

Thx,
Greetings,

Murmel

Re: Several Questions

Posted: Tue May 24, 2016 10:28 pm
by airsoftsoftwair
Murmel wrote:Hi.

Sorry First my English ist not good.

1. How can I load a background Picture?
@BGPIC 1, "pergament800x600.png", {Transparency = #WHITE}
@BGPIC is for preloading things before the script starts. To load pictures at runtime, use LoadBGPic().
2. Can I write a Variable T$="Hello" in <textview styled="true"> ?
No, you can't use Hollywood code in XML code.
3. Can you give a Example to use HSpace.Width ?
Here you go:

Code: Select all

<hgroup>
   <button>One</button>
   <hspace width="50"/>
   <button>Two</button>
</hgroup>
This XML code creates two buttons with 50 pixels of blank space between them.