Install Music button - installing not implemented.

This commit is contained in:
Paul Chote
2011-01-23 20:54:03 +13:00
parent 1c67242210
commit a81c865620
3 changed files with 25 additions and 0 deletions

View File

@@ -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 =>
{ {

View File

@@ -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

View File

@@ -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