Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
4cfa61b
Initial commit
Lelebees Mar 17, 2026
61c983c
Basic domain
Lelebees Mar 17, 2026
edaa317
It's not really working but it's working a little
Lelebees Mar 24, 2026
c69e1e1
Rotations now work properly
Lelebees Mar 24, 2026
d43c13f
Improve naming
Lelebees Mar 25, 2026
f86e213
Some form of scaling working
Lelebees Mar 25, 2026
7b5e1bd
Fixed scaling issues
Lelebees Mar 25, 2026
9966ceb
Enable multi-dimensional scaling
Lelebees Mar 25, 2026
865d137
Fix incorrect ClippingSprite rotations
Lelebees Mar 25, 2026
0e16ed4
Simplified API
Lelebees Mar 25, 2026
79f861c
Added operator overloads for angles and improved api further
Lelebees Mar 26, 2026
27827ba
Add test project
Lelebees Mar 28, 2026
88621b9
Also the part where we dont include folders as namespaces
Lelebees Mar 28, 2026
47226fe
start tests
Lelebees Apr 13, 2026
a1ed7fd
Moar Tests, Moar Sugar
Lelebees Apr 13, 2026
ee4224a
Undo scaling changes for textsprite
Lelebees Apr 14, 2026
6456560
Start using properties instead of methods for everything
Lelebees Apr 14, 2026
ab68bfb
Fixed Text being stupid
Lelebees Apr 16, 2026
73ec7fd
Trimmed angle API and added test
Lelebees May 12, 2026
61848d2
Moar tests!
Lelebees May 13, 2026
36dcbac
Add text sprite tests for existing cases
Lelebees May 13, 2026
7f4eece
Remove obsolete comment
Lelebees May 13, 2026
4f745e6
More documentation
Lelebees May 13, 2026
1b14165
Trimmed API
Lelebees May 14, 2026
a633cd5
Prepare for release
Lelebees May 15, 2026
6aef2f3
Fix the spiraling issue again
Lelebees May 15, 2026
be231f3
Add test for previous bug
Lelebees May 15, 2026
da43603
Add tests for previous bug
Lelebees May 15, 2026
3b44e51
Merge remote-tracking branch 'origin/main'
Lelebees May 15, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@

Microsoft Visual Studio Solution File, Format Version 12.00
Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "Lelebees.MdkScriptMixin.SpriteCompositor", "Lelebees.MdkScriptMixin.SpriteCompositor\Lelebees.MdkScriptMixin.SpriteCompositor.shproj", "{8A3CDCC5-4B55-4D87-A415-698A0E1FF06F}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SpriteCompositor.Demo", "SpriteCompositor.Demo\SpriteCompositor.Demo.csproj", "{86DF49B2-74C3-4A4B-8F5D-4F2FBEB0866C}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SpriteCompositor.Test", "SpriteCompositor.Test\SpriteCompositor.Test.csproj", "{2A7DDEA6-FB3C-47A5-B856-BD0A37FC573C}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x64 = Debug|x64
Release|x64 = Release|x64
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{8A3CDCC5-4B55-4D87-A415-698A0E1FF06F}.Debug|x64.ActiveCfg = Debug|x64
{8A3CDCC5-4B55-4D87-A415-698A0E1FF06F}.Debug|x64.Build.0 = Debug|x64
{8A3CDCC5-4B55-4D87-A415-698A0E1FF06F}.Release|x64.ActiveCfg = Release|x64
{8A3CDCC5-4B55-4D87-A415-698A0E1FF06F}.Release|x64.Build.0 = Release|x64
{86DF49B2-74C3-4A4B-8F5D-4F2FBEB0866C}.Debug|x64.ActiveCfg = Debug|x64
{86DF49B2-74C3-4A4B-8F5D-4F2FBEB0866C}.Debug|x64.Build.0 = Debug|x64
{86DF49B2-74C3-4A4B-8F5D-4F2FBEB0866C}.Release|x64.ActiveCfg = Release|x64
{86DF49B2-74C3-4A4B-8F5D-4F2FBEB0866C}.Release|x64.Build.0 = Release|x64
{2A7DDEA6-FB3C-47A5-B856-BD0A37FC573C}.Debug|x64.ActiveCfg = Debug|x64
{2A7DDEA6-FB3C-47A5-B856-BD0A37FC573C}.Debug|x64.Build.0 = Debug|x64
{2A7DDEA6-FB3C-47A5-B856-BD0A37FC573C}.Release|x64.ActiveCfg = Release|x64
{2A7DDEA6-FB3C-47A5-B856-BD0A37FC573C}.Release|x64.Build.0 = Release|x64
EndGlobalSection
EndGlobal

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
GNU LESSER GENERAL PUBLIC LICENSE
Version 3, 29 June 2007

Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.


This version of the GNU Lesser General Public License incorporates
the terms and conditions of version 3 of the GNU General Public
License, supplemented by the additional permissions listed below.

0. Additional Definitions.

As used herein, "this License" refers to version 3 of the GNU Lesser
General Public License, and the "GNU GPL" refers to version 3 of the GNU
General Public License.

"The Library" refers to a covered work governed by this License,
other than an Application or a Combined Work as defined below.

An "Application" is any work that makes use of an interface provided
by the Library, but which is not otherwise based on the Library.
Defining a subclass of a class defined by the Library is deemed a mode
of using an interface provided by the Library.

A "Combined Work" is a work produced by combining or linking an
Application with the Library. The particular version of the Library
with which the Combined Work was made is also called the "Linked
Version".

The "Minimal Corresponding Source" for a Combined Work means the
Corresponding Source for the Combined Work, excluding any source code
for portions of the Combined Work that, considered in isolation, are
based on the Application, and not on the Linked Version.

The "Corresponding Application Code" for a Combined Work means the
object code and/or source code for the Application, including any data
and utility programs needed for reproducing the Combined Work from the
Application, but excluding the System Libraries of the Combined Work.

1. Exception to Section 3 of the GNU GPL.

You may convey a covered work under sections 3 and 4 of this License
without being bound by section 3 of the GNU GPL.

2. Conveying Modified Versions.

If you modify a copy of the Library, and, in your modifications, a
facility refers to a function or data to be supplied by an Application
that uses the facility (other than as an argument passed when the
facility is invoked), then you may convey a copy of the modified
version:

a) under this License, provided that you make a good faith effort to
ensure that, in the event an Application does not supply the
function or data, the facility still operates, and performs
whatever part of its purpose remains meaningful, or

b) under the GNU GPL, with none of the additional permissions of
this License applicable to that copy.

3. Object Code Incorporating Material from Library Header Files.

The object code form of an Application may incorporate material from
a header file that is part of the Library. You may convey such object
code under terms of your choice, provided that, if the incorporated
material is not limited to numerical parameters, data structure
layouts and accessors, or small macros, inline functions and templates
(ten or fewer lines in length), you do both of the following:

a) Give prominent notice with each copy of the object code that the
Library is used in it and that the Library and its use are
covered by this License.

b) Accompany the object code with a copy of the GNU GPL and this license
document.

4. Combined Works.

You may convey a Combined Work under terms of your choice that,
taken together, effectively do not restrict modification of the
portions of the Library contained in the Combined Work and reverse
engineering for debugging such modifications, if you also do each of
the following:

a) Give prominent notice with each copy of the Combined Work that
the Library is used in it and that the Library and its use are
covered by this License.

b) Accompany the Combined Work with a copy of the GNU GPL and this license
document.

c) For a Combined Work that displays copyright notices during
execution, include the copyright notice for the Library among
these notices, as well as a reference directing the user to the
copies of the GNU GPL and this license document.

d) Do one of the following:

0) Convey the Minimal Corresponding Source under the terms of this
License, and the Corresponding Application Code in a form
suitable for, and under terms that permit, the user to
recombine or relink the Application with a modified version of
the Linked Version to produce a modified Combined Work, in the
manner specified by section 6 of the GNU GPL for conveying
Corresponding Source.

1) Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that (a) uses at run time
a copy of the Library already present on the user's computer
system, and (b) will operate properly with a modified version
of the Library that is interface-compatible with the Linked
Version.

e) Provide Installation Information, but only if you would otherwise
be required to provide such information under section 6 of the
GNU GPL, and only to the extent that such information is
necessary to install and execute a modified version of the
Combined Work produced by recombining or relinking the
Application with a modified version of the Linked Version. (If
you use option 4d0, the Installation Information must accompany
the Minimal Corresponding Source and Corresponding Application
Code. If you use option 4d1, you must provide the Installation
Information in the manner specified by section 6 of the GNU GPL
for conveying Corresponding Source.)

5. Combined Libraries.

You may place library facilities that are a work based on the
Library side by side in a single library together with other library
facilities that are not Applications and are not covered by this
License, and convey such a combined library under terms of your
choice, if you do both of the following:

a) Accompany the combined library with a copy of the same work based
on the Library, uncombined with any other library facilities,
conveyed under the terms of this License.

b) Give prominent notice with the combined library that part of it
is a work based on the Library, and explaining where to find the
accompanying uncombined form of the same work.

6. Revised Versions of the GNU Lesser General Public License.

The Free Software Foundation may publish revised and/or new versions
of the GNU Lesser General Public License from time to time. Such new
versions will be similar in spirit to the present version, but may
differ in detail to address new problems or concerns.

Each version is given a distinguishing version number. If the
Library as you received it specifies that a certain numbered version
of the GNU Lesser General Public License "or any later version"
applies to it, you have the option of following the terms and
conditions either of that published version or of any later version
published by the Free Software Foundation. If the Library as you
received it does not specify a version number of the GNU Lesser
General Public License, you may choose any version of the GNU Lesser
General Public License ever published by the Free Software Foundation.

If the Library as you received it specifies that a proxy can decide
whether future versions of the GNU Lesser General Public License shall
apply, that proxy's public statement of acceptance of any version is
permanent authorization for you to choose that version for the
Library.
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<MSBuildAllProjects Condition="'$(MSBuildVersion)' == '' Or '$(MSBuildVersion)' &lt; '16.0'">$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
<HasSharedItems>true</HasSharedItems>
<SharedGUID>8a3cdcc5-4b55-4d87-a415-698a0e1ff06f</SharedGUID>
</PropertyGroup>
<ItemGroup>
<Content Include="$(MSBuildThisFileDirectory)COPYING" />
<Content Include="$(MSBuildThisFileDirectory)COPYING.LESSER" />
<Content Include="$(MSBuildThisFileDirectory)documentation\class-diagram.md" />
<Content Include="$(MSBuildThisFileDirectory)readme.md" />
<Content Include="$(MSBuildThisFileDirectory)_authors" />
<Content Include="$(MSBuildThisFileDirectory)_description" />
<Content Include="$(MSBuildThisFileDirectory)_releasenotes" />
<Content Include="$(MSBuildThisFileDirectory)_version" />
</ItemGroup>
<ItemGroup>
<Compile Include="$(MSBuildThisFileDirectory)src\anchor\Anchor.cs" />
<Compile Include="$(MSBuildThisFileDirectory)src\anchor\PointAnchor.cs" />
<Compile Include="$(MSBuildThisFileDirectory)src\angle\Angle.cs" />
<Compile Include="$(MSBuildThisFileDirectory)src\sprite\atoms\TextureSprite.cs" />
<Compile Include="$(MSBuildThisFileDirectory)src\sprite\atoms\TextSprite.cs" />
<Compile Include="$(MSBuildThisFileDirectory)src\sprite\atoms\ClippingSprite.cs" />
<Compile Include="$(MSBuildThisFileDirectory)src\sprite\molecules\SimpleSpriteGroup.cs" />
<Compile Include="$(MSBuildThisFileDirectory)src\sprite\SpriteGroup.cs" />
<Compile Include="$(MSBuildThisFileDirectory)src\sprite\Sprite.cs" />
<Compile Include="$(MSBuildThisFileDirectory)src\sprite\SpriteLeaf.cs" />
<Compile Include="$(MSBuildThisFileDirectory)src\sprite\Sprites.cs" />
<Compile Include="$(MSBuildThisFileDirectory)src\sprite\Textures.cs" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Label="Globals">
<ProjectGuid>8a3cdcc5-4b55-4d87-a415-698a0e1ff06f</ProjectGuid>
<MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion>
</PropertyGroup>
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')"/>
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.Common.Default.props"/>
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.Common.props"/>
<PropertyGroup/>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' ">
<OutputPath>bin\Debug\</OutputPath>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' ">
<OutputPath>bin\Release\</OutputPath>
</PropertyGroup>
<Import Project="Lelebees.MdkScriptMixin.SpriteCompositor.projitems" Label="Shared"/>
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.CSharp.targets"/>
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=src_005Canchor/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=src_005Csprite/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=src_005Csprite_005Catoms/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=src_005Csprite_005Cmolecules/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=src_005Cutil/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Lelebees
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
API wrapper simplifying the native Space Engineers LCD Sprite API. Supports composing your own sprites out of a collection of existing sprites.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
- 1.0.0
Support Text and Image sprites.
Support translating sprites and sprite groups.
Support rotating sprites and groups around an arbitrary point or another sprite.
Support scaling sprite groups as if they were one sprite, in multiple dimensions.
Support recoloring groups of sprites
Experimental Clipping Sprite support
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.0.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
```mermaid
classDiagram
note "Implemented interface methods\n have been left out for brevity."
class Sprite {
<<interface>>
+Translate(float x, float y) Sprite
+Translate(Vector2 vector) void
+SetColor(Color color) void
+SetAlignment(TextAlignment alignment) void
+GetPosition() Vector2
+Scale(float amount) void
+Rotate(Angle angle, Anchor anchor) void
+Clone() Sprite
}

Anchor <|-- Sprite
Sprite <|-- SpriteLeaf
Sprite <|--o SpriteGroup
Sprite ..> Angle

class SpriteLeaf {
<<abstract>>
#MySprite sprite
+Scale(float amount)* void
+Rotate(Angle angle, Anchor anchor)* void
+Clone()* Sprite
}

SpriteLeaf <|-- TextSprite
SpriteLeaf <|-- TextureSprite
SpriteLeaf <|-- ClippingSprite

class TextureSprite {
+float Rotation
+Vector2? Size
+string Texture
+SetTexture(string texture) void
+Scale(float amount) void
+Rotate(Angle angle, Anchor anchor) void
+Mirror() void
+MirrorHorizontal() void
+MirrorVertical() void
}

class TextSprite {
+string Text
+string FontId
+float TextScale
+TextAlignment alignment
+Scale(float amount) void
+Rotate(Angle angle, Anchor anchor) void
}

class ClippingSprite {
+Scale(float amount) void
+Rotate(Angle angle, Anchor anchor) void
}

class SpriteGroup {
-List~Sprite~ sprites
+Mirror() void
+MirrorHorizontal() void
+MirrorVertical() void
}

class Angle {
-float radians
+float Radians
+float Degrees
}

note for Angle "Basic arithmetic and\n comparison available"

class Anchor {
<<interface>>
+GetPosition() Vector2
}

class PointAnchor {
-Vector2 position
+GetPosition() Vector2
}

Anchor <|-- PointAnchor
```
Loading
Loading