Results 1 to 8 of 8

Thread: reload DXG file

  1. #1

    reload DXG file

    DXImageList.LoadFromFile('List1.dxg');
    DXImageList.LoadFromFile('List2.dxg');

    but List1.dxg appear
    How can i remain List1.dxg (List1.dxg+List2.dxg)

  2. #2

    reload DXG file

    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?

  3. #3

    reload DXG file

    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?

  4. #4

    reload DXG file

    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?

  5. #5
    Legendary Member cairnswm's Avatar
    Join Date
    Nov 2002
    Location
    Randburg, South Africa
    Posts
    1,537

    reload DXG file

    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)

  6. #6

    Restore

    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

  7. #7

    reload DXG file

    ImageList.LoadFromFile('List1.dxg');
    ImageList.Items.Restore;
    ImageList.LoadFromFile('List2.dxg');
    it's doesn't work
    it's still only List2.dxg

  8. #8

    merge

    Sorry, I must have read your first post incorrectly

    DXImageList.LoadFromFile('List1.dxg');
    DXImageList.LoadFromFile('List2.dxg');

    but List1.dxg appear
    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.

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •