Skip to content

Commit

Permalink
Merge branch 'fix-boat-yard-icon-not-showing' into od_fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rgleason committed Sep 26, 2019
2 parents 478b2e7 + c75c55b commit 74b7ffc
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
8 changes: 6 additions & 2 deletions src/icons.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Autogenerated by png2wx.pl on Fri May 29 16:20:54 2015 */
/* Autogenerated by png2wx.pl on Tue Sep 24 16:45:40 2019 */

#include <wx/wxprec.h>
#ifndef WX_PRECOMP
Expand All @@ -25,7 +25,7 @@ wxBitmap *_img_marina_grn;
wxBitmap *_img_pier_yel;
wxBitmap *_img_plugin_logo;
wxBitmap *_img_ramp_azu;

wxBitmap *_img_ramp_grn;

void initialize_images(void)
{
Expand Down Expand Up @@ -101,5 +101,9 @@ void initialize_images(void)
wxMemoryInputStream sm("\211PNG\r\n\032\n\000\000\000\rIHDR\000\000\000 \000\000\000%\b\006\000\000\000#\267\353G\000\000\000\001sRGB\000\256\316\034\351\000\000\000\006bKGD\000\377\000\377\000\377\240\275\247\223\000\000\000\011pHYs\000\000\013\023\000\000\013\023\001\000\232\234\030\000\000\000\atIME\a\335\006\033\0031\022]\216H\314\000\000\003\357IDATX\303\355\226[lTU\024\206\277s\031\346RmK\245\005\333\231\352\324N\243m\264&@{\274$\275P\252\306\030\037\2244$\0301\210\004_H\324\244&b)Hb\032}\340\211\304\aC\346\251V\037E\001\223N!TBK\323\332\202\200\255\241ha\332\261X{A\230\2313s\266\017\325\351\314\3646\227\026_\370\337\366:{\257\365\237\265\327\277\326\206\373\370\237!\305\0334M\023f\263\031\305b\2363\032\306\322^d9f\257\b\033H\212\014\262\214\320CH\212<k\263Z\360|\367\275\264(\201\312\312J\021.-\341p\363A\032\207\245\025\375\323\026\247`\177\363\0012\307\306\361\2348\031q.Go\262\331l\253\022\034\240qX\342p\363AD \030\233\274\350\205\252\252\253\022<\232\204\244\310\213\0230\226\273\353\225\200\274\004\001I\222\356\271\nb\b\b!\026\335X\261vp\236\355X\371\235\344#\306eYM\364\334\321\262j\002\"\2107|\213Kw\257\221!\314\274\325_\220\366\025$L\340R`\230r[1\217)v\212\315\016\000.<\033\342\364\235^N\005\273\231\034s\3213Q\2324\0375\321\032\330y\301\314\267\025>\n,y\221\353RM*uY\025\324Q\001\271\0206\014\216O\236\245\365\326\025~\031}9\375\032h\333\024\246\3059g{\245;\310\353\327?\243w\352\n\361\345\"\204@\226$^\315\251\242\325\265\207s\317\347\322\3462\321\3462Q\226w:\261\032\210\317@C\217\302\343\371\247hq\326Gl'mV\266O\035\342\346\237\343\274d\325\250\265l\344\2315\245<eq!Gi\334\252X(\336\220\207,\313l\263\026\362\363\037\011\\\301B*\270\352}\201\306\250u\221c\206\243k\337\303q\327\301\373\376\317\371&\344\341\274\270\310\211p7\333\314\325\354c\ay\353m<\200\rU\231u\337<P\224X\r\314\033L\331\303\234\237t\306\330\256\215\274\301\a#\000:U.;-\353\366\322\347\037\344\243\333\357\3200\244s\016\035\206\246\200)\236s}\315\016k=\220\235\032\201#OT\002pf\314\307\217\326\037\030\033u\322\375WI\344\373v\313\026v\371>\345\253\240\a\275\350\014\014\335`\327\223]\254\017g#+\n\035!\211\275\003\331\211\253 \036\177\313\001r\324L\352\354v\352\345\267!\027B\241\020\036\257\227\326\231^\216\371\aq\347\177\314\021}\037C\243>\000\276\274X\0319_^\334\311\236\322\013|qys\212}@\022\377\236\221#\263BUU\352\013\013\331*\034\004\205\216\"+L\370\0024\014\351\363\216\367\377\272\223\376d:a\274\n\304\274&&\307\3545Kk0\014\203\222\374\r\364\345\303D`\212\236\340U\316\372\a8~\371\305\344\373\300\262\317\245\005;\353\234\213\034s\026u\031\233\371$w7}U\016:\265\207\330]\326\235\3704\\j\030%\336\352\347\\f\230m\274\273\3565>\3344\230\332\025l\351\234\006\246\323&\365t\356\314\334O\206\215\325\315\300B\370i|cb5p/\036$\222I]\234@8\034;|V\032-N\201\261\324\243\024Ib\177\363\201U!\361\337\263<\020\b,\255\264\232\332Z\021I\225a\314\312\3060\230\266?\214\376\346\241\204\202\231\334Md\217\214\306\330t]\307\357\367\323\325\325%%+\365\b\261\231G\n\226%ar7\221\365\273\227\366\366v)\355F\024\215\016\217G\312\364\3720\271\233V,xR\031X.\023&w\023\231\277\335\304\343\361$\3453%\335UWW\213\333NG\204\204\311\335\304\203\327o\320\321\321\221\264\277\224\205_SS#f\036\265\003\244\034<mh\232&4M\023\334G\032\370\a\037gv\023\n9\350+\000\000\000\000IEND\256B`\202", 1135);
_img_ramp_azu = new wxBitmap(wxImage(sm));
}
{
wxMemoryInputStream sm("\211PNG\r\n\032\n\000\000\000\rIHDR\000\000\000 \000\000\000%\b\006\000\000\000#\267\353G\000\000\000\001sRGB\000\256\316\034\351\000\000\000\006bKGD\000\377\000\377\000\377\240\275\247\223\000\000\000\011pHYs\000\000\013\023\000\000\013\023\001\000\232\234\030\000\000\000\atIME\a\334\001\030\027\034\030\355\227P\312\000\000\004\370IDATX\303\355\227YlTU\030\307\177\347\336s\347N7*\245\001\323R3B\021W@\021:.\201R'X\225h\002\242Ap%\232 \017F^\214\030c\204\aB\342\203&\004\02301\370`4\212M\264IY\312\024R\300\266!\005\272\220\001\261T\260*\024\244\333\2643s\227\343C\355\320)\2663SJ|\341{\273\347\234\373}\377\363\377\326\003\267\344\177\0261r\301\357\367+\32341\014#\276\246\224\032[\211\020\011g\225R\b!\020B\340\272.B\b\224RH)\331\267o\237\030\025@II\211\352{&\213\366\200E\270PM\350M\263:\004\276j\203\202Z\235\375\373\367\307\355\312\341\207233i\011X\364\027*20\320\205\206v=Ii\213\203K\177\241E{\300b\332\301\304=m\370\207\224\222p\241\302\213\201\234 \343\000:\032\331\302C\270P%\270\353:\000\256\353\016\376 4\304\004\031\037\351\3551\001\014m\216\274\271B\341\340\242\022\326 \242,\\\024j<\321\376_\000F\213v\035\235\a\355\231x\204D P(rT\006u\223\266S\350\344\245\305\303H\0332\225\237\014$5wl#\252b\374\341\\\246e\240\215,e\362\330\325\365X\272\213\027#e\227\215tAJ\000bX\264D\31717\263\230\231\372t\212\315\"\000\272\263\367p\260\277\221\275\261\006\032b!\216Y!l\315\305#$\203Q\224\034\224\034\265\240\000B\201+\024\002\305\242\316\365\264N\375\212B\357\3248\225\322\220\004r\027\022`\341`\272\271.\225]\265l\017W\320\302o\014\020\305\306\031\n\277\344\000\206\373G h\230\3629\207\a\232\331\326\267\233\223\3329\356\273\374*\217k\367\2639{-\363r\356f8\233J)4!x.o1\317N^D\304\215r\305\355\341hO\023;\372~\244^\013%\217\201D\006\\\036\270\364:\213\315\271\274\222SN\221\232J\224\030\307\370\205U\335\233\350\270\322\311S\031~\312\274\363y\304s/s\274\263\320\364k1\235\241{)\020\036^\230\022\300\324\014\216\364nJ\217\001\000\257\364\320\340\204\250\357\017a)\233\230\262)\027\017\263=g\003\263\315\"\326]\374\204\357\354 u\252\231*\247\201\225f)k'-cFF\001\331d\"\365A\365[\273\277\306\320%Q\345\214\r`d\346\316\261|\034\221!\274H\014\241c\b\235Z\2329\324\327\204\336\253\361\232Y\316\326\374u\034\217\234a\263\367-\226\377\265\221=\235\365t\352=\344\353\271<-JX\223\261\224S\372\371Q\253\352\250\0004\004\325\323?\003\2406\326D\355\300Ij\"\215\034u[\321\205\216\215\313*\357\023\254\275\270\205obA\254\031\207\b\023\341\335\334\027\231\346\334\206\246\353\324\330\307Y\331\373\021\256p\323\a\240\200\260\026%ON\242L\316'\220\275\200\217\001\333\266\371\266\253\232/\"\225|\031\251bW\301\207|j\275Cs\244\215K\242\213\215\341\235D\225\205k;\2546\003|\220\261\206\367\";\306Y\a\304`Lh\232\026\357\025RJV\347\227\363\222z\222\230\262\3205\2353=\347\331\320\263\215\260\210 \205\304+<`(*\334\303TD\016'\024\343\224\263`\210\205\004\267hZ\302YSxp]\227G'\317\245n\362N\376\216vs,\026\2426\322D\325@\035\215\356Y<\232\304\024\306\250\375B\216\247\201\214\006*\317\314%`,`iN\011\233y\223p\264\237]\275U\354\350\377\2116\361g\362n\230l\364\"M@Yf&o\347\257\340\375)/c\377\233\202i\024\"\305\033\235[h\265\332\351t\273\230\255\0271\313(\242\323\351\342D\354\014\b\301C\236\273\310\323&\021\262\317s\326\372\235\333\265<\346yfa\343\320\030=M\027}\334#}\230bp\272B%\001\220X\212\341\240u\"\316\323iu\201\323\261\013C\375\031\200\237\355\326k\347u\301E\256\262\327jH\340\366\224\333\036\237\212\222\316\003C\0148\2707m\014\037\356\242\353\0008\216CV\207\240_Y\250\024'\235Te@Ydu\bl\333\036;\006|\325\006\355\001\213\336\302\350M\031\313\243\321\201\2613\255\254\254L\rQ5\364\300PJ\361\353r\233\366eNJ\306|\225:\305\025F\302\232eYD\"\021\352\353\353E\272\251\036\a\326\266\302I\n\302W\2513\363\a\311\201\003\aR\322\255\245\n \030\014\212\342\n\003_\245>a\306\323b \031\023\276J\235\031\273u\202\301`Z:\307\365\372(--U\355+U\034\204\257R\347\316\3575jjj\322\3267\356\347\317\222%K\324\271\347\a\353\305x\215\337\260\370\375~\345\367\373\025\267\344\006\344\037\254d\r\254\365nB\334\000\000\000\000IEND\256B`\202", 1400);
_img_ramp_grn = new wxBitmap(wxImage(sm));
}
return;
}
3 changes: 2 additions & 1 deletion src/icons.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Autogenerated by png2wx.pl on Fri May 29 16:20:54 2015 */
/* Autogenerated by png2wx.pl on Tue Sep 24 16:45:40 2019 */
#ifndef ICONS_H
#define ICONS_H 1

Expand Down Expand Up @@ -27,5 +27,6 @@ extern wxBitmap *_img_marina_grn;
extern wxBitmap *_img_pier_yel;
extern wxBitmap *_img_plugin_logo;
extern wxBitmap *_img_ramp_azu;
extern wxBitmap *_img_ramp_grn;

#endif /* ICONS_H */
9 changes: 8 additions & 1 deletion src/squiddio_pi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Purpose: Squiddio plugin
*
***************************************************************************
* Copyright (C) 2014 by Mauro Calvi *
* Copyright (C) 2019 by Mauro Calvi *
* *
* 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 *
Expand Down Expand Up @@ -110,6 +110,7 @@ squiddio_pi::~squiddio_pi(void) {
delete _img_fuelpump_red;
delete _img_pier_yel;
delete _img_ramp_azu;
delete _img_ramp_grn;
delete _img_logimg_N;
delete _img_logimg_NE;
delete _img_logimg_E;
Expand Down Expand Up @@ -199,6 +200,7 @@ int squiddio_pi::Init(void) {
_T("Fuel Station"));
AddCustomWaypointIcon(_img_pier_yel, _T("pier_yel"), _T("Dock/Pier"));
AddCustomWaypointIcon(_img_ramp_azu, _T("ramp_azu"), _T("Boat Ramp"));
AddCustomWaypointIcon(_img_ramp_grn, _T("ramp_grn"), _T("Boat Yard"));

AddCustomWaypointIcon(_img_logimg_N, _T("logimg_N"), _T("North"));
AddCustomWaypointIcon(_img_logimg_NE, _T("logimg_NE"), _T("North East"));
Expand Down Expand Up @@ -570,6 +572,8 @@ bool squiddio_pi::ShowType(Poi * wp) {
return g_ViewDocks;
else if (wp->m_IconName == _T("ramp_azu"))
return g_ViewRamps;
else if (wp->m_IconName == _T("ramp_grn"))
return g_ViewOthers;
else if (wp->m_IconName == _T("others"))
return g_ViewOthers;
else if (wp->m_IconName == _T("aton_gry"))
Expand Down Expand Up @@ -1401,6 +1405,9 @@ void squiddio_pi::AddODIcons()
pAPI->PointIcon = *_img_ramp_azu;
pAPI->PointIconName = _T("ramp_azu");
pAPI->PointIconDescription = _("Boat Ramp");
pAPI->PointIcon = *_img_ramp_grn;
pAPI->PointIconName = _T("ramp_grn");
pAPI->PointIconDescription = _("Boat Yard");
m_pODAddPointIcon(pAPI);
pAPI->PointIcon = *_img_logimg_N;
pAPI->PointIconName = _T("logimg_N");
Expand Down

0 comments on commit 74b7ffc

Please sign in to comment.