Skip to content

Commit

Permalink
Add pixel_w to animate()'s args (#1874)
Browse files Browse the repository at this point in the history
  • Loading branch information
wixoaGit authored Jul 4, 2024
1 parent 25841a7 commit 0133b2e
Showing 1 changed file with 19 additions and 17 deletions.
36 changes: 19 additions & 17 deletions OpenDreamRuntime/Procs/Native/DreamProcNativeRoot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ public static async Task<DreamValue> NativeProc_alert(AsyncNativeProc.State stat
[DreamProcParameter("pixel_x", Type = DreamValueTypeFlag.Float)]
[DreamProcParameter("pixel_y", Type = DreamValueTypeFlag.Float)]
[DreamProcParameter("pixel_z", Type = DreamValueTypeFlag.Float)]
[DreamProcParameter("pixel_w", Type = DreamValueTypeFlag.Float)]
[DreamProcParameter("maptext", Type = DreamValueTypeFlag.String)]
[DreamProcParameter("maptext_width", Type = DreamValueTypeFlag.Float)]
[DreamProcParameter("maptext_height", Type = DreamValueTypeFlag.Float)]
Expand Down Expand Up @@ -178,23 +179,24 @@ public static DreamValue NativeProc_animate(NativeProc.Bundle bundle, DreamObjec
var pixelX = bundle.GetArgument(6, "pixel_x");
var pixelY = bundle.GetArgument(7, "pixel_y");
var pixelZ = bundle.GetArgument(8, "pixel_z");
var maptext = bundle.GetArgument(9, "maptext");
var maptextWidth = bundle.GetArgument(10, "maptext_width");
var maptextHeight = bundle.GetArgument(11, "maptext_height");
var maptextX = bundle.GetArgument(12, "maptext_x");
var maptextY = bundle.GetArgument(13, "maptext_y");
var dir = bundle.GetArgument(14, "dir");
var alpha = bundle.GetArgument(15, "alpha");
var transform = bundle.GetArgument(16, "transform");
var color = bundle.GetArgument(17, "color");
var luminosity = bundle.GetArgument(18, "luminosity");
var infraLuminosity = bundle.GetArgument(19, "infra_luminosity");
var layer = bundle.GetArgument(20, "layer");
var glideSize = bundle.GetArgument(21, "glide_size");
var icon = bundle.GetArgument(22, "icon");
var iconState = bundle.GetArgument(23, "icon_state");
var invisibility = bundle.GetArgument(24, "invisibility");
var suffix = bundle.GetArgument(25, "suffix");
var pixelW = bundle.GetArgument(9, "pixel_w");
var maptext = bundle.GetArgument(10, "maptext");
var maptextWidth = bundle.GetArgument(11, "maptext_width");
var maptextHeight = bundle.GetArgument(12, "maptext_height");
var maptextX = bundle.GetArgument(13, "maptext_x");
var maptextY = bundle.GetArgument(14, "maptext_y");
var dir = bundle.GetArgument(15, "dir");
var alpha = bundle.GetArgument(16, "alpha");
var transform = bundle.GetArgument(17, "transform");
var color = bundle.GetArgument(18, "color");
var luminosity = bundle.GetArgument(19, "luminosity");
var infraLuminosity = bundle.GetArgument(20, "infra_luminosity");
var layer = bundle.GetArgument(21, "layer");
var glideSize = bundle.GetArgument(22, "glide_size");
var icon = bundle.GetArgument(23, "icon");
var iconState = bundle.GetArgument(24, "icon_state");
var invisibility = bundle.GetArgument(25, "invisibility");
var suffix = bundle.GetArgument(26, "suffix");

if((flags & AnimationFlags.AnimationRelative) != 0){
if(!bundle.AtomManager.TryGetAppearance(obj, out var appearance))
Expand Down

0 comments on commit 0133b2e

Please sign in to comment.