Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Delete sprites deletes text?

Author
Message
Fluorescent
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 1st Aug 2005
Location: Stockholm, Sweden
Posted: 2nd Aug 2015 16:30
When I run the command DeleteAllSprites, my text objects are also deleted. Is that supposed to happen? I don't think it used to happen.

I'm running AppGameKit 2.0.14b on Windows 10.
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 2nd Aug 2015 19:58 Edited at: 2nd Aug 2015 19:58
give paul an example code

AGK (Steam) V2 Beta .. : Windows 10 Pro, 8.1 Pro 64 Bit : AMD (15.7.1) Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)
Fluorescent
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 1st Aug 2005
Location: Stockholm, Sweden
Posted: 3rd Aug 2015 17:41
After a bit of digging I've decided that the text isn't deleted, it just isn't shown. Both GetTextVisible and GetTextExists return 1 even though the text isn't actually visible.



And after the player has clicked an item in my simple menu I run

And the text vanishes. If I do

I get a 1 even though the text isn't visible.
Fluorescent
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 1st Aug 2005
Location: Stockholm, Sweden
Posted: 3rd Aug 2015 18:08
More comprehensive example.
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 3rd Aug 2015 19:42 Edited at: 3rd Aug 2015 19:43
can confirm, its a bug in 2.0.14b
@paul

AGK (Steam) V2 Beta .. : Windows 10 Pro, 8.1 Pro 64 Bit : AMD (15.7.1) Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)
Scraggle
Moderator
21
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 4th Aug 2015 00:01
AGK uses a default bitmap font to display text.
I guess that it is stored internally as a sprite sheet in the same way that a loaded bitmap font would be. So calling DeleteAllSprites() probably deletes the internal storage of the bitmap font too.

I'm only guessing of course and I agree that it is a bug because the default bitmap font shouldn't disappear.

AGK V2 user - Tier 1 (mostly)
Fluorescent
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 1st Aug 2005
Location: Stockholm, Sweden
Posted: 4th Aug 2015 16:53
The same thing happens with EditBoxes. The edit box is in fact there and I can change the value, but I can't see it.
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 4th Aug 2015 16:54
maybe add the issue to AppGameKit Version 2.0.14 and 2.0.14b

AGK (Steam) V2 Beta .. : Windows 10 Pro, 8.1 Pro 64 Bit : AMD (15.7.1) Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)

Login to post a reply

Server time is: 2024-09-29 03:20:29
Your offset time is: 2024-09-29 03:20:29