Skip to content

Commit 1e9d850

Browse files
committed
Feat/Menu: New entries for Support Forum/HowTo
1 parent 2fae1b8 commit 1e9d850

File tree

3 files changed

+27
-4
lines changed

3 files changed

+27
-4
lines changed

Include/Constants.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,8 @@ constexpr const char* REMOTE_SIGNATURE = "TwinFan.plugin.XPMP2.Remote";
237237
#define MENU_HELP_AC_INFO_WND "A/C Info Window"
238238
#define MENU_HELP_SETTINGS "Settings"
239239
#define MENU_HELP_INSTALL_CSL "Installaton of CSL Models"
240+
#define MENU_HELP_SUPPORT_FORUM "Support Forum"
241+
#define MENU_HELP_SUPPORT_HOWTO "Support HowTo"
240242
#define MENU_NEWVER "New Version %s available!"
241243
#ifdef DEBUG
242244
#define MENU_RELOAD_PLUGINS "Reload all Plugins (Caution!)"
@@ -270,6 +272,9 @@ constexpr const char* REMOTE_SIGNATURE = "TwinFan.plugin.XPMP2.Remote";
270272
#define HELP_SET_CSL "setup/configuration/settings-csl"
271273
#define HELP_SET_DEBUG "setup/configuration/settings-debug"
272274

275+
#define URL_SUPPORT_FORUM "https://forums.x-plane.org/index.php?/forums/forum/457-livetraffic-support/"
276+
#define URL_SUPPORT_HOWTO "https://forums.x-plane.org/index.php?/forums/topic/174691-support"
277+
273278
//MARK: File Paths
274279
// these are under the plugins directory
275280
#define PATH_FLIGHT_MODELS "Resources/FlightModels.prf"

Src/LiveTraffic.cpp

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ enum menuItems {
5555
MENU_ID_HELP_AC_INFO_WND,
5656
MENU_ID_HELP_SETTINGS,
5757
MENU_ID_HELP_INSTALL_CSL,
58+
MENU_ID_HELP_SUPPORT_FORUM,
59+
MENU_ID_HELP_SUPPORT_HOWTO,
5860
MENU_ID_NEWVER,
5961
#ifdef DEBUG
6062
MENU_ID_RELOAD_PLUGINS,
@@ -130,7 +132,11 @@ void MenuHandler(void * /*mRef*/, void * iRef)
130132
void MenuHandlerHelp (void * /*mRef*/, void * iRef)
131133
{
132134
const char* helpPath = static_cast<const char*>(iRef);
133-
LTOpenHelp(helpPath);
135+
// if it starts with https it is a full URL, otherwise a help sub path
136+
if (stribeginwith(helpPath, "https://"))
137+
LTOpenURL(helpPath);
138+
else
139+
LTOpenHelp(helpPath);
134140
}
135141

136142
// the "Aircraft displayed" menu item includes the number of displayed a/c
@@ -323,6 +329,9 @@ bool RegisterMenuItem ()
323329
aMenuItems[MENU_ID_HELP_AC_INFO_WND] = XPLMAppendMenuItem(menuHelpID, MENU_HELP_AC_INFO_WND, (void*)HELP_AC_INFO_WND,1);
324330
aMenuItems[MENU_ID_HELP_SETTINGS] = XPLMAppendMenuItem(menuHelpID, MENU_HELP_SETTINGS, (void*)HELP_SETTINGS,1);
325331
aMenuItems[MENU_ID_HELP_INSTALL_CSL] = XPLMAppendMenuItem(menuHelpID, MENU_HELP_INSTALL_CSL, (void*)HELP_INSTALL_CSL,1);
332+
XPLMAppendMenuSeparator(menuHelpID);
333+
aMenuItems[MENU_ID_HELP_SUPPORT_FORUM]= XPLMAppendMenuItem(menuHelpID, MENU_HELP_SUPPORT_FORUM, (void*)URL_SUPPORT_FORUM,1);
334+
aMenuItems[MENU_ID_HELP_SUPPORT_HOWTO]= XPLMAppendMenuItem(menuHelpID, MENU_HELP_SUPPORT_HOWTO, (void*)URL_SUPPORT_HOWTO,1);
326335

327336
#ifdef DEBUG
328337
// Separator

docs/readme.html

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ <h1 id="support">Support</h1>
129129

130130
<h1 id="release-notes">Release Notes</h1>
131131

132-
<p>The issue number links refer to issue on GitHub with (often technical) details.</p>
132+
<p>The issue number links refer to issues on GitHub with (often technical) details.</p>
133133

134134
<h2>v3</h2>
135135

@@ -147,7 +147,11 @@ <h3>v3.5.1</h3>
147147
<P>Change log:</P>
148148

149149
<ul>
150-
<li>Not designated a Beta version as v3.5.0 accidently was. No usage time limit.</li>
150+
<li>Not designated a Beta version as v3.5.0 accidently was. No usage time limit.<br>
151+
You want to set <i><a href="https://twinfan.gitbook.io/livetraffic/setup/configuration/settings-advanced#logging">Settings &gt; Advanced &gt; Logging</a> &gt; Log.txt logging level</i>
152+
back to "Warning" to reduce output to <code>Log.txt</code>.
153+
That setting got set to "Debug" while running a Beta version.
154+
</li>
151155
<li>
152156
RealTraffic with historic data:
153157
<ul>
@@ -157,7 +161,12 @@ <h3>v3.5.1</h3>
157161
</ul>
158162
</li>
159163
<li>
160-
OpenSky Master File: Cleanup old database files.
164+
OpenSky Master File: Removal of no longer used database files.
165+
</li>
166+
<li>
167+
Additional Help menu entries for
168+
<a href="https://forums.x-plane.org/index.php?/forums/forum/457-livetraffic-support/">Support Forum</a> and
169+
<a href="https://forums.x-plane.org/index.php?/forums/topic/174691-support">Support HowTo</a>.
161170
</li>
162171
</ul>
163172

0 commit comments

Comments
 (0)