1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

GumpImageBrowser.cs - SGI Command 1.1

Originally, Search Gump Images, now a mini in-game Gump Creator

  1. Lokai
    Requirements:
    REQUIRES My Custom Gump (CG):
    https://www.servuo.com/archive/custom-gump.656/

    Best used with large Wide-Screen monitor


    Code (C#):
    1. /**************************** GumpImageBrowser.cs **************************
    2. *
    3. *                    (C) 2016, Lokai
    4. *          
    5. * Description: Command that displays a gump that lets you browse
    6. *        the gump images. Only Administrator level to run the
    7. *        command. Only Owners can unlock. If one Administrator has
    8. *        the gump locked, it will not let another run the gump, to
    9. *        prevent accessing the same static objects at the same time.
    10. *  
    11. * Commands:
    12. *        SearchGumpImage or
    13. *        SGI - Opens the gump. If you supply an image ID, it
    14. *            will try to show that image first.
    15. *        SGIunlock or
    16. *        SGIu - If the gump gets locked, this will unlock it.
    17. *  
    18. * Extras:
    19. *        Assumes you have a text file at the following path:
    20. *            "Data/SGI/sgi.txt". This file loads descriptions
    21. *            for some of the gump images, and you can edit those
    22. *             descriptions or add new ones using the Gump.
    23. *          
    24. *        Gump information is stored in a static List of objects
    25. *            called ValidGumps. These are available to other
    26. *            gumps that you write by referencing SGI.ValidGumps
    27. *          
    28. *        Generates a set of Pinned images, so you can visually build
    29. *            a gump. Note, that the order you add them is how the Z
    30. *            is initially set up, but you can move them around, and
    31. *            change the Z, so images will move in front or behind
    32. *            other images displayed. Background pattern can be cycled
    33. *            among several possible backgrounds.
    34. *      
    35. *        Allows you to output Pinned Gump to .cs file. File will
    36. *            automatically be placed in the Data/SGI folder by
    37. *            default.
    38. *          
    39. *        Sample text file included - sgi.txt
    40. *  
    41. /***************************************************************************
    42. *
    43. *   This program is free software; you can redistribute it and/or modify
    44. *   it under the terms of the GNU General Public License as published by
    45. *   the Free Software Foundation; either version 2 of the License, or
    46. *   (at your option) any later version.
    47. *
    48. ***************************************************************************/
    sahisahi and zerodowned like this.

Recent Updates

  1. Fixed gump placement in the .cs template