Gamestudio Links
Zorro Links
Newest Posts
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 1,490 guests, and 9 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19058 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
how to make on screen buttons #77594
06/13/06 16:06
06/13/06 16:06
Joined: Jun 2006
Posts: 35
Texas
D
DancesWithLight Offline OP
Newbie
DancesWithLight  Offline OP
Newbie
D

Joined: Jun 2006
Posts: 35
Texas
I understand how to overlay a bitmap same size as the screen with everything blacked out but the buttons. Can you direct me to a wdl that would give mouseover and use the button when clicked? What I'd like to do is have buttons showing on one side all during the game which can be clicked to cause things.


Waiting for fully immersible Virtual reality.
Re: how to make on screen buttons [Re: DancesWithLight] #77595
06/13/06 16:15
06/13/06 16:15
Joined: May 2005
Posts: 2,713
Lübeck
Slin Offline
Expert
Slin  Offline
Expert

Joined: May 2005
Posts: 2,713
Lübeck
for example:


function function_on
{
//do sth
}

function function_off
{
//do sth
}

function function_over
{
//do sth
}

bmap bmap_on = <bmap_on.tga>;
bmap bmap_off = <bmap_off.tga>;
bmap bmap_over = <bmap_over.tga>;

panel Stuff
{
pos_x = 0;
pos_y = 0;

button = 10,10,bmap_on,bmap_off,bmap_over,function_on,function_off,function_over;
}



if you don´t need for example the function over you can write a 0 instaed the function.

Re: how to make on screen buttons [Re: Slin] #77596
06/13/06 16:51
06/13/06 16:51
Joined: Jun 2006
Posts: 35
Texas
D
DancesWithLight Offline OP
Newbie
DancesWithLight  Offline OP
Newbie
D

Joined: Jun 2006
Posts: 35
Texas
Great! Now I'm sure how to get the rollover to show which button is activated. Would you please show me how to make the left mousebutton activate that choice?


Waiting for fully immersible Virtual reality.
Re: how to make on screen buttons [Re: DancesWithLight] #77597
06/13/06 17:31
06/13/06 17:31
Joined: May 2005
Posts: 2,713
Lübeck
Slin Offline
Expert
Slin  Offline
Expert

Joined: May 2005
Posts: 2,713
Lübeck
I´m not sure what you mean. But if I understand right, you want to have called a function if the left mouse button ist pressed and the mouse is over the button.
If this realy is what you mean the answer is easy, because what you are looking for is the function_on.

Re: how to make on screen buttons [Re: Slin] #77598
06/13/06 18:08
06/13/06 18:08
Joined: Jun 2006
Posts: 35
Texas
D
DancesWithLight Offline OP
Newbie
DancesWithLight  Offline OP
Newbie
D

Joined: Jun 2006
Posts: 35
Texas
Yes, I want to hover over buttons and click to choose, then have it call the function.


Waiting for fully immersible Virtual reality.
Re: how to make on screen buttons [Re: DancesWithLight] #77599
06/13/06 18:37
06/13/06 18:37
Joined: May 2005
Posts: 2,713
Lübeck
Slin Offline
Expert
Slin  Offline
Expert

Joined: May 2005
Posts: 2,713
Lübeck
As I wrote, if you click on the button, the function function_on is called.

Re: how to make on screen buttons [Re: Slin] #77600
06/13/06 20:56
06/13/06 20:56
Joined: Jun 2006
Posts: 35
Texas
D
DancesWithLight Offline OP
Newbie
DancesWithLight  Offline OP
Newbie
D

Joined: Jun 2006
Posts: 35
Texas
I understand. Its a hundred dregrees in here. Thought there was a command I hadn't heard of in wdl speak, "function_on". I downloaded the csript tutorial and will study it before I ask any more brainless questions. It even has a complete example of buttons. Thank you for your help.


Waiting for fully immersible Virtual reality.

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1