Renderer:
+ Font.BaselineAdjust Utils: + GameControllerState.AnyInteractions
This commit is contained in:
parent
89de4258e1
commit
dffa581596
18 changed files with 70 additions and 40 deletions
|
|
@ -14,6 +14,7 @@ using SM.Base.Drawing;
|
|||
using SM.Base.Time;
|
||||
using SM.Base.Window;
|
||||
using SM.Intergrations.ShaderTool;
|
||||
using SM.Utils.Controls;
|
||||
using SM2D;
|
||||
using SM2D.Controls;
|
||||
using SM2D.Drawing;
|
||||
|
|
@ -37,9 +38,13 @@ namespace SM_TEST
|
|||
public static STPProject portal;
|
||||
static void Main(string[] args)
|
||||
{
|
||||
Font font = new Font(@"C:\Windows\Fonts\Arial.ttf")
|
||||
Font font = new Font(@".\GapSansBold.ttf")
|
||||
{
|
||||
FontSize = 30,
|
||||
FontSize = 51,
|
||||
CharSet = new char[]
|
||||
{
|
||||
'I', 'A','M','T','W','O'
|
||||
}
|
||||
};
|
||||
font.RegenerateTexture();
|
||||
|
||||
|
|
@ -58,18 +63,10 @@ namespace SM_TEST
|
|||
{
|
||||
|
||||
};
|
||||
DrawObject2D obj = new DrawObject2D()
|
||||
{
|
||||
Material = new STMaterial(portal.DrawNodes.First(a => a.Variables.ContainsKey("_MATColor")))
|
||||
{
|
||||
ShaderArguments = {
|
||||
{ "RingLoc", .33f },
|
||||
|
||||
}
|
||||
},
|
||||
Mesh = Polygon.GenerateCircle()
|
||||
};
|
||||
obj.Transform.Size.Set(200);
|
||||
|
||||
DrawText obj = new DrawText(font, "I AM\n\tTWO")
|
||||
{};
|
||||
|
||||
scene.Objects.Add(obj);
|
||||
|
||||
window.UpdateFrame += WindowOnUpdateFrame;
|
||||
|
|
@ -86,12 +83,8 @@ namespace SM_TEST
|
|||
|
||||
private static void WindowOnUpdateFrame(object sender, FrameEventArgs e)
|
||||
{
|
||||
/*
|
||||
if (Mouse.LeftClick)
|
||||
particles.Trigger();
|
||||
if (Mouse.RightClick)
|
||||
particles.ContinuousInterval = .05f;*/
|
||||
|
||||
bool interactions = new GameController(0).GetState().AnyInteraction;
|
||||
Console.WriteLine();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -73,9 +73,13 @@
|
|||
<WCFMetadata Include="Connected Services\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\src\optionals\SM.Intergrations\SM.Intergrations.csproj">
|
||||
<ProjectReference Include="..\..\src\optionals\SM.Intergrations\SMRenderer.Intergrations.csproj">
|
||||
<Project>{4cb351f4-b3f2-4f77-acc2-02f21dbf5ec2}</Project>
|
||||
<Name>SM.Intergrations</Name>
|
||||
<Name>SMRenderer.Intergrations</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\src\optionals\SM.Utils\SMRenderer.Utils.csproj">
|
||||
<Project>{079BAB31-3DC4-40DA-90C7-EFAA8517C647}</Project>
|
||||
<Name>SMRenderer.Utils</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\src\renderer\SM.Base\SM.Base.csproj">
|
||||
<Project>{8e733844-4204-43e7-b3dc-3913cddabb0d}</Project>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue