Updated c3 to r459 that introduces multiply and screen blending modes.

This commit is contained in:
Davide Tantillo 2025-10-29 09:53:11 +01:00
parent 4b80ec9a81
commit e4f6d229c1
29 changed files with 64 additions and 50 deletions

View File

@ -56,4 +56,6 @@ declare class IPhysicsBehaviorInstance<InstType> extends IBehaviorInstance<InstT
createLimitedRevoluteJoint(imgPt: ImagePointParameter, otherInst: IWorldInstance, lower: number, upper: number): void;
createPrismaticJoint(imgPt: ImagePointParameter, otherInst: IWorldInstance, axisAngle: number, enableLimit: boolean, lowerTranslation: number, upperTranslation: number, enableMotor: boolean, motorSpeed: number, maxMotorForce: number): void;
removeAllJoints(): void;
setCollisionFilter(isInclusive: boolean, tags: string | Iterable<string>): void;
}

View File

@ -3,6 +3,13 @@
* @see {@link https://www.construct.net/make-games/manuals/construct-3/scripting/scripting-reference/behavior-interfaces/solid | ISolidBehaviorInstance documentation } */
declare class ISolidBehaviorInstance<InstType> extends IBehaviorInstance<InstType>
{
/**
* @deprecated Use setAllTags() or getAllTags() instead, which use more suitable data types than a space-separated string.
*/
tags: string;
setAllTags(tags: Iterable<string>): void;
getAllTags(): Set<string>;
isEnabled: boolean;
}

View File

@ -4,6 +4,7 @@
declare namespace SDK.Gfx {
class IWebGLRenderer {
SetAlphaBlend(): void;
SetBlendMode(blendMode: BlendModeParameter): void;
SetColorFillMode(): void;
SetTextureFillMode(): void;

View File

@ -1,6 +1,7 @@
declare namespace SDK {
class IProjectFile {
GetName(): string;
GetPath(): string;
GetProject(): SDK.IProjectFile;
GetBlob(): Blob;
}

View File

@ -76,5 +76,5 @@ declare class ICGSObjectType<InstType extends IInstance = IInstance> extends IOb
getLeaderboardScores(leaderboardId: string, opts?: CGSGetLeaderboardScoresOptions): Promise<CGSLeaderboardScoreResults>;
createCloudSave(opts: CGSCreateCloudSaveOptions): Promise<void>;
getCloudSave(opts: CGSGetCloudSaveOptions): Promise<string>;
getCloudSave(opts: CGSGetCloudSaveOptions): Promise<string | Blob>;
}

View File

@ -49,5 +49,5 @@ declare class ISpriteInstance extends IWorldInstance
getImageSize(): Vec2Arr;
replaceCurrentAnimationFrame(blob: Blob): Promise<void>;
setSolidCollisionFilter(isInclusive: boolean, tags: string): void;
setSolidCollisionFilter(isInclusive: boolean, tags: string | Iterable<string>): void;
}

View File

@ -33,8 +33,9 @@ declare class IInstance
restoreTimeScale(): void;
readonly dt: number;
hasTag(tag: string): boolean;
hasTags(...tagsArray: string[]): boolean;
setAllTags(tagsSet: Set<string>): void;
setAllTags(tagsSet: Iterable<string>): void;
getAllTags(): Set<string>;
destroy(): void;

View File

@ -14,7 +14,7 @@ declare namespace C3 {
type LayoutParameter = string | number;
type LayerParameter = string | number;
type ImagePointParameter = string | number;
type BlendModeParameter = "normal" | "additive" | "copy" | "destination-over" | "source-in" | "destination-in" | "source-out" | "destination-out" | "source-atop" | "destination-atop";
type BlendModeParameter = "normal" | "additive" | "copy" | "destination-over" | "source-in" | "destination-in" | "source-out" | "destination-out" | "source-atop" | "destination-atop" | "lighten" | "darken" | "multiply" | "screen";
type FramerateModeType = "vsync" | "unlimited-tick" | "unlimited-frame";
type SamplingModeType = "nearest" | "bilinear" | "trilinear";

View File

@ -86,3 +86,4 @@ declare class IWorldInstanceSDKBase_ extends IWorldInstance
declare var ISDKInstanceBase: typeof ISDKInstanceBase_;
declare var IWorldInstanceSDKBase: typeof IWorldInstanceSDKBase_;

View File

@ -8,6 +8,7 @@ declare class ISDKUtils
addLoadPromise(promise: Promise<void>): void;
isWrapperExtensionAvailable(wrapperComponentId: string): boolean;
sendWrapperExtensionMessage(wrapperComponentId: string, messageId: string, params?: WrapperExtensionParameterType[]): void;
sendWrapperExtensionMessageAsync(wrapperComponentId: string, messageId: string, params?: WrapperExtensionParameterType[]): Promise<JSONValue>;