Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 03/05/26 02:58
zorro with ccxt?
by opm. 03/03/26 03:17
WFO Training with parallel cores Zorro64
by Martin_HH. 02/26/26 16:03
Zorro version 3.0 prerelease!
by TipmyPip. 02/25/26 16:38
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (TipmyPip, VoroneTZ), 5,471 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
the1, alx, ApprenticeInMuc, PatrickH90, USER0328
19200 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
The text is below the panel! #79949
06/29/06 14:26
06/29/06 14:26
Joined: Feb 2006
Posts: 124
Dallas,TX
Delirium Offline OP
Member
Delirium  Offline OP
Member

Joined: Feb 2006
Posts: 124
Dallas,TX
Hi,

I successfully wrote a panel and made a bitmap for it, and it displays on the screen correctly. However, the text which is supposed to show on top of the panel is covered by the panel. I can just see the text peeking from the edge of the panel. I'll have to change the text position later, but for now, how can I make the text show on top?

if my_variable == 1
{
talk_panel.pos_X = 10;
talk_panel.pos_y = 10;
talk_panel.visible = on;
msg_show("This is the text which should be on top.",10);
waitt(10);
talk_panel.visible = off;
}

Using a5 style wdl running on a6 extra.


Learning to write lite-C -- A8 commercial
Re: The text is below the panel! [Re: Delirium] #79950
06/29/06 14:34
06/29/06 14:34
Joined: Apr 2005
Posts: 2,332
Germany, BaWü
aztec Offline

Expert
aztec  Offline

Expert

Joined: Apr 2005
Posts: 2,332
Germany, BaWü
Okay too bad why do you use msg_show I know its from the templates but its easy done if you try to write your code alone try this:
Code:

write this on the upper of your script
string my_text ="change this to your text";
font simple = "arial",0, 30;

place this somewhere:
text the_text
{
string = my_text;
font = simple;
pos_x = 10;
pos_y = 10; //now the text is where your panel is

if my_variable == 1
{
talk_panel.pos_X = 10;
talk_panel.pos_y = 10;
talk_panel.visible = on;
my_text.visible = on;
waitt(10);
my_text.visible = off;
talk_panel.visible = off;
}



I hope this helped you try this code and tell me if it worked


Visit:
schwenkschuster-design.de
Re: The text is below the panel! [Re: aztec] #79951
06/29/06 15:26
06/29/06 15:26
Joined: May 2004
Posts: 1,510
Denmark
Claus_N Offline
Serious User
Claus_N  Offline
Serious User

Joined: May 2004
Posts: 1,510
Denmark
First of all, don't use "waitt", it's old syntax (use "wait" or "sleep" instead).

You should read about the "layer" property of the panel, or text. I don't know what the layer value of the msg_show temp. text is, but it should be higher than the layer property of your panel, to show the text in front of your panel.

Re: The text is below the panel! [Re: aztec] #79952
06/29/06 19:39
06/29/06 19:39
Joined: Feb 2006
Posts: 124
Dallas,TX
Delirium Offline OP
Member
Delirium  Offline OP
Member

Joined: Feb 2006
Posts: 124
Dallas,TX
Sorry, it got too complicated trying this. I got the msg_show to work now.

Thanks


Learning to write lite-C -- A8 commercial
Re: The text is below the panel! [Re: Delirium] #79953
06/29/06 19:41
06/29/06 19:41
Joined: Feb 2006
Posts: 124
Dallas,TX
Delirium Offline OP
Member
Delirium  Offline OP
Member

Joined: Feb 2006
Posts: 124
Dallas,TX
Sorry, when I replied I thought I was replying to the use text instead of msg_show. Setting the layer on the panel to a lower number WAS the answer.
Thanks for the thumbs up on the Sleep etc commands too.


Learning to write lite-C -- A8 commercial
Re: The text is below the panel! [Re: Delirium] #79954
06/29/06 20:19
06/29/06 20:19
Joined: May 2004
Posts: 1,510
Denmark
Claus_N Offline
Serious User
Claus_N  Offline
Serious User

Joined: May 2004
Posts: 1,510
Denmark
np mate


Gamestudio download | 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