Disable music player until its finished
This commit is contained in:
@@ -20,7 +20,7 @@ namespace OpenRA.Widgets.Delegates
|
|||||||
public MusicPlayerDelegate()
|
public MusicPlayerDelegate()
|
||||||
{
|
{
|
||||||
var bg = Widget.RootWidget.GetWidget("MUSIC_BG");
|
var bg = Widget.RootWidget.GetWidget("MUSIC_BG");
|
||||||
bg.Visible = Game.Settings.MusicPlayer;
|
//bg.Visible = Game.Settings.MusicPlayer;
|
||||||
CurrentSong = GetNextSong();
|
CurrentSong = GetNextSong();
|
||||||
|
|
||||||
bg.GetWidget("BUTTON_PLAY").OnMouseUp = mi =>
|
bg.GetWidget("BUTTON_PLAY").OnMouseUp = mi =>
|
||||||
|
|||||||
@@ -100,7 +100,7 @@ Background@MUSIC_BG:
|
|||||||
Y:WINDOW_BOTTOM - HEIGHT - 20
|
Y:WINDOW_BOTTOM - HEIGHT - 20
|
||||||
Width: 300
|
Width: 300
|
||||||
Height: 210
|
Height: 210
|
||||||
Visible: true
|
Visible: false
|
||||||
Children:
|
Children:
|
||||||
Button@BUTTON_PLAY:
|
Button@BUTTON_PLAY:
|
||||||
Id:BUTTON_PLAY
|
Id:BUTTON_PLAY
|
||||||
|
|||||||
Reference in New Issue
Block a user