Browse Source

Made the change so the music actions are behind an action and not icon.

The icon code is still there because personally I prefer the icon and I added a way to turn the icon back on. 
But the icon is now gone and you have an action `Available musical activities`.
netuttki 1 year ago
parent
commit
e2ea127441
1 changed files with 11 additions and 4 deletions
  1. 11 4
      locations/music_actions.qsrc

+ 11 - 4
locations/music_actions.qsrc

@@ -2,6 +2,7 @@
 
 
 if $ARGS[0] = 'music_icon':
 if $ARGS[0] = 'music_icon':
     !! Everywhere
     !! Everywhere
+    ml_time_left = ml_performance['max_perform_minutes']-ml_performance['performed_minutes']
     if alko > 5:
     if alko > 5:
         'You are too drunk to stream or record music without messing up or throwing up into your guitar.'
         'You are too drunk to stream or record music without messing up or throwing up into your guitar.'
     !! $location_type = ''public_outdoors'' means parks, streets. Some event types can be placed in these locations : playing music, recording music - e.g in front of
     !! $location_type = ''public_outdoors'' means parks, streets. Some event types can be placed in these locations : playing music, recording music - e.g in front of
@@ -11,18 +12,24 @@ if $ARGS[0] = 'music_icon':
             'It''s too early to do anything noisy like playing the guitar or singing.'
             'It''s too early to do anything noisy like playing the guitar or singing.'
         elseif hour > 22:
         elseif hour > 22:
             'It''s too late to do anything noisy like playing the guitar or singing.'
             'It''s too late to do anything noisy like playing the guitar or singing.'
-        elseif ml_guitar['hasguitar'] = 1 and (ml_guitar['carried'] = 1 or $ml_guitar['location'] = $loc):
-            pl '<center><a href="exec: gs ''music_actions'', ''start''"><img title="Click to to see available music activities." height = 120 src="images/system/icons/icon_transp_guitaraction01.png"></a></center>'
         else
         else
-            pl '<center><a href="exec: gs ''music_actions'', ''start''"><img title="Click to to see available music activities." height = 120 src="images/system/icons/icon_transp_singeraction01.png"></a></center>'
+            if ml_settings['its_me'] = 1: 
+                if ml_guitar['hasguitar'] = 1 and (ml_guitar['carried'] = 1 or $ml_guitar['location'] = $loc):
+                    pl '<center><a href="exec: gs ''music_actions'', ''start''"><img title="Click to to see available music activities." height = 120 src="images/system/icons/icon_transp_guitaraction01.png"></a></center>'
+                else
+                    pl '<center><a href="exec: gs ''music_actions'', ''start''"><img title="Click to to see available music activities." height = 120 src="images/system/icons/icon_transp_singeraction01.png"></a></center>'
+                end
+            else
+                act 'Available musical activities': gs 'music_actions', 'start'
+            end
         end
         end
         if ml_guitar['hasguitar'] = 1 and $location_type = 'private': gs 'music_actions', 'put_down_pick_up'
         if ml_guitar['hasguitar'] = 1 and $location_type = 'private': gs 'music_actions', 'put_down_pick_up'
     end
     end
 end
 end
 
 
+
 if $ARGS[0] = 'start': 
 if $ARGS[0] = 'start': 
     cla
     cla
-
     ml_time_left =  ml_performance['max_perform_minutes']-ml_performance['performed_minutes']
     ml_time_left =  ml_performance['max_perform_minutes']-ml_performance['performed_minutes']
     if $location_type = 'public_outdoors': 
     if $location_type = 'public_outdoors': 
         !! In public, Sveta is never alone
         !! In public, Sveta is never alone