- Requirements
- REQUIRES My Custom Gump (CG):
https://www.servuo.com/archive/custom-gump.656/
Best used with large Wide-Screen monitor
Code:
/**************************** GumpImageBrowser.cs **************************
*
* (C) 2016, Lokai
*
* Description: Command that displays a gump that lets you browse
* the gump images. Only Administrator level to run the
* command. Only Owners can unlock. If one Administrator has
* the gump locked, it will not let another run the gump, to
* prevent accessing the same static objects at the same time.
*
* Commands:
* SearchGumpImage or
* SGI - Opens the gump. If you supply an image ID, it
* will try to show that image first.
* SGIunlock or
* SGIu - If the gump gets locked, this will unlock it.
*
* Extras:
* Assumes you have a text file at the following path:
* "Data/SGI/sgi.txt". This file loads descriptions
* for some of the gump images, and you can edit those
* descriptions or add new ones using the Gump.
*
* Gump information is stored in a static List of objects
* called ValidGumps. These are available to other
* gumps that you write by referencing SGI.ValidGumps
*
* Generates a set of Pinned images, so you can visually build
* a gump. Note, that the order you add them is how the Z
* is initially set up, but you can move them around, and
* change the Z, so images will move in front or behind
* other images displayed. Background pattern can be cycled
* among several possible backgrounds.
*
* Allows you to output Pinned Gump to .cs file. File will
* automatically be placed in the Data/SGI folder by
* default.
*
* Sample text file included - sgi.txt
*
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/