Several Questions

Discuss GUI programming with the RapaGUI plugin here
Post Reply
Murmel
Posts: 31
Joined: Mon Apr 12, 2010 9:03 pm

Several Questions

Post by Murmel » Mon May 23, 2016 1:18 am

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

User avatar
airsoftsoftwair
Posts: 2968
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Several Questions

Post by airsoftsoftwair » Tue May 24, 2016 10:28 pm

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.

Post Reply