summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2020-12-27 22:40:37 +0100
committerfrosch <github@elsenhans.name>2021-01-11 22:15:58 +0100
commit8dda0ec4ff5bd0eb78a5c4672a470046e8c680d7 (patch)
tree0639cbd220b750678c464631c866d3c845920bdd
parentcd36e1716022dc86b128901604ebb0960d6dc35a (diff)
downloadopenttd-8dda0ec4ff5bd0eb78a5c4672a470046e8c680d7.tar.xz
Add: [NewGRF] new GUI sprites for 'rename' and 'go to location'.
-rw-r--r--media/baseset/openttd.grfbin510264 -> 510358 bytes
-rw-r--r--media/baseset/openttd/openttdgui.nfo4
-rw-r--r--media/baseset/openttd/openttdgui.pngbin26393 -> 43899 bytes
-rw-r--r--src/table/sprites.h4
4 files changed, 6 insertions, 2 deletions
diff --git a/media/baseset/openttd.grf b/media/baseset/openttd.grf
index 550863ff9..a63bfc4e2 100644
--- a/media/baseset/openttd.grf
+++ b/media/baseset/openttd.grf
Binary files differ
diff --git a/media/baseset/openttd/openttdgui.nfo b/media/baseset/openttd/openttdgui.nfo
index b458073be..eb1313365 100644
--- a/media/baseset/openttd/openttdgui.nfo
+++ b/media/baseset/openttd/openttdgui.nfo
@@ -4,7 +4,7 @@
// See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
//
-1 * 0 0C "OpenTTD GUI graphics"
- -1 * 3 05 15 \b 184 // OPENTTD_SPRITE_COUNT
+ -1 * 3 05 15 \b 186 // OPENTTD_SPRITE_COUNT
-1 sprites/openttdgui.png 8bpp 66 8 64 31 -31 7 normal
-1 sprites/openttdgui.png 8bpp 146 8 64 31 -31 7 normal
-1 sprites/openttdgui.png 8bpp 226 8 64 31 -31 7 normal
@@ -189,3 +189,5 @@
-1 sprites/openttdgui_convert_road.png 8bpp 24 0 32 32 0 0 normal
-1 sprites/openttdgui_convert_tram.png 8bpp 0 0 20 20 0 0 normal
-1 sprites/openttdgui_convert_tram.png 8bpp 24 0 32 32 0 0 normal
+ -1 sprites/openttdgui.png 8bpp 513 440 10 10 0 0 normal
+ -1 sprites/openttdgui.png 8bpp 526 440 10 10 0 0 normal
diff --git a/media/baseset/openttd/openttdgui.png b/media/baseset/openttd/openttdgui.png
index 900a612a8..1fc02aa61 100644
--- a/media/baseset/openttd/openttdgui.png
+++ b/media/baseset/openttd/openttdgui.png
Binary files differ
diff --git a/src/table/sprites.h b/src/table/sprites.h
index 7d9f980ef..296254c78 100644
--- a/src/table/sprites.h
+++ b/src/table/sprites.h
@@ -54,7 +54,7 @@ static const SpriteID SPR_LARGE_SMALL_WINDOW = 682;
/** Extra graphic spritenumbers */
static const SpriteID SPR_OPENTTD_BASE = 4896;
-static const uint16 OPENTTD_SPRITE_COUNT = 184;
+static const uint16 OPENTTD_SPRITE_COUNT = 186;
/* Halftile-selection sprites */
static const SpriteID SPR_HALFTILE_SELECTION_FLAT = SPR_OPENTTD_BASE;
@@ -163,6 +163,8 @@ static const SpriteID SPR_IMG_DELETE_LEFT = SPR_OPENTTD_BASE + 166;
static const SpriteID SPR_IMG_DELETE_RIGHT = SPR_OPENTTD_BASE + 167;
static const SpriteID SPR_WINDOW_DEFSIZE = SPR_OPENTTD_BASE + 168;
+static const SpriteID SPR_RENAME = SPR_OPENTTD_BASE + 184;
+static const SpriteID SPR_GOTO_LOCATION = SPR_OPENTTD_BASE + 185;
static const SpriteID SPR_IMG_CARGOFLOW = SPR_OPENTTD_BASE + 174;