-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #134 from SneakyTactician/Crafting
Crafting
- Loading branch information
Showing
400 changed files
with
5,762 additions
and
2,497 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,11 @@ SneakyTactician <[email protected]> | |
*Removed Serilog dependency | ||
*Inventories are now baked in for creatures | ||
*Increased camera performance, 100x100 worlds are possible (~22 fps) | ||
*Now putting core game content in the "Magical Life Core" mod | ||
*Task manager rewrite to be more intelligent, offer more options for dynamic dependencies | ||
*Crafting is now supported | ||
*Protobuf-net inheritance and surrogates are now automatically handled | ||
*Mods are now supported, and when found will be loaded | ||
|
||
#### GUI | ||
*Tilling dirt is now available from the in game GUI | ||
|
@@ -20,10 +25,12 @@ SneakyTactician <[email protected]> | |
*Added the new log texture | ||
*Skills/creature window now has an inventory tab | ||
*Zooming out now supported | ||
*Added the Action Bar | ||
|
||
#### Bugs | ||
*Fixed PineTree class property Name's value | ||
*Fixed mined stones not disappering | ||
*Surround sound now functions like it should | ||
|
||
--- | ||
|
||
|
Binary file renamed
BIN
+2.07 MB
...GUIWindows/Content/Banks/Master_Bank.bank → MLGUIWindows/Content/Banks/Master_Bank.bank
Binary file not shown.
Binary file not shown.
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+6.62 KB
MLGUIWindows/Content/Textures/Resource/Plants/Crops/CornFullGrowth.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using System.Runtime.CompilerServices; | ||
|
||
[assembly: InternalsVisibleTo("MagicalLifeAPITest")] | ||
[assembly: InternalsVisibleTo("MagicalLifeClientStandard")] | ||
[assembly: InternalsVisibleTo("MagicalLifeDedicatedServerCore")] | ||
[assembly: InternalsVisibleTo("MagicalLifeAPIStandard")] | ||
[assembly: InternalsVisibleTo("MagicalLifeModdingAPI")] | ||
[assembly: InternalsVisibleTo("MagicalLifeServerStandard")] | ||
[assembly: InternalsVisibleTo("MagicalLifeSettingsStandard")] | ||
|
||
namespace MagicalLifeGUIWindows | ||
{ | ||
/// <summary> | ||
/// Used to control who has access to internal members of this assembly. | ||
/// </summary> | ||
public class FriendAssemblies | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
namespace MagicalLifeGUIWindows.GUI.Action_Menu | ||
{ | ||
/// <summary> | ||
/// The action menu on the right side of the screen, when the correct key is pressed. | ||
/// </summary> | ||
public static class ActionMenu | ||
{ | ||
public static ActionMenuContainer AMenu { get; } = new ActionMenuContainer(true); | ||
|
||
internal static void Initialize() | ||
{ | ||
MenuHandler.DisplayMenu(AMenu); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
using MagicalLifeAPI.Asset; | ||
using MagicalLifeAPI.Crafting; | ||
using MagicalLifeAPI.DataTypes; | ||
using MagicalLifeAPI.Registry.Recipe; | ||
using MagicalLifeAPI.World.Base; | ||
using MagicalLifeGUIWindows.GUI.Reusable; | ||
using MagicalLifeGUIWindows.GUI.Reusable.Collections; | ||
using Microsoft.Xna.Framework; | ||
using MonoGUI.Game.Custom; | ||
using System.Collections.Generic; | ||
|
||
namespace MagicalLifeGUIWindows.GUI.Action_Menu | ||
{ | ||
/// <summary> | ||
/// The action menu container. | ||
/// </summary> | ||
public class ActionMenuContainer : GuiContainer | ||
{ | ||
public MonoGrid ActionGrid { get; set; } | ||
|
||
public ActionMenuContainer(bool visible) : base(TextureLoader.GUIMenuBackground, ActionMenuLayout.ActionMenuLocation, false) | ||
{ | ||
this.Visible = visible; | ||
|
||
this.ActionGrid = new MonoGrid(new Point2D(32, 32), ActionMenuLayout.ActionGridBounds, int.MaxValue, | ||
true, TextureLoader.FontMainMenuFont12x, 5); | ||
this.PopulateActionGrid(); | ||
|
||
this.Controls.Add(this.ActionGrid); | ||
} | ||
|
||
private void PopulateActionGrid() | ||
{ | ||
Rectangle zero = new Rectangle(0, 0, 32, 32); | ||
foreach (KeyValuePair<Item, List<IRecipe>> item in RecipeRegistry.ItemToRecipe) | ||
{ | ||
foreach (IRecipe item2 in item.Value) | ||
{ | ||
RenderableImage recipeImage = new RenderableIRecipe(zero, item2.GetDisplayTextureID(), true, item2); | ||
this.ActionGrid.Add(recipeImage); | ||
} | ||
} | ||
} | ||
|
||
public override string GetTextureName() | ||
{ | ||
return TextureLoader.GUIMenuBackground; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
using MagicalLifeAPI.Filing; | ||
using Microsoft.Xna.Framework; | ||
|
||
namespace MagicalLifeGUIWindows.GUI.Action_Menu | ||
{ | ||
/// <summary> | ||
/// Positioning data for the action menu. | ||
/// </summary> | ||
public static class ActionMenuLayout | ||
{ | ||
/// <summary> | ||
/// The dimensions of the action menu. | ||
/// </summary> | ||
public static Rectangle ActionMenuLocation | ||
{ | ||
get | ||
{ | ||
switch ((Resolution)SettingsManager.WindowSettings.Settings.Resolution) | ||
{ | ||
case Resolution._2560x1440: | ||
return ActionMenuLayout2560x1440.ActionMenuLocation; | ||
|
||
default: | ||
return ActionMenuLayout1920x1080.ActionMenuLocation; | ||
} | ||
} | ||
} | ||
|
||
/// <summary> | ||
/// The dimensions of the actual grid containing the action items. | ||
/// </summary> | ||
public static Rectangle ActionGridBounds | ||
{ | ||
get | ||
{ | ||
switch ((Resolution)SettingsManager.WindowSettings.Settings.Resolution) | ||
{ | ||
case Resolution._2560x1440: | ||
return ActionMenuLayout2560x1440.ActionGridBounds; | ||
|
||
default: | ||
return ActionMenuLayout1920x1080.ActionGridBounds; | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using Microsoft.Xna.Framework; | ||
|
||
namespace MagicalLifeGUIWindows.GUI.Action_Menu | ||
{ | ||
/// <summary> | ||
/// Holds positioning information for the action menu. | ||
/// </summary> | ||
public static class ActionMenuLayout1920x1080 | ||
{ | ||
public static readonly Rectangle ActionMenuLocation = new Rectangle(1710, 0, 210, 1080); | ||
public static readonly Rectangle ActionGridBounds = new Rectangle(0, 0, 210, 1080); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using Microsoft.Xna.Framework; | ||
|
||
namespace MagicalLifeGUIWindows.GUI.Action_Menu | ||
{ | ||
/// <summary> | ||
/// Holds positioning information for the action menu. | ||
/// </summary> | ||
public static class ActionMenuLayout2560x1440 | ||
{ | ||
public static readonly Rectangle ActionMenuLocation = new Rectangle(2350, 0, 210, 1440); | ||
public static readonly Rectangle ActionGridBounds = new Rectangle(0, 0, 210, 1440); | ||
} | ||
} |
1 change: 0 additions & 1 deletion
1
...racter Menu/Buttons/InventoryTabButton.cs → ...racter Menu/Buttons/InventoryTabButton.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
...Character Menu/Buttons/SkillsTabButton.cs → ...Character Menu/Buttons/SkillsTabButton.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
...In Game Escape Menu/Buttons/QuitButton.cs → ...In Game Escape Menu/Buttons/QuitButton.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.