Added grouping of items in sidebar + correct clock placement
Items in the sidebar are now grouped by their type and one of each item in the group can be 'built' at a time. Clock animation is now drawn on the items that are being built. Build time still not implemented. Behaviour after item built not correct.
This commit is contained in:
@@ -41,7 +41,7 @@ namespace OpenRa.TechTree
|
||||
|
||||
IEnumerable<Tuple<string, string, bool>> Lines(string filename, bool param)
|
||||
{
|
||||
Regex pattern = new Regex(@"^(\w+),([\w ]+)$");
|
||||
Regex pattern = new Regex(@"^(\w+),([\w ]+),(\w+)$");
|
||||
foreach (string s in File.ReadAllLines("../../../../" + filename))
|
||||
{
|
||||
Match m = pattern.Match(s);
|
||||
|
||||
Reference in New Issue
Block a user