Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
UFrameIT
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
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
FrameIT
UFrameIT
Commits
69b8a01b
Commit
69b8a01b
authored
4 years ago
by
John Schihada
Browse files
Options
Downloads
Patches
Plain Diff
Made hint-buttons visible/invisible when available or not
parent
ac4544ad
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Assets/Resources/Prefabs/ScrollParameterDisplay.prefab
+80
-0
80 additions, 0 deletions
Assets/Resources/Prefabs/ScrollParameterDisplay.prefab
Assets/Scripts/InventoryStuff/RenderedScrollFact.cs
+3
-9
3 additions, 9 deletions
Assets/Scripts/InventoryStuff/RenderedScrollFact.cs
with
83 additions
and
9 deletions
Assets/Resources/Prefabs/ScrollParameterDisplay.prefab
+
80
−
0
View file @
69b8a01b
...
...
@@ -257,6 +257,76 @@ PrefabInstance:
propertyPath
:
m_AnchoredPosition.y
value
:
0
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
1430730640409366961
,
guid
:
0f75dbd3f5b33b040948ba58d3b90cb0
,
type
:
3
}
propertyPath
:
defaultColor.r
value
:
1
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
1430730640409366961
,
guid
:
0f75dbd3f5b33b040948ba58d3b90cb0
,
type
:
3
}
propertyPath
:
defaultColor.g
value
:
1
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
1430730640409366961
,
guid
:
0f75dbd3f5b33b040948ba58d3b90cb0
,
type
:
3
}
propertyPath
:
defaultColor.b
value
:
1
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
1430730640409366961
,
guid
:
0f75dbd3f5b33b040948ba58d3b90cb0
,
type
:
3
}
propertyPath
:
defaultColor.a
value
:
0.5294118
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
1430730640409366961
,
guid
:
0f75dbd3f5b33b040948ba58d3b90cb0
,
type
:
3
}
propertyPath
:
highlightColor.r
value
:
0.9529412
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
1430730640409366961
,
guid
:
0f75dbd3f5b33b040948ba58d3b90cb0
,
type
:
3
}
propertyPath
:
highlightColor.g
value
:
0.5137255
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
1430730640409366961
,
guid
:
0f75dbd3f5b33b040948ba58d3b90cb0
,
type
:
3
}
propertyPath
:
highlightColor.b
value
:
0.07058824
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
1430730640409366961
,
guid
:
0f75dbd3f5b33b040948ba58d3b90cb0
,
type
:
3
}
propertyPath
:
defaultHintButtonColor.r
value
:
1
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
1430730640409366961
,
guid
:
0f75dbd3f5b33b040948ba58d3b90cb0
,
type
:
3
}
propertyPath
:
defaultHintButtonColor.g
value
:
1
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
1430730640409366961
,
guid
:
0f75dbd3f5b33b040948ba58d3b90cb0
,
type
:
3
}
propertyPath
:
defaultHintButtonColor.b
value
:
1
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
1430730640409366961
,
guid
:
0f75dbd3f5b33b040948ba58d3b90cb0
,
type
:
3
}
propertyPath
:
defaultHintButtonColor.a
value
:
0.5294118
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
1430730640409366961
,
guid
:
0f75dbd3f5b33b040948ba58d3b90cb0
,
type
:
3
}
propertyPath
:
availableHintButtonColor.r
value
:
0.9529412
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
1430730640409366961
,
guid
:
0f75dbd3f5b33b040948ba58d3b90cb0
,
type
:
3
}
propertyPath
:
availableHintButtonColor.g
value
:
0.5137255
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
1430730640409366961
,
guid
:
0f75dbd3f5b33b040948ba58d3b90cb0
,
type
:
3
}
propertyPath
:
availableHintButtonColor.b
value
:
0.07058824
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
1686984722580339795
,
guid
:
0f75dbd3f5b33b040948ba58d3b90cb0
,
type
:
3
}
propertyPath
:
m_fontSize
...
...
@@ -282,6 +352,16 @@ PrefabInstance:
propertyPath
:
m_margin.y
value
:
-5.0954895
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
5738028260646118123
,
guid
:
0f75dbd3f5b33b040948ba58d3b90cb0
,
type
:
3
}
propertyPath
:
m_IsActive
value
:
0
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
6338961308496269799
,
guid
:
0f75dbd3f5b33b040948ba58d3b90cb0
,
type
:
3
}
propertyPath
:
m_Interactable
value
:
1
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
7669725544194832573
,
guid
:
0f75dbd3f5b33b040948ba58d3b90cb0
,
type
:
3
}
propertyPath
:
m_AnchoredPosition.y
...
...
This diff is collapsed.
Click to expand it.
Assets/Scripts/InventoryStuff/RenderedScrollFact.cs
+
3
−
9
View file @
69b8a01b
...
...
@@ -11,9 +11,6 @@ public class RenderedScrollFact : MonoBehaviour
private
string
_label
;
public
string
factUri
;
private
Color
defaultColor
=
new
Color
(
255
,
255
,
255
,
135
);
private
Color
highlightColor
=
new
Color
(
255
,
0
,
0
,
135
);
public
GameObject
ScrollParameterObject
;
public
string
Label
...
...
@@ -37,17 +34,14 @@ public void OnClickHintButton() {
}
public
void
OnHintAvailable
(
List
<
string
>
uris
)
{
UnityEngine
.
UI
.
Button
button
=
ScrollParameterObject
.
GetComponentInChildren
<
UnityEngine
.
UI
.
Button
>();
UnityEngine
.
UI
.
ColorBlock
buttonColor
=
button
.
colors
;
GameObject
hintButton
=
ScrollParameterObject
.
transform
.
GetChild
(
2
).
gameObject
;
if
(
uris
.
Contains
(
factUri
))
{
buttonColor
.
normalColor
=
highlightColor
;
button
.
colors
=
buttonColor
;
hintButton
.
SetActive
(
true
);
}
else
{
buttonColor
.
normalColor
=
defaultColor
;
button
.
colors
=
buttonColor
;
hintButton
.
SetActive
(
false
);
}
}
}
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