Browse Source

Better related for isPlaying;

bjorn 4 years ago
parent
commit
937effc219
2 changed files with 10 additions and 0 deletions
  1. 5 0
      api/init.lua
  2. 5 0
      api/lovr/audio/Source/isPlaying.lua

+ 5 - 0
api/init.lua

@@ -1937,6 +1937,11 @@ return {
               description = "Returns whether or not the Source is playing.",
               description = "Returns whether or not the Source is playing.",
               key = "Source:isPlaying",
               key = "Source:isPlaying",
               module = "lovr.audio",
               module = "lovr.audio",
+              related = {
+                "Source:play",
+                "Source:pause",
+                "Source:stop"
+              },
               variants = {
               variants = {
                 {
                 {
                   arguments = {},
                   arguments = {},

+ 5 - 0
api/lovr/audio/Source/isPlaying.lua

@@ -8,5 +8,10 @@ return {
       type = 'boolean',
       type = 'boolean',
       description = 'Whether the Source is playing.'
       description = 'Whether the Source is playing.'
     }
     }
+  },
+  related = {
+    'Source:play',
+    'Source:pause',
+    'Source:stop'
   }
   }
 }
 }