Kill chrome.xml.

This commit is contained in:
Paul Chote
2011-03-12 22:05:44 +13:00
parent 0cfbeab864
commit f4494d67b2
6 changed files with 29 additions and 488 deletions

View File

@@ -11,12 +11,10 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Xml;
using OpenRA.FileFormats;
namespace OpenRA.Graphics
{
public static class ChromeProvider
{
struct Collection
@@ -35,10 +33,13 @@ namespace OpenRA.Graphics
cachedSheets = new Dictionary<string, Sheet>();
cachedSprites = new Dictionary<string, Dictionary<string, Sprite>>();
foreach (var f in chromeFiles)
LoadChromeSource(f);
if (chromeFiles.Length == 0)
return;
Save("foo.yaml");
var chrome = chromeFiles.Select(s => MiniYaml.FromFile(s)).Aggregate(MiniYaml.Merge);
foreach (var c in chrome)
LoadCollection(c.Key, c.Value);
}
public static void Save(string file)
@@ -59,24 +60,16 @@ namespace OpenRA.Graphics
return new MiniYaml(collection.src, root);
}
static void LoadChromeSource(string filename)
static void LoadCollection(string name, MiniYaml yaml)
{
XmlDocument document = new XmlDocument();
document.Load(FileSystem.Open(filename));
foreach (XmlElement eCollection in document.SelectNodes("/chrome/collection"))
LoadChromeForCollection(eCollection);
}
static void LoadChromeForCollection(XmlElement eCollection)
Game.modData.LoadScreen.Display();
var collection = new Collection()
{
string elementName = eCollection.GetAttribute("name");
string defaultSrc = (eCollection.HasAttribute("src") ? eCollection.GetAttribute("src") : null);
src = yaml.Value,
regions = yaml.Nodes.ToDictionary(n => n.Key, n => new MappedImage(yaml.Value, n.Value))
};
var images = eCollection.SelectNodes("./image").OfType<XmlElement>()
.Select(e => new MappedImage(defaultSrc, e))
.ToDictionary(s => s.Name);
collections.Add(elementName, new Collection() {src = defaultSrc, regions = images});
collections.Add(name, collection);
}
public static Sprite GetImage(string collection, string image)
@@ -95,12 +88,12 @@ namespace OpenRA.Graphics
// Cached sheet
Sheet sheet;
if (cachedSheets.ContainsKey(mi.Src))
sheet = cachedSheets[mi.Src];
if (cachedSheets.ContainsKey(mi.src))
sheet = cachedSheets[mi.src];
else
{
sheet = new Sheet(mi.Src);
cachedSheets.Add(mi.Src, sheet);
sheet = new Sheet(mi.src);
cachedSheets.Add(mi.src, sheet);
}
// Cache the sprite

View File

@@ -18,27 +18,15 @@ namespace OpenRA.Graphics
{
class MappedImage
{
public readonly Rectangle rect;
public readonly string Src;
public readonly string Name;
public MappedImage(string defaultSrc, XmlElement e)
{
Src = (e.HasAttribute("src")) ? e.GetAttribute("src") : defaultSrc;
Name = e.GetAttribute("name");
if (Src == null)
throw new InvalidDataException("Image src missing");
rect = new Rectangle(int.Parse(e.GetAttribute("x")),
int.Parse(e.GetAttribute("y")),
int.Parse(e.GetAttribute("width")),
int.Parse(e.GetAttribute("height")));
}
public readonly Rectangle rect = Rectangle.Empty;
public readonly string src;
public MappedImage(string defaultSrc, MiniYaml info)
{
Src = defaultSrc;
FieldLoader.LoadField(this, "rect", info.Value);
FieldLoader.Load(this, info);
if (src == null)
src = defaultSrc;
}
public Sprite GetImage(Sheet s)
@@ -49,8 +37,8 @@ namespace OpenRA.Graphics
public MiniYaml Save(string defaultSrc)
{
var root = new List<MiniYamlNode>();
if (defaultSrc != Src)
root.Add(new MiniYamlNode("src", Src));
if (defaultSrc != src)
root.Add(new MiniYamlNode("src", src));
return new MiniYaml(FieldSaver.FormatValue( this, this.GetType().GetField("rect") ), root);
}

View File

@@ -1,220 +0,0 @@
<chrome>
<collection name="chrome-gdi" src="chrome-gdi.png">
<image name="specialbin-top" x="0" y="0" width="30" height="51" />
<image name="specialbin-middle" x="0" y="51" width="30" height="51" />
<image name="specialbin-bottom" x="0" y="153" width="30" height="39" />
<image name="moneybin" x="192" y="0" width="320" height="32" />
<image name="tooltip-bg" x="0" y="288" width="272" height="136" />
</collection>
<collection name="radar-gdi" src="chrome-gdi.png">
<image name="left" x="297" y="31" width="9" height="192" />
<image name="right" x="498" y="31" width="9" height="192" />
<image name="bottom" x="297" y="223" width="210" height="30" />
<image name="bg" x="306" y="31" width="192" height="192" />
<image name="power-indicator" x="187" y="4" width="4" height="7" />
</collection>
<collection name="power-gdi" src="chrome-gdi.png">
<image name="power-indicator" x="187" y="4" width="4" height="7" />
</collection>
<collection name="palette-gdi" src="chrome-gdi.png">
<image name="top" x="297" y="288" width="201" height="9" />
<image name="dock-top" x="498" y="274" width="14" height="23" />
<image name="bottom" x="297" y="489" width="201" height="9" />
<image name="dock-bottom" x="498" y="489" width="14" height="23" />
<image name="bg-0" x="297" y="297" width="201" height="48" />
<image name="dock-0" x="498" y="297" width="14" height="48" />
<image name="bg-1" x="297" y="345" width="201" height="48" />
<image name="dock-1" x="498" y="345" width="14" height="48" />
<image name="bg-2" x="297" y="393" width="201" height="48" />
<image name="dock-2" x="498" y="393" width="14" height="48" />
<image name="bg-3" x="297" y="441" width="201" height="48" />
<image name="dock-3" x="498" y="441" width="14" height="48" />
</collection>
<collection name="digits-gdi" src="chrome-gdi.png">
<image name="0" x="32" y="0" width="13" height="17" />
<image name="1" x="45" y="0" width="13" height="17" />
<image name="2" x="58" y="0" width="13" height="17" />
<image name="3" x="71" y="0" width="13" height="17" />
<image name="4" x="84" y="0" width="13" height="17" />
<image name="5" x="97" y="0" width="13" height="17" />
<image name="6" x="110" y="0" width="13" height="17" />
<image name="7" x="123" y="0" width="13" height="17" />
<image name="8" x="136" y="0" width="13" height="17" />
<image name="9" x="149" y="0" width="13" height="17" />
</collection>
<collection name="chrome-nod" src="chrome-nod.png">
<image name="specialbin-top" x="0" y="0" width="30" height="51" />
<image name="specialbin-middle" x="0" y="51" width="30" height="51" />
<image name="specialbin-bottom" x="0" y="153" width="30" height="39" />
<image name="moneybin" x="192" y="0" width="320" height="32" />
<image name="tooltip-bg" x="0" y="288" width="272" height="136" />
</collection>
<collection name="radar-nod" src="chrome-nod.png">
<image name="left" x="297" y="31" width="9" height="192" />
<image name="right" x="498" y="31" width="9" height="192" />
<image name="bottom" x="297" y="223" width="210" height="30" />
<image name="bg" x="306" y="31" width="192" height="192" />
<image name="power-indicator" x="187" y="4" width="4" height="7" />
</collection>
<collection name="power-nod" src="chrome-nod.png">
<image name="power-indicator" x="187" y="4" width="4" height="7" />
</collection>
<collection name="palette-nod" src="chrome-nod.png">
<image name="top" x="297" y="288" width="201" height="9" />
<image name="dock-top" x="498" y="274" width="14" height="23" />
<image name="bottom" x="297" y="489" width="201" height="9" />
<image name="dock-bottom" x="498" y="489" width="14" height="23" />
<image name="bg-0" x="297" y="297" width="201" height="48" />
<image name="dock-0" x="498" y="297" width="14" height="48" />
<image name="bg-1" x="297" y="345" width="201" height="48" />
<image name="dock-1" x="498" y="345" width="14" height="48" />
<image name="bg-2" x="297" y="393" width="201" height="48" />
<image name="dock-2" x="498" y="393" width="14" height="48" />
<image name="bg-3" x="297" y="441" width="201" height="48" />
<image name="dock-3" x="498" y="441" width="14" height="48" />
</collection>
<collection name="digits-nod" src="chrome-nod.png">
<image name="0" x="32" y="0" width="13" height="17" />
<image name="1" x="45" y="0" width="13" height="17" />
<image name="2" x="58" y="0" width="13" height="17" />
<image name="3" x="71" y="0" width="13" height="17" />
<image name="4" x="84" y="0" width="13" height="17" />
<image name="5" x="97" y="0" width="13" height="17" />
<image name="6" x="110" y="0" width="13" height="17" />
<image name="7" x="123" y="0" width="13" height="17" />
<image name="8" x="136" y="0" width="13" height="17" />
<image name="9" x="149" y="0" width="13" height="17" />
</collection>
<collection name="tabs-selected" src="tabs.png">
<image name="gdi-Building" x="0" y="0" width="27" height="41" />
<image name="gdi-Defense" x="0" y="40" width="27" height="41" />
<image name="gdi-Infantry" x="0" y="80" width="27" height="41" />
<image name="gdi-Vehicle" x="0" y="120" width="27" height="41" />
<image name="gdi-Plane" x="0" y="160" width="27" height="41" />
<image name="gdi-Ship" x="0" y="200" width="27" height="41" />
<image name="nod-Building" x="80" y="0" width="27" height="41" />
<image name="nod-Defense" x="80" y="40" width="27" height="41" />
<image name="nod-Infantry" x="80" y="80" width="27" height="41" />
<image name="nod-Vehicle" x="80" y="120" width="27" height="41" />
<image name="nod-Plane" x="80" y="160" width="27" height="41" />
<image name="nod-Ship" x="80" y="200" width="27" height="41" />
</collection>
<collection name="tabs-ready" src="tabs.png">
<image name="gdi-Building" x="27" y="0" width="27" height="41" />
<image name="gdi-Defense" x="27" y="40" width="27" height="41" />
<image name="gdi-Infantry" x="27" y="80" width="27" height="41" />
<image name="gdi-Vehicle" x="27" y="120" width="27" height="41" />
<image name="gdi-Plane" x="27" y="160" width="27" height="41" />
<image name="gdi-Ship" x="27" y="200" width="27" height="41" />
<image name="nod-Building" x="107" y="0" width="27" height="41" />
<image name="nod-Defense" x="107" y="40" width="27" height="41" />
<image name="nod-Infantry" x="107" y="80" width="27" height="41" />
<image name="nod-Vehicle" x="107" y="120" width="27" height="41" />
<image name="nod-Plane" x="107" y="160" width="27" height="41" />
<image name="nod-Ship" x="107" y="200" width="27" height="41" />
</collection>
<collection name="tabs-normal" src="tabs.png">
<image name="gdi-Building" x="54" y="0" width="27" height="41" />
<image name="gdi-Defense" x="54" y="40" width="27" height="41" />
<image name="gdi-Infantry" x="54" y="80" width="27" height="41" />
<image name="gdi-Vehicle" x="54" y="120" width="27" height="41" />
<image name="gdi-Plane" x="54" y="160" width="27" height="41" />
<image name="gdi-Ship" x="54" y="200" width="27" height="41" />
<image name="nod-Building" x="134" y="0" width="27" height="41" />
<image name="nod-Defense" x="134" y="40" width="27" height="41" />
<image name="nod-Infantry" x="134" y="80" width="27" height="41" />
<image name="nod-Vehicle" x="134" y="120" width="27" height="41" />
<image name="nod-Plane" x="134" y="160" width="27" height="41" />
<image name="nod-Ship" x="134" y="200" width="27" height="41" />
</collection>
<collection name="dialog" src="dialog.png">
<image name="background" x="46" y="46" width="36" height="36" />
<image name="border-r" x="82" y="46" width="46" height="36" />
<image name="border-l" x="0" y="46" width="46" height="36" />
<image name="border-b" x="46" y="82" width="36" height="46" />
<image name="border-t" x="46" y="0" width="36" height="46" />
<image name="corner-tl" x="0" y="0" width="46" height="46" />
<image name="corner-tr" x="82" y="0" width="46" height="46" />
<image name="corner-bl" x="0" y="82" width="46" height="46" />
<image name="corner-br" x="82" y="82" width="46" height="46" />
</collection>
<collection name="dialog2" src="dialog2.png">
<image name="background" x="1" y="1" width="126" height="126" />
<image name="border-r" x="127" y="1" width="1" height="126" />
<image name="border-l" x="0" y="1" width="1" height="126" />
<image name="border-b" x="1" y="127" width="126" height="1" />
<image name="border-t" x="1" y="0" width="126" height="1" />
<image name="corner-tl" x="0" y="0" width="1" height="1" />
<image name="corner-tr" x="82" y="0" width="1" height="1" />
<image name="corner-bl" x="0" y="82" width="1" height="1" />
<image name="corner-br" x="82" y="82" width="1" height="1" />
</collection>
<collection name="dialog3" src="dialog3.png">
<image name="background" x="1" y="1" width="126" height="126" />
<image name="border-r" x="127" y="1" width="1" height="126" />
<image name="border-l" x="0" y="1" width="1" height="126" />
<image name="border-b" x="1" y="127" width="126" height="1" />
<image name="border-t" x="1" y="0" width="126" height="1" />
<image name="corner-tl" x="0" y="0" width="1" height="1" />
<image name="corner-tr" x="82" y="0" width="1" height="1" />
<image name="corner-bl" x="0" y="82" width="1" height="1" />
<image name="corner-br" x="82" y="82" width="1" height="1" />
</collection>
<collection name="dialog4" src="dialog4.png">
<image name="border-t" x="5" y="0" width="52" height="6" />
<image name="border-b" x="5" y="58" width="52" height="6" />
<image name="border-l" x="0" y="5" width="6" height="54" />
<image name="border-r" x="58" y="5" width="6" height="54" />
<image name="corner-tl" x="0" y="0" width="6" height="6" />
<image name="corner-tr" x="58" y="0" width="6" height="6" />
<image name="corner-bl" x="0" y="58" width="6" height="6" />
<image name="corner-br" x="58" y="58" width="6" height="6" />
<image name="background" x="5" y="5" width="52" height="52" />
</collection>
<collection name="spawnpoints" src="spawnpoints.png">
<image name="unowned" x="16" y="0" width="16" height="16" />
<image name="owned" x="0" y="0" width="16" height="16" />
</collection>
<collection name="sell-button" src="buttons.png">
<image name="normal" x="0" y="0" width="34" height="28" />
<image name="pressed" x="34" y="0" width="34" height="28" />
<image name="disabled" x="68" y="0" width="34" height="28" />
</collection>
<collection name="repair-button" src="buttons.png">
<image name="normal" x="0" y="28" width="34" height="28" />
<image name="pressed" x="34" y="28" width="34" height="28" />
<image name="disabled" x="68" y="28" width="34" height="28" />
</collection>
<collection name="power-button" src="buttons.png">
<image name="normal" x="0" y="56" width="34" height="28" />
<image name="pressed" x="34" y="56" width="34" height="28" />
<image name="disabled" x="68" y="56" width="34" height="28" />
</collection>
<collection name="flags" src="buttons.png">
<image name="gdi" x="30" y="84" width="30" height="15" />
<image name="nod" x="0" y="84" width="30" height="15" />
<image name="random" x="60" y="84" width="30" height="15" />
</collection>
<collection name="music" src="musicplayer.png">
<image name="pause" x="0" y="0" width="25" height="25" />
<image name="stop" x="28" y="0" width="25" height="25" />
<image name="play" x="56" y="0" width="25" height="25" />
<image name="next" x="84" y="0" width="25" height="25" />
<image name="prev" x="112" y="0" width="25" height="25" />
</collection>
<collection name="scrollbar" src="buttons.png">
<image name="down_arrow" x="16" y="112" width="16" height="16" />
<image name="up_arrow" x="32" y="112" width="16" height="16" />
</collection>
<collection name="checkbox" src="buttons.png">
<image name="checked" x="0" y="112" width="16" height="16" />
</collection>
<collection name="strategic" src="strategic.png">
<image name="unowned" x="0" y="0" width="32" height="32" />
<!-- <image name="owned" x="32" y="0" width="32" height="32" /> -->
<image name="critical_unowned" x="0" y="32" width="32" height="32" />
<image name="enemy_owned" x="32" y="32" width="32" height="32" />
<!-- <image name="unused_unowned" x="0" y="32" width="32" height="32" /> -->
<image name="player_owned" x="96" y="0" width="32" height="32" />
</collection>
</chrome>

View File

@@ -49,7 +49,7 @@ Cursors:
mods/cnc/cursors.yaml
Chrome:
mods/cnc/chrome.xml
mods/cnc/chrome.yaml
Assemblies:
mods/ra/OpenRA.Mods.RA.dll

View File

@@ -1,220 +0,0 @@
<chrome>
<collection name="chrome-allies" src="chrome-allies.png">
<image name="specialbin-top" x="0" y="0" width="30" height="51" />
<image name="specialbin-middle" x="0" y="51" width="30" height="51" />
<image name="specialbin-bottom" x="0" y="153" width="30" height="39" />
<image name="moneybin" x="192" y="0" width="320" height="32" />
<image name="tooltip-bg" x="0" y="288" width="272" height="136" />
</collection>
<collection name="radar-allies" src="chrome-allies.png">
<image name="left" x="297" y="31" width="9" height="192" />
<image name="right" x="498" y="31" width="9" height="192" />
<image name="bottom" x="297" y="223" width="210" height="30" />
<image name="bg" x="306" y="31" width="192" height="192" />
</collection>
<collection name="power-allies" src="chrome-allies.png">
<image name="power-indicator" x="187" y="4" width="4" height="7" />
</collection>
<collection name="palette-allies" src="chrome-allies.png">
<image name="top" x="297" y="288" width="201" height="9" />
<image name="dock-top" x="498" y="274" width="14" height="23" />
<image name="bottom" x="297" y="489" width="201" height="9" />
<image name="dock-bottom" x="498" y="489" width="14" height="23" />
<image name="bg-0" x="297" y="297" width="201" height="48" />
<image name="dock-0" x="498" y="297" width="14" height="48" />
<image name="bg-1" x="297" y="345" width="201" height="48" />
<image name="dock-1" x="498" y="345" width="14" height="48" />
<image name="bg-2" x="297" y="393" width="201" height="48" />
<image name="dock-2" x="498" y="393" width="14" height="48" />
<image name="bg-3" x="297" y="441" width="201" height="48" />
<image name="dock-3" x="498" y="441" width="14" height="48" />
</collection>
<collection name="digits-allies" src="chrome-allies.png">
<image name="0" x="32" y="0" width="13" height="17" />
<image name="1" x="45" y="0" width="13" height="17" />
<image name="2" x="58" y="0" width="13" height="17" />
<image name="3" x="71" y="0" width="13" height="17" />
<image name="4" x="84" y="0" width="13" height="17" />
<image name="5" x="97" y="0" width="13" height="17" />
<image name="6" x="110" y="0" width="13" height="17" />
<image name="7" x="123" y="0" width="13" height="17" />
<image name="8" x="136" y="0" width="13" height="17" />
<image name="9" x="149" y="0" width="13" height="17" />
</collection>
<collection name="chrome-soviet" src="chrome-soviet.png">
<image name="specialbin-top" x="0" y="0" width="30" height="51" />
<image name="specialbin-middle" x="0" y="51" width="30" height="51" />
<image name="specialbin-bottom" x="0" y="153" width="30" height="39" />
<image name="moneybin" x="192" y="0" width="320" height="32" />
<image name="tooltip-bg" x="0" y="288" width="272" height="136" />
</collection>
<collection name="radar-soviet" src="chrome-soviet.png">
<image name="left" x="297" y="31" width="9" height="192" />
<image name="right" x="498" y="31" width="9" height="192" />
<image name="bottom" x="297" y="223" width="210" height="30" />
<image name="bg" x="306" y="31" width="192" height="192" />
<image name="power-indicator" x="187" y="4" width="4" height="7" />
</collection>
<collection name="power-soviet" src="chrome-soviet.png">
<image name="power-indicator" x="187" y="4" width="4" height="7" />
</collection>
<collection name="palette-soviet" src="chrome-soviet.png">
<image name="top" x="297" y="288" width="201" height="9" />
<image name="dock-top" x="498" y="274" width="14" height="23" />
<image name="bottom" x="297" y="489" width="201" height="9" />
<image name="dock-bottom" x="498" y="489" width="14" height="23" />
<image name="bg-0" x="297" y="297" width="201" height="48" />
<image name="dock-0" x="498" y="297" width="14" height="48" />
<image name="bg-1" x="297" y="345" width="201" height="48" />
<image name="dock-1" x="498" y="345" width="14" height="48" />
<image name="bg-2" x="297" y="393" width="201" height="48" />
<image name="dock-2" x="498" y="393" width="14" height="48" />
<image name="bg-3" x="297" y="441" width="201" height="48" />
<image name="dock-3" x="498" y="441" width="14" height="48" />
</collection>
<collection name="digits-soviet" src="chrome-soviet.png">
<image name="0" x="32" y="0" width="13" height="17" />
<image name="1" x="45" y="0" width="13" height="17" />
<image name="2" x="58" y="0" width="13" height="17" />
<image name="3" x="71" y="0" width="13" height="17" />
<image name="4" x="84" y="0" width="13" height="17" />
<image name="5" x="97" y="0" width="13" height="17" />
<image name="6" x="110" y="0" width="13" height="17" />
<image name="7" x="123" y="0" width="13" height="17" />
<image name="8" x="136" y="0" width="13" height="17" />
<image name="9" x="149" y="0" width="13" height="17" />
</collection>
<collection name="tabs-selected" src="tabs.png">
<image name="allies-Building" x="0" y="0" width="27" height="41" />
<image name="allies-Defense" x="0" y="40" width="27" height="41" />
<image name="allies-Infantry" x="0" y="80" width="27" height="41" />
<image name="allies-Vehicle" x="0" y="120" width="27" height="41" />
<image name="allies-Plane" x="0" y="160" width="27" height="41" />
<image name="allies-Ship" x="0" y="200" width="27" height="41" />
<image name="soviet-Building" x="80" y="0" width="27" height="41" />
<image name="soviet-Defense" x="80" y="40" width="27" height="41" />
<image name="soviet-Infantry" x="80" y="80" width="27" height="41" />
<image name="soviet-Vehicle" x="80" y="120" width="27" height="41" />
<image name="soviet-Plane" x="80" y="160" width="27" height="41" />
<image name="soviet-Ship" x="80" y="200" width="27" height="41" />
</collection>
<collection name="tabs-ready" src="tabs.png">
<image name="allies-Building" x="27" y="0" width="27" height="41" />
<image name="allies-Defense" x="27" y="40" width="27" height="41" />
<image name="allies-Infantry" x="27" y="80" width="27" height="41" />
<image name="allies-Vehicle" x="27" y="120" width="27" height="41" />
<image name="allies-Plane" x="27" y="160" width="27" height="41" />
<image name="allies-Ship" x="27" y="200" width="27" height="41" />
<image name="soviet-Building" x="107" y="0" width="27" height="41" />
<image name="soviet-Defense" x="107" y="40" width="27" height="41" />
<image name="soviet-Infantry" x="107" y="80" width="27" height="41" />
<image name="soviet-Vehicle" x="107" y="120" width="27" height="41" />
<image name="soviet-Plane" x="107" y="160" width="27" height="41" />
<image name="soviet-Ship" x="107" y="200" width="27" height="41" />
</collection>
<collection name="tabs-normal" src="tabs.png">
<image name="allies-Building" x="54" y="0" width="27" height="41" />
<image name="allies-Defense" x="54" y="40" width="27" height="41" />
<image name="allies-Infantry" x="54" y="80" width="27" height="41" />
<image name="allies-Vehicle" x="54" y="120" width="27" height="41" />
<image name="allies-Plane" x="54" y="160" width="27" height="41" />
<image name="allies-Ship" x="54" y="200" width="27" height="41" />
<image name="soviet-Building" x="134" y="0" width="27" height="41" />
<image name="soviet-Defense" x="134" y="40" width="27" height="41" />
<image name="soviet-Infantry" x="134" y="80" width="27" height="41" />
<image name="soviet-Vehicle" x="134" y="120" width="27" height="41" />
<image name="soviet-Plane" x="134" y="160" width="27" height="41" />
<image name="soviet-Ship" x="134" y="200" width="27" height="41" />
</collection>
<collection name="dialog2" src="dialog.png">
<image name="background" x="513" y="1" width="126" height="126" />
<image name="border-r" x="639" y="1" width="1" height="126" />
<image name="border-l" x="512" y="1" width="1" height="126" />
<image name="border-b" x="513" y="127" width="126" height="1" />
<image name="border-t" x="513" y="0" width="126" height="1" />
<image name="corner-tl" x="512" y="0" width="1" height="1" />
<image name="corner-tr" x="594" y="0" width="1" height="1" />
<image name="corner-bl" x="512" y="82" width="1" height="1" />
<image name="corner-br" x="594" y="82" width="1" height="1" />
</collection>
<collection name="dialog3" src="dialog.png">
<image name="background" x="641" y="1" width="126" height="126" />
<image name="border-r" x="767" y="1" width="1" height="126" />
<image name="border-l" x="640" y="1" width="1" height="126" />
<image name="border-b" x="641" y="127" width="126" height="1" />
<image name="border-t" x="641" y="0" width="126" height="1" />
<image name="corner-tl" x="640" y="0" width="1" height="1" />
<image name="corner-tr" x="722" y="0" width="1" height="1" />
<image name="corner-bl" x="640" y="82" width="1" height="1" />
<image name="corner-br" x="722" y="82" width="1" height="1" />
</collection>
<collection name="dialog4" src="dialog.png">
<image name="border-t" x="773" y="0" width="52" height="6" />
<image name="border-b" x="773" y="58" width="52" height="6" />
<image name="border-l" x="768" y="5" width="6" height="54" />
<image name="border-r" x="826" y="5" width="6" height="54" />
<image name="corner-tl" x="768" y="0" width="6" height="6" />
<image name="corner-tr" x="826" y="0" width="6" height="6" />
<image name="corner-bl" x="768" y="58" width="6" height="6" />
<image name="corner-br" x="826" y="58" width="6" height="6" />
<image name="background" x="773" y="5" width="52" height="52" />
</collection>
<collection name="dialog" src="dialog.png">
<image name="background" x="0" y="0" width="480" height="480" />
<image name="border-r" x="489" y="0" width="9" height="192" />
<image name="border-l" x="480" y="0" width="9" height="192" />
<image name="border-b" x="0" y="489" width="191" height="9" />
<image name="border-t" x="0" y="480" width="191" height="9" />
<image name="corner-tl" x="191" y="480" width="9" height="9" />
<image name="corner-tr" x="200" y="480" width="9" height="9" />
<image name="corner-bl" x="191" y="489" width="9" height="9" />
<image name="corner-br" x="200" y="489" width="9" height="9" />
</collection>
<collection name="spawnpoints" src="spawnpoints.png">
<image name="unowned" x="528" y="128" width="16" height="16" />
<image name="owned" x="512" y="128" width="16" height="16" />
</collection>
<collection name="strategic" src="strategic.png">
<image name="unowned" x="0" y="0" width="32" height="32" />
<!-- <image name="owned" x="32" y="0" width="32" height="32" /> -->
<image name="critical_unowned" x="0" y="32" width="32" height="32" />
<image name="enemy_owned" x="32" y="32" width="32" height="32" />
<!-- <image name="unused_unowned" x="0" y="32" width="32" height="32" /> -->
<image name="player_owned" x="96" y="0" width="32" height="32" />
</collection>
<collection name="sell-button" src="buttons.png">
<image name="normal" x="0" y="0" width="34" height="28" />
<image name="pressed" x="34" y="0" width="34" height="28" />
<image name="disabled" x="68" y="0" width="34" height="28" />
</collection>
<collection name="repair-button" src="buttons.png">
<image name="normal" x="0" y="28" width="34" height="28" />
<image name="pressed" x="34" y="28" width="34" height="28" />
<image name="disabled" x="68" y="28" width="34" height="28" />
</collection>
<collection name="power-button" src="buttons.png">
<image name="normal" x="0" y="56" width="34" height="28" />
<image name="pressed" x="34" y="56" width="34" height="28" />
<image name="disabled" x="68" y="56" width="34" height="28" />
</collection>
<collection name="flags" src="buttons.png">
<image name="allies" x="30" y="84" width="30" height="15" />
<image name="soviet" x="0" y="84" width="30" height="15" />
<image name="random" x="60" y="84" width="30" height="15" />
<image name="spectator" x="60" y="84" width="30" height="15" />
</collection>
<collection name="music" src="musicplayer.png">
<image name="pause" x="0" y="0" width="25" height="25" />
<image name="stop" x="28" y="0" width="25" height="25" />
<image name="play" x="56" y="0" width="25" height="25" />
<image name="next" x="84" y="0" width="25" height="25" />
<image name="prev" x="112" y="0" width="25" height="25" />
</collection>
<collection name="scrollbar" src="buttons.png">
<image name="down_arrow" x="16" y="112" width="16" height="16" />
<image name="up_arrow" x="32" y="112" width="16" height="16" />
</collection>
<collection name="checkbox" src="buttons.png">
<image name="checked" x="0" y="112" width="16" height="16" />
</collection>
</chrome>

View File

@@ -45,7 +45,7 @@ Cursors:
mods/ra/cursors.yaml
Chrome:
mods/ra/chrome.xml
mods/ra/chrome.yaml
Assemblies:
mods/ra/OpenRA.Mods.RA.dll