-
-
Notifications
You must be signed in to change notification settings - Fork 10
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 #167 from jbunke/dev-branch
1.2.2 development milestone
- Loading branch information
Showing
52 changed files
with
1,410 additions
and
120 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,4 +17,4 @@ following ways. | |
|
||
Thank you! | ||
|
||
{Jordan Bunke, 2023-2024} | ||
{Jordan Bunke, 2023-present} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
This is a rough outline of planned features and when to expect them. Everything you see here is | ||
subject to change. | ||
|
||
{Q3 2024} | ||
> Presets for common scriptable behaviours | ||
{Q1 2025} | ||
> Fix crashing bugs related to: | ||
> Selection | ||
> Out of memory errors | ||
|
||
{Q4 2024} | ||
{Q1 - Q2 2025} | ||
> Increase maximum canvas dimensions and frame count | ||
> Lossless video exporting | ||
> Improved dialog menus | ||
> CLI tool | ||
> Test and debug scripts | ||
> Additional API functionality |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Shortcut: {sc:SET_TOOL_HAND} | ||
|
||
Use the hand to move the image canvas around the workspace. | ||
Use the hand to move the canvas around the workspace. | ||
|
||
Pan: {Click & Drag} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
name:{Stipple Effect} | ||
version:{1.2.1} | ||
version:{1.2.2} | ||
devbuild:{false} | ||
native_standard:{1.3} | ||
palette_standard:{1.0} |
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 |
---|---|---|
@@ -1 +1 @@ | ||
Scripting API | ||
Scripting API specification |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
New Stipple Effect project from preview with layers preserved | ||
New project from preview with layers preserved | ||
(May not match preview) |
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 |
---|---|---|
@@ -1 +1 @@ | ||
New Stipple Effect project from preview | ||
New project from preview |
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
41 changes: 41 additions & 0 deletions
41
src/com/jordanbunke/stipple_effect/scripting/delegators/GraphicsNodeDelegator.java
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,41 @@ | ||
package com.jordanbunke.stipple_effect.scripting.delegators; | ||
|
||
import com.jordanbunke.delta_time.scripting.ast.nodes.expression.ExpressionNode; | ||
import com.jordanbunke.delta_time.scripting.ast.nodes.expression.IllegalExpressionNode; | ||
import com.jordanbunke.delta_time.scripting.util.TextPosition; | ||
import com.jordanbunke.stipple_effect.scripting.ext_ast_nodes.expression.graphics.*; | ||
import com.jordanbunke.stipple_effect.utility.Constants; | ||
import com.jordanbunke.stipple_effect.utility.EnumUtils; | ||
|
||
import static com.jordanbunke.stipple_effect.scripting.util.LightingUtils.*; | ||
|
||
public final class GraphicsNodeDelegator { | ||
public static ExpressionNode expression( | ||
final TextPosition position, final String fID, | ||
final ExpressionNode[] args | ||
) { | ||
return switch (fID) { | ||
case UVMappingNode.NAME -> new UVMappingNode(position, args); | ||
case GenLookupNode.NAME -> new GenLookupNode(position, args); | ||
case LerpColorNode.NAME -> new LerpColorNode(position, args); | ||
case LightingNode.NAME -> new LightingNode(position, args); | ||
case PointLightNode.NAME -> new PointLightNode(position, args); | ||
case DirLightNode.NAME -> new DirLightNode(position, args); | ||
default -> new IllegalExpressionNode(position, "$" + | ||
Constants.GRAPHICS_NAMESPACE + " does not define a function \"" + | ||
fID + "()\""); | ||
}; | ||
} | ||
|
||
public static ExpressionNode constant( | ||
final TextPosition position, final String constID | ||
) { | ||
if (EnumUtils.matches(constID, LightDirection.class)) | ||
return new DirLightConstantNode(position, | ||
LightDirection.valueOf(constID)); | ||
|
||
return new IllegalExpressionNode(position, | ||
"No constant \"$" + Constants.GRAPHICS_NAMESPACE + | ||
"." + constID + "\" exists"); | ||
} | ||
} |
Oops, something went wrong.