Skip to content

Commit

Permalink
update preview image
Browse files Browse the repository at this point in the history
  • Loading branch information
FluffierThanThou committed Jul 27, 2021
1 parent 21b4139 commit a34393a
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 4 deletions.
Binary file modified About/Preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Assemblies/Manager.dll
Binary file not shown.
2 changes: 2 additions & 0 deletions Languages/English/Keyed/Manager_Keyed.xml
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,8 @@
<FML.SendToTrainingArea.Tip>Restrict animals designated for training to a specific area.</FML.SendToTrainingArea.Tip>
<FM.Livestock.DisabledBecauseNoTrainingSet>Disabled because no training target is set.</FM.Livestock.DisabledBecauseNoTrainingSet>
<FM.Livestock.CannotTrainTooSmall>{0} are too small to train this.</FM.Livestock.CannotTrainTooSmall>
<FM.Livestock.DisabledBecauseRoamingAnimal>{0} cannot be restricted</FM.Livestock.DisabledBecauseRoamingAnimal>
<FM.Livestock.DisabledBecauseRoamingAnimalTip>{0} cannot be restricted to an area because it is a roaming animal.</FM.Livestock.DisabledBecauseRoamingAnimalTip>

<!-- following -->
<FM.Livestock.FollowHeader>Following</FM.Livestock.FollowHeader>
Expand Down
10 changes: 8 additions & 2 deletions Source/ManagerTabs/ManagerTab_Livestock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -465,8 +465,14 @@ private float DrawAreaRestrictionsSection(Vector2 pos, float width)
var start = pos;

// skip for animals that can't be restricted
if (_selectedCurrent.Trigger.pawnKind.race.race.Roamer)
return 0f;
if (_selectedCurrent.Trigger.pawnKind.RaceProps.Roamer)
{
var unavailableLabelRect = new Rect(pos.x, pos.y, width, ListEntryHeight);
unavailableLabelRect.xMin += Margin;
Label(unavailableLabelRect, "FM.Livestock.DisabledBecauseRoamingAnimal".Translate(), "FM.Livestock.DisabledBecauseRoamingAnimalTip".Translate(), TextAnchor.MiddleLeft,
color: Color.grey);
return ListEntryHeight;
}


// restrict to area
Expand Down
1 change: 1 addition & 0 deletions Source/preview.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 25 additions & 2 deletions modinfo.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"version": {
"major": 5,
"minor": 0,
"build": 662
"build": 663
},
"author": {
"name": "Fluffy",
Expand All @@ -19,6 +19,15 @@
"url": "https://github.com/fluffy-mods/ColonyManager"
},
"changelog": [
{
"date": "2021-07-27T15:15:06.000Z",
"message": "remove area management for roaming animals",
"author": {
"name": "Fluffy",
"email": "[email protected]"
},
"hash": "21b41395089762c3a23af3a969378387e7192bf8"
},
{
"date": "2021-07-27T09:17:29.000Z",
"message": "req squiglies be gone, switch to sdk style project",
Expand Down Expand Up @@ -320,5 +329,19 @@
"description": "Add minified attribute to Benchbase"
}
]
}
},
"attributions": [
{
"description": "mustache icon",
"author": "DinosoftLabs",
"license": "BY-NC",
"url": "https://www.flaticon.com/authors/dinosoftlabs"
},
{
"description": "top hat icon",
"author": "Smashicons",
"license": "BY-NC",
"url": "https://www.flaticon.com/authors/smashicons"
}
]
}

0 comments on commit a34393a

Please sign in to comment.