-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
44dad27
commit 9ca9d4d
Showing
65 changed files
with
539 additions
and
1,021 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
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
36 changes: 18 additions & 18 deletions
36
...or/Graphics/Drawing/TargetImpl/EditorObjects/Lane/TextureLaneEditorObjectDrawingTarget.cs
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,27 +1,27 @@ | ||
using OngekiFumenEditor.Kernel.Graphics.Base; | ||
using OngekiFumenEditor.Utils; | ||
using System; | ||
using System.Drawing; | ||
|
||
namespace OngekiFumenEditor.Modules.FumenVisualEditor.Graphics.Drawing.TargetImpl.EditorObjects.Lane | ||
{ | ||
public abstract class TextureLaneEditorObjectDrawingTarget : CommonLaneEditorObjectDrawingTarget | ||
{ | ||
public static Texture LoadTextrueFromDefaultResource(string rPath) | ||
{ | ||
var info = System.Windows.Application.GetResourceStream(new Uri(@"Modules\FumenVisualEditor\Views\OngekiObjects\" + rPath, UriKind.Relative)); | ||
using var bitmap = Image.FromStream(info.Stream) as Bitmap; | ||
return new Texture(bitmap); | ||
} | ||
public abstract class TextureLaneEditorObjectDrawingTarget : CommonLaneEditorObjectDrawingTarget | ||
{ | ||
public static Texture LoadTextrueFromDefaultResource(string rPath) | ||
{ | ||
var texture = ResourceUtils.OpenReadTextureFromFile(@".\Resources\editor\" + rPath); | ||
return texture; | ||
} | ||
|
||
public override Texture StartEditorTexture { get; } | ||
public override Texture NextEditorTexture { get; } | ||
public override Texture EndEditorTexture { get; } | ||
public override Texture StartEditorTexture { get; } | ||
public override Texture NextEditorTexture { get; } | ||
public override Texture EndEditorTexture { get; } | ||
|
||
public TextureLaneEditorObjectDrawingTarget(Texture startEditorTexture, Texture nextEditorTexture, Texture endEditorTexture) | ||
{ | ||
StartEditorTexture = startEditorTexture; | ||
NextEditorTexture = nextEditorTexture; | ||
EndEditorTexture = endEditorTexture; | ||
} | ||
} | ||
public TextureLaneEditorObjectDrawingTarget(Texture startEditorTexture, Texture nextEditorTexture, Texture endEditorTexture) | ||
{ | ||
StartEditorTexture = startEditorTexture; | ||
NextEditorTexture = nextEditorTexture; | ||
EndEditorTexture = endEditorTexture; | ||
} | ||
} | ||
} |
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
Oops, something went wrong.