-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
48 changed files
with
742 additions
and
470 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
%YAML 1.1 | ||
%TAG !u! tag:unity3d.com,2011: | ||
--- !u!114 &11400000 | ||
MonoBehaviour: | ||
m_ObjectHideFlags: 0 | ||
m_CorrespondingSourceObject: {fileID: 0} | ||
m_PrefabInstance: {fileID: 0} | ||
m_PrefabAsset: {fileID: 0} | ||
m_GameObject: {fileID: 0} | ||
m_Enabled: 1 | ||
m_EditorHideFlags: 0 | ||
m_Script: {fileID: 11500000, guid: c4647d479c338325f9328893d838e266, type: 3} | ||
m_Name: RuntimeData | ||
m_EditorClassIdentifier: |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using System; | ||
using UnityEngine; | ||
|
||
namespace dev.klebersilva.tools.bitmapfontcreator | ||
{ | ||
[Serializable] | ||
internal class CharacterProps | ||
{ | ||
public string Character = ""; | ||
public Vector2Int Padding = Vector2Int.zero; | ||
public int Spacing = 0; | ||
|
||
public CharacterProps Clone() | ||
{ | ||
return new CharacterProps | ||
{ | ||
Character = Character, | ||
Padding = Padding, | ||
Spacing = Spacing, | ||
}; | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using System; | ||
using UnityEngine; | ||
|
||
namespace dev.klebersilva.tools.bitmapfontcreator | ||
{ | ||
[Serializable] | ||
internal class ExecutionData : BitmapFontCreatorModel | ||
{ | ||
public Texture2D Texture; | ||
|
||
public static new ExecutionData Default | ||
{ | ||
get | ||
{ | ||
var data = new ExecutionData { Texture = null }; | ||
BitmapFontCreatorModel.Default.CopyTo(data); | ||
return data; | ||
} | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
namespace dev.klebersilva.tools.bitmapfontcreator | ||
{ | ||
internal enum Orientation | ||
{ | ||
Horizontal, | ||
Vertical, | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -29,4 +29,4 @@ public static void Save(PrefsModel model) | |
EditorPrefs.SetString(EditorPrefsKey, content); | ||
} | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using UnityEngine; | ||
|
||
namespace dev.klebersilva.tools.bitmapfontcreator | ||
{ | ||
// [CreateAssetMenu(fileName = "RuntimeData", menuName = "RuntimeData", order = 0)] | ||
internal class RuntimeData : ScriptableObject | ||
{ | ||
private const string DataPath = "RuntimeData"; | ||
public ExecutionData Data; | ||
|
||
public static RuntimeData Load() | ||
{ | ||
var data = Resources.Load<RuntimeData>(DataPath); | ||
data.Data ??= ExecutionData.Default; | ||
return data; | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.