Sharing bitmaps between guis not working?!?
by Derek · in Technical Issues · 05/21/2006 (3:58 pm) · 0 replies
I used and successfully implemented this simple tutorial -
http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=7675
Everything worked just fine, but I wanted to have the same preview image show up on the loading GUI screen. So I copied this code
new GuiBitmapCtrl(PreviewImage) {
Profile = "GuiWindowProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "280 62";
Extent = "240 180";
MinExtent = "8 2";
Visible = "1";
wrap = "0";
Everything seemed to work just fine, sort of. When I would start my game up and go to the start mission gui when I select any map, the preview is just blank. Then, if I start the mission the correct mission preview image that I have selected shows up where I want it. So now, it works on the loading GUI, but not on the start mission GUI, and they both access the same function described in startmission.cs.
http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=7675
Everything worked just fine, but I wanted to have the same preview image show up on the loading GUI screen. So I copied this code
new GuiBitmapCtrl(PreviewImage) {
Profile = "GuiWindowProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "280 62";
Extent = "240 180";
MinExtent = "8 2";
Visible = "1";
wrap = "0";
Everything seemed to work just fine, sort of. When I would start my game up and go to the start mission gui when I select any map, the preview is just blank. Then, if I start the mission the correct mission preview image that I have selected shows up where I want it. So now, it works on the loading GUI, but not on the start mission GUI, and they both access the same function described in startmission.cs.
About the author