Skip to content

Commit

Permalink
FInalized Inventory priority
Browse files Browse the repository at this point in the history
  • Loading branch information
obivandamme committed Aug 9, 2015
1 parent 9a701f7 commit b5ec74e
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 16 deletions.
Binary file modified GameData/Workshop/Plugins/Workshop.dll
Binary file not shown.
4 changes: 2 additions & 2 deletions GameData/Workshop/Workshop.version
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
},
"VERSION":{
"MAJOR":0,
"MINOR":9,
"PATCH":6,
"MINOR":10,
"PATCH":0,
"BUILD":0
},
"KSP_VERSION":{
Expand Down
10 changes: 6 additions & 4 deletions Source/Workshop/Workshop/OSEModuleWorkshop.cs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ private void SetupAnimations()

private void LoadFilters()
{
_filters = new FilterBase[10];
_filters = new FilterBase[11];
_filters[0] = new FilterBase();
_filters[1] = new FilterCategory(PartCategories.Pods);
_filters[2] = new FilterCategory(PartCategories.FuelTank);
Expand All @@ -175,9 +175,10 @@ private void LoadFilters()
_filters[6] = new FilterCategory(PartCategories.Aero);
_filters[7] = new FilterCategory(PartCategories.Utility);
_filters[8] = new FilterCategory(PartCategories.Science);
_filters[9] = new FilterModule("ModuleKISItem");
_filters[9] = new FilterCategory(PartCategories.none);
_filters[10] = new FilterModule("ModuleKISItem");

_filterTextures = new Texture[10];
_filterTextures = new Texture[11];
_filterTextures[0] = this.LoadTexture("Squad/PartList/SimpleIcons/R&D_node_icon_veryheavyrocketry");
_filterTextures[1] = this.LoadTexture("Squad/PartList/SimpleIcons/RDicon_commandmodules");
_filterTextures[2] = this.LoadTexture("Squad/PartList/SimpleIcons/RDicon_fuelSystems-advanced");
Expand All @@ -187,7 +188,8 @@ private void LoadFilters()
_filterTextures[6] = this.LoadTexture("Squad/PartList/SimpleIcons/R&D_node_icon_advaerodynamics");
_filterTextures[7] = this.LoadTexture("Squad/PartList/SimpleIcons/R&D_node_icon_generic");
_filterTextures[8] = this.LoadTexture("Squad/PartList/SimpleIcons/R&D_node_icon_advsciencetech");
_filterTextures[9] = this.LoadTexture("Squad/PartList/SimpleIcons/R&D_node_icon_evatech");
_filterTextures[9] = this.LoadTexture("Squad/PartList/SimpleIcons/R&D_node_icon_robotics");
_filterTextures[10] = this.LoadTexture("Squad/PartList/SimpleIcons/R&D_node_icon_evatech");
}

private Texture2D LoadTexture(string path)
Expand Down
7 changes: 1 addition & 6 deletions Source/Workshop/Workshop/OseModuleInventoryPreference.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Workshop
{
public class OseModuleInventoryPreference : PartModule
{
[KSPField]
[KSPField(guiActive = true, guiName = "OSE Debug", isPersistant = true)]
public bool isFavored = false;

[KSPEvent(guiActive = false, guiName = "Favor Inventory")]
Expand All @@ -32,11 +32,6 @@ public override void OnStart(StartState state)
{
Events["ContextMenuOnFavorInventory"].guiActive = true;
}
}

public override void OnLoad(ConfigNode node)
{
base.OnLoad(node);
if (isFavored)
{
Events["ContextMenuOnFavorInventory"].guiName = "Unfavor Inventory";
Expand Down
6 changes: 3 additions & 3 deletions Source/Workshop/Workshop/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.9.6")]
[assembly: AssemblyInformationalVersion("0.9.6")]
[assembly: KSPAssembly("Workshop", 0, 9)]
[assembly: AssemblyVersion("0.10.0")]
[assembly: AssemblyInformationalVersion("0.10.0")]
[assembly: KSPAssembly("Workshop", 0, 10)]
[assembly: KSPAssemblyDependency("KIS", 1, 2)]
3 changes: 2 additions & 1 deletion Source/Workshop/Workshop/Workshop.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
<DebugType>none</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<DefineConstants>
</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
Expand Down

0 comments on commit b5ec74e

Please sign in to comment.