mirror of
https://github.com/UiO-Gaming/infoscreen3.git
synced 2026-11-05 13:56:52 +01:00
Merge pull request #73 from kasimos/addScrolling
Add scrolling options for status messages
This commit is contained in:
11 files changed
+96
-9
No files matched your search
+4
-2
@@ -299,8 +299,10 @@ export default class admin {
|
||||
}
|
||||
});
|
||||
|
||||
socket.on("admin.setStatusMessage", function (message) {
|
||||
self.getView().serverOptions.statusMessage = message;
|
||||
socket.on("admin.setStatusMessage", function (data) {
|
||||
self.getView().serverOptions.statusMessage = data.msg;
|
||||
self.getView().serverOptions.statusMessageScrolling = data.scrolling;
|
||||
self.getView().serverOptions.statusMessageScrollingDuration = data.scrollingDuration;
|
||||
self.getView().updateUI();
|
||||
});
|
||||
|
||||
|
||||
@@ -49,6 +49,8 @@ export default class display {
|
||||
transition: "fade",
|
||||
displayTime: true,
|
||||
statusMessage: "",
|
||||
statusMessageScrolling: false,
|
||||
statusMessageScrollingDuration: 15
|
||||
};
|
||||
|
||||
/** @property {Array} timeoutId - holds setTimeout id's for mainLoop */
|
||||
|
||||
Reference in new issue
Block a user