-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New syntax for vectors and description (#466)
* Use Utils.ParseVectorX for pos/rot/size in generators; Use new syntax for dummy values in ReadFromJson * Fix issue with spaces in given vectors * description as a string * Adapt GUIObjectInfos for new description format * Simplify GUIObjectInfos.UpdateFields() * Rename SMargin components; areas as vector4 * Fix areas command parsing * Fix scrollbar issue in infos panel * Simplify DisplayObjectData.SetLabel() & fix face text with rack's name
- Loading branch information
Showing
14 changed files
with
102 additions
and
178 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,26 @@ | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using UnityEngine; | ||
|
||
[System.Serializable] | ||
public struct SMargin | ||
{ | ||
public float left; | ||
public float right; | ||
public float top; | ||
public float bottom; | ||
public float front; | ||
public float back; | ||
|
||
public SMargin(SMargin _data) | ||
{ | ||
top = _data.top; | ||
bottom = _data.bottom; | ||
front = _data.front; | ||
back = _data.back; | ||
right = _data.right; | ||
left = _data.left; | ||
} | ||
|
||
public SMargin(Vector4 _data) | ||
{ | ||
front = _data.x; | ||
back = _data.y; | ||
right = _data.z; | ||
left = _data.z; | ||
} | ||
} |
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
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.