DXImageList.LoadFromFile('List1.dxg');
DXImageList.LoadFromFile('List2.dxg');
but List1.dxg appear
How can i remain List1.dxg (List1.dxg+List2.dxg)
DXImageList.LoadFromFile('List1.dxg');
DXImageList.LoadFromFile('List2.dxg');
but List1.dxg appear
How can i remain List1.dxg (List1.dxg+List2.dxg)
I can?¢_~t imagine why you?¢_~d wish to do this, why not use a couple of image list components, or move the images to one list?
There is about 200 of dxg file in my game application.
I want to load them in dynamic,each game level needs different dxg file
and it is impossible to load all file at the same time(file size is over 600M).
or put 200 DXImagelist at form?
I kinda amazes me that you have over 200 imagelists in your game. Guessing an avarage of 15 images/list, makes 3000 images :shock: wow!
In any case, it's quite impossible to place 200 imagelists on the form because it will slowdown your game enormously.
But if one level needs one perhaps two or mayby three dxg files then why not load each file to seperate imagelists before the start of each level?
But you would want to reuse those image lists on each level.
For example: For each level I have a list for 1. Player images, 2. Map images, 3. Enemies, 4. Objects.
If I have 100 levels I'd need to repeat 100 times - I'd rather just reuse the exisiting lists.
I must admit I havn't tried reusing image lists - I've just presumed they would work when I get to need them.
William Cairns
My Games: http://www.cairnsgames.co.za (Currently very inactive)
MyOnline Games: http://TheGameDeveloper.co.za (Currently very inactive)
have you tried
DXImageList1.Items.Restore;
do this after loading your dxg and I am sure it will work.
The views expressed on this programme are bloody good ones. - Fred Dagg
ImageList.LoadFromFile('List1.dxg');
ImageList.Items.Restore;
ImageList.LoadFromFile('List2.dxg');
it's doesn't work
it's still only List2.dxg
Sorry, I must have read your first post incorrectly
I thought the problem was that you couldn't get list2 to appear. Merging I have never tried and I think you may be out of luck.DXImageList.LoadFromFile('List1.dxg');
DXImageList.LoadFromFile('List2.dxg');
but List1.dxg appear
Maybe you could use a second imagelist to load list2, then create new items copy from imagelist2 and add to imagelist1 and then clear imagelist2 again.
Or depending hopw you have organised your images why not use multiple imagelists?
The views expressed on this programme are bloody good ones. - Fred Dagg
Bookmarks