You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1) Place the vanilla JS SDL.min.js file into this directory
3
-
1) Request a [Manticore instance](https://smartdevicelink.com/resources/manticore/)
4
-
1) Open two terminal sessions and `cd` both of them into `./examples/js/hello-sdl`
5
-
1) In one terminal session, run `java -jar proxy.jar m.sdl.tools [PORT]`, where `[PORT]` is the one given to you by Manticore
6
-
1) In the other terminal session, run `npm install` then `npm start`.
7
-
1) Your browser should automatically open and the test app should appear on your Manticore UI.
8
-
1) Click on the app in Manticore and observe the series of `Show` RPCs performed. Logs can be seen in your browser's JavaScript console.
3
+
2) Request a [Manticore instance](https://smartdevicelink.com/resources/manticore/).
4
+
3) Open the file `./examples/js/hello-sdl/index.html` in any text editor and change the transport config's URL and port value to what Manticore's "WS URL" says.
5
+
4) Open a terminal session and `cd` into `./examples/js/hello-sdl`
6
+
5) In the terminal session, run `npm install` then `npm start`.
7
+
6) Your browser should automatically open and the test app should appear on your Manticore UI.
8
+
7) Click on the app in Manticore and observe the series of `Show` RPCs performed. Logs can be seen in your browser's JavaScript console.
@@ -243,7 +249,7 @@ class _SoftButtonManagerBase extends _SubManagerBase {
243
249
this._softButtonObjects=softButtonObjects;
244
250
245
251
// We only need to pass the first softButtonCapabilities in the array due to the fact that all soft button capabilities are the same (i.e. there is no way to assign a softButtonCapabilities to a specific soft button).
@@ -77,11 +80,17 @@ class _SoftButtonReplaceOperation extends _Task {
77
80
// Check the state of our images
78
81
if(!this._supportsSoftButtonImages()){
79
82
// We don't support images at all
80
-
console.warn('SoftButtonTransitionOperation - Soft button images are not supported. Attempting to send text-only soft buttons. If any button does not contain text, no buttons will be sent.');
83
+
console.warn('SoftButtonReplaceOperation - Soft button images are not supported. Attempting to send text-only soft buttons. If any button does not contain text, no buttons will be sent.');
81
84
// Send text buttons if all the soft buttons have text
console.error('SoftButtonTransitionOperation - Head unit does not support images and some of the soft buttons do not have text, so none of the buttons will be sent.');
87
+
console.error('SoftButtonReplaceOperation - Head unit does not support images and some of the soft buttons do not have text, so none of the buttons will be sent.');
console.info('SoftButtonReplaceOperation - Soft button images are not supported. Attempting to send text and static image only soft buttons. If any button does not contain text and/or a static image, no buttons will be sent.');
console.error('SoftButtonReplaceOperation - Buttons will not be sent because the module does not support dynamic images and some of the buttons do not have text or static images.');
console.warn('SoftButtonTransitionOperation - Attempted to create text buttons, but some buttons don\'t support text, so no text-only soft buttons will be sent');
134
+
console.warn('SoftButtonReplaceOperation - Attempted to create text buttons, but some buttons don\'t support text, so no text-only soft buttons will be sent');
126
135
returnfalse;
127
136
}
128
137
// We should create a new softButtonObject rather than modifying the original one
@@ -137,7 +146,7 @@ class _SoftButtonReplaceOperation extends _Task {
137
146
}
138
147
139
148
if(this._lifecycleManager===null){
140
-
console.error('SoftButtonTransitionOperation: LifecycleManager is null');
149
+
console.error('SoftButtonReplaceOperation: LifecycleManager is null');
141
150
returnfalse;
142
151
}
143
152
@@ -147,9 +156,62 @@ class _SoftButtonReplaceOperation extends _Task {
console.warn('SoftButtonReplaceOperation - Attempted to create text and static image only buttons, but some buttons don\'t support text and have dynamic images, so no soft buttons will be sent.');
0 commit comments