Install Music button - installing not implemented.
This commit is contained in:
@@ -30,6 +30,15 @@ namespace OpenRA.Mods.RA.Widgets.Delegates
|
||||
return true;
|
||||
};
|
||||
|
||||
var installed = Rules.Music.Count(m => m.Value.Exists) > 1;
|
||||
|
||||
// Hack around some mix packages including hellmarch for ra
|
||||
bg.GetWidget("BUTTON_INSTALL").IsVisible = () => !installed;
|
||||
bg.GetWidget("BUTTON_INSTALL").OnMouseUp = mi => {
|
||||
return true;
|
||||
};
|
||||
|
||||
|
||||
bg.GetWidget("BUTTON_PLAY").OnMouseUp = mi =>
|
||||
{
|
||||
if (CurrentSong == null)
|
||||
|
||||
@@ -142,6 +142,14 @@ Background@MUSIC_MENU:
|
||||
Text:Music
|
||||
Align:Center
|
||||
Bold:True
|
||||
Button@BUTTON_INSTALL:
|
||||
Id:BUTTON_INSTALL
|
||||
X:20
|
||||
Y:PARENT_BOTTOM - 45
|
||||
Width:160
|
||||
Height:25
|
||||
Text:Install Music
|
||||
Bold:True
|
||||
Button@BUTTON_CLOSE:
|
||||
Id:BUTTON_CLOSE
|
||||
X:PARENT_RIGHT - 180
|
||||
|
||||
@@ -145,6 +145,14 @@ Background@MUSIC_MENU:
|
||||
Text:Music
|
||||
Align:Center
|
||||
Bold:True
|
||||
Button@BUTTON_INSTALL:
|
||||
Id:BUTTON_INSTALL
|
||||
X:20
|
||||
Y:PARENT_BOTTOM - 45
|
||||
Width:160
|
||||
Height:25
|
||||
Text:Install Music
|
||||
Bold:True
|
||||
Button@BUTTON_CLOSE:
|
||||
Id:BUTTON_CLOSE
|
||||
X:PARENT_RIGHT - 180
|
||||
|
||||
Reference in New Issue
Block a user