Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (Ayumi, Power_P), 1,065 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
panel bitmap change #152681
09/08/07 08:35
09/08/07 08:35
Joined: Jul 2006
Posts: 96
C
ChildeHarold Offline OP
Junior Member
ChildeHarold  Offline OP
Junior Member
C

Joined: Jul 2006
Posts: 96
stupid question: I just want to change the panel bitmap on the fly.
What function do I need for that?

Last edited by ChildeHarold; 09/08/07 08:55.
Re: panel bitmap change [Re: ChildeHarold] #152682
09/08/07 08:40
09/08/07 08:40
Joined: Oct 2006
Posts: 873
S
Shadow969 Offline
User
Shadow969  Offline
User
S

Joined: Oct 2006
Posts: 873
not sure about it
your_panel.bmap = your_bmap;

Re: panel bitmap change [Re: Shadow969] #152683
09/08/07 09:00
09/08/07 09:00
Joined: Jul 2006
Posts: 96
C
ChildeHarold Offline OP
Junior Member
ChildeHarold  Offline OP
Junior Member
C

Joined: Jul 2006
Posts: 96
yes, that works in a way - but not really convincing.
Here's what I am doing. I am creating a thumbnail on the fly which is part of a panel,here
panel ThumnailForeground

which has per definition the thumbnail.bmp as source.
Although the porgram changes this bmap, it does not affect the panel. So I conclude: There's a necessity of some update. The program read the bitmap buffer and stores - and it does not bother about the changed file.
I tried to work around, but even the following function did not work.
It changes the bitmap - but just one time, that's all.


var tswtich = 0;

function TestThumb()
{


if (tswitch == 0)
{
ThumnailForeground.bmap = thumb2;
tswitch = 1;
}
else
{
tswitch = 0;
ThumnailForeground.bmap = thumb1;
} Code:
  



Re: panel bitmap change [Re: ChildeHarold] #152684
09/10/07 04:15
09/10/07 04:15
Joined: Jun 2007
Posts: 152
Norway
D
Darkyyes Offline
Member
Darkyyes  Offline
Member
D

Joined: Jun 2007
Posts: 152
Norway
if you want to change panels in-game you should probably code 2 seperate panel codes and as when you use them it's defined and changed in a diffrent code file



to change between you should have a check for if tswitch = 1; is on then turn off tswitch = 1; then turn on tswitch = 0;
so get it back it should check whats currently on and turn it off then turn on the other one

im not especially good witch scripts but perhaps this could help you =/

Last edited by Darkyyes; 09/10/07 04:17.

New to lite-c and gamestudio in general, thank you for reading.
Com, A7 v7.7

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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