Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
spnati
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SPNATI Utilities Bot
spnati
Commits
fe9704a3
Commit
fe9704a3
authored
6 years ago
by
spnati_edit
Browse files
Options
Downloads
Patches
Plain Diff
Update Sprite.cs
parent
fea0ff30
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
editor source/SPNATI Character Editor/DataStructures/Sprite.cs
+1
-18
1 addition, 18 deletions
...r source/SPNATI Character Editor/DataStructures/Sprite.cs
with
1 addition
and
18 deletions
editor source/SPNATI Character Editor/DataStructures/Sprite.cs
+
1
−
18
View file @
fe9704a3
using
Desktop.CommonControls.PropertyControls
;
using
System.Collections.Generic
;
using
System.ComponentModel
;
using
System.Xml.Serialization
;
namespace
SPNATI_Character_Editor
namespace
SPNATI_Character_Editor
{
/// <summary>
/// In-game (non-epilogue) sprite
/// </summary>
public
class
Sprite
:
Directive
{
/// <summary>
/// personal notes
/// x,y,width,height are all % of baseHeight
/// ex. true width = width * display.height / baseHeight
///
/// width and height are basically required, since otherwise it doesn't scale with display
///
/// keyframes need a starting frame - can't just rely on the previous state
///
/// x is centered (i.e. x = container.width * 0.5 + x * display.height / baseHeight
/// </summary>
public
override
string
ToString
()
{
return
$"Sprite:
{
Id
}
"
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment