Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add item items #338

Merged
merged 7 commits into from
Jan 28, 2024
Merged

Add item items #338

merged 7 commits into from
Jan 28, 2024

Conversation

jonko0493
Copy link
Member

Closes #235.

This fully adds item items to SL -- it adds an item editor (allowing them to be replaced), adds new script parameters for items (controlling their location and transition), updates the ITEM_DISPIMG command in the script editor to use these new script parameters and an image selector for the item itself, and adds them to the script preview.

image image

@jonko0493 jonko0493 self-assigned this Jan 28, 2024
@jonko0493
Copy link
Member Author

Only thing left to do here is to add an Item icon by @WiIIiam278!

@@ -1998,6 +2024,35 @@ private void UpdatePreview()
canvas.DrawBitmap(spriteBitmap, sprite.Positioning.GetSpritePosition(spriteBitmap), sprite.PalEffect);
}

// Draw items
ScriptItemCommand lastItemCommand = commands.LastOrDefault(c => c.Verb == CommandVerb.ITEM_DISPIMG);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we move this routine above the character sprite drawing? In-game, Items render behind characters (I think)

image

versus in game...

image

@jonko0493 jonko0493 merged commit b8279b2 into haroohie-club:main Jan 28, 2024
4 checks passed
@jonko0493 jonko0493 deleted the AddItemItems branch January 28, 2024 16:37
@jonko0493 jonko0493 restored the AddItemItems branch January 28, 2024 16:38
@jonko0493 jonko0493 deleted the AddItemItems branch January 28, 2024 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Item items
2 participants