Install Music button - installing not implemented.
This commit is contained in:
@@ -29,6 +29,15 @@ namespace OpenRA.Mods.RA.Widgets.Delegates
|
|||||||
Widget.CloseWindow();
|
Widget.CloseWindow();
|
||||||
return true;
|
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 =>
|
bg.GetWidget("BUTTON_PLAY").OnMouseUp = mi =>
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -142,6 +142,14 @@ Background@MUSIC_MENU:
|
|||||||
Text:Music
|
Text:Music
|
||||||
Align:Center
|
Align:Center
|
||||||
Bold:True
|
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:
|
Button@BUTTON_CLOSE:
|
||||||
Id:BUTTON_CLOSE
|
Id:BUTTON_CLOSE
|
||||||
X:PARENT_RIGHT - 180
|
X:PARENT_RIGHT - 180
|
||||||
|
|||||||
@@ -145,6 +145,14 @@ Background@MUSIC_MENU:
|
|||||||
Text:Music
|
Text:Music
|
||||||
Align:Center
|
Align:Center
|
||||||
Bold:True
|
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:
|
Button@BUTTON_CLOSE:
|
||||||
Id:BUTTON_CLOSE
|
Id:BUTTON_CLOSE
|
||||||
X:PARENT_RIGHT - 180
|
X:PARENT_RIGHT - 180
|
||||||
|
|||||||
Reference in New Issue
Block a user