Skip to content

Commit b239b35

Browse files
Merge pull request #8 from FireDragonGameStudio/hotfix_inventory_load_visibility
fixed item visibility on inventory load; small cleanup
2 parents faaa157 + b7fed1f commit b239b35

10 files changed

+1697
-2716
lines changed

Assets/FmvMaker/Scripts/Graph/Nodes/FmvLoadInventory.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,10 @@ private void LoadInventoryItems() {
4444
targetObject.transform.SetParent(fmvInventoryElementsPanel.transform);
4545
targetObject.transform.localScale = Vector3.one;
4646

47-
// get clickable facade
47+
// get clickable facade and make sure it's visible
4848
FmvClickableFacade itemFacade = targetObject.GetComponent<FmvClickableFacade>();
4949
itemFacade.SetItemData(gameDataEntry.GetItemModel());
50+
itemFacade.ChangeVisibility(1);
5051
itemFacade.OnItemClicked.RemoveAllListeners();
5152
itemFacade.OnItemClicked.AddListener(ClickInventoryItem);
5253

Assets/FmvMaker/Scripts/Graph/Provider/FmvGraphVideos.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,15 +160,13 @@ private void ToggleAllAvailableClickables() {
160160
for (int i = 0; i < clickables.Length; i++) {
161161
clickables[i].ChangeVisibility(1);
162162
}
163-
//clickableObjects.ToggleFindableItems(true);
164163
}
165164

166165
if (Input.GetKeyUp(ShowAllAvailableClickablesKey)) {
167166
FmvClickableFacade[] clickables = FmvSceneVariables.VideoElementsPanel.GetComponentsInChildren<FmvClickableFacade>();
168167
for (int i = 0; i < clickables.Length; i++) {
169168
clickables[i].ChangeVisibility(0);
170169
}
171-
//clickableObjects.ToggleFindableItems(false);
172170
}
173171
}
174172
}

Logs/AssetImportWorker0-prev.log

Lines changed: 0 additions & 1283 deletions
This file was deleted.

Logs/AssetImportWorker0.log

Lines changed: 824 additions & 64 deletions
Large diffs are not rendered by default.

Logs/AssetImportWorker1-prev.log

Lines changed: 0 additions & 1259 deletions
This file was deleted.

Logs/AssetImportWorker1.log

Lines changed: 822 additions & 62 deletions
Large diffs are not rendered by default.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
Base path: 'C:/Data/UnityInstallations/2021.3.16f1/Editor/Data', plugins path 'C:/Data/UnityInstallations/2021.3.16f1/Editor/Data/PlaybackEngines'
22
Cmd: initializeCompiler
33

4+
Unhandled exception: Protocol error - failed to read magic number (error -2147483644, transferred 0/4)
5+
6+
Quitting shader compiler process
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
Base path: 'C:/Data/UnityInstallations/2021.3.16f1/Editor/Data', plugins path 'C:/Data/UnityInstallations/2021.3.16f1/Editor/Data/PlaybackEngines'
22
Cmd: initializeCompiler
33

4+
Cmd: shutdown

UserSettings/EditorUserSettings.asset

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ EditorUserSettings:
1212
value: 525452570354580d555c0f2044720f444f154e7a7e2a73687f71456ab0e4366e
1313
flags: 0
1414
RecentlyUsedSceneGuid-2:
15-
value: 5b50560753530f090f58557641200a4412161b7e7c7022652e794c66b7b9373e
15+
value: 5b55560252565b0f5c0b542444755944414f482c782a75327d2d4d66b7b4356e
1616
flags: 0
1717
RecentlyUsedSceneGuid-3:
18-
value: 5b55560252565b0f5c0b542444755944414f482c782a75327d2d4d66b7b4356e
18+
value: 5b50560753530f090f58557641200a4412161b7e7c7022652e794c66b7b9373e
1919
flags: 0
2020
RecentlyUsedScenePath-0:
2121
value: 224247031146467d001821231b264d5f25141d24293b69142428113ce5c6392eacf238e0f323

UserSettings/Layouts/default-2021.dwlt

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ MonoBehaviour:
120120
m_MinSize: {x: 300, y: 200}
121121
m_MaxSize: {x: 24288, y: 16192}
122122
vertical: 0
123-
controlID: 226
123+
controlID: 21
124124
--- !u!114 &6
125125
MonoBehaviour:
126126
m_ObjectHideFlags: 52
@@ -140,12 +140,12 @@ MonoBehaviour:
140140
serializedVersion: 2
141141
x: 0
142142
y: 0
143-
width: 1062
143+
width: 1059
144144
height: 987
145145
m_MinSize: {x: 100, y: 200}
146146
m_MaxSize: {x: 8096, y: 16192}
147147
vertical: 1
148-
controlID: 92
148+
controlID: 129
149149
--- !u!114 &7
150150
MonoBehaviour:
151151
m_ObjectHideFlags: 52
@@ -163,7 +163,7 @@ MonoBehaviour:
163163
serializedVersion: 2
164164
x: 0
165165
y: 0
166-
width: 1062
166+
width: 1059
167167
height: 656
168168
m_MinSize: {x: 201, y: 221}
169169
m_MaxSize: {x: 4001, y: 4021}
@@ -192,7 +192,7 @@ MonoBehaviour:
192192
serializedVersion: 2
193193
x: 0
194194
y: 656
195-
width: 1062
195+
width: 1059
196196
height: 331
197197
m_MinSize: {x: 101, y: 121}
198198
m_MaxSize: {x: 4001, y: 4021}
@@ -219,14 +219,14 @@ MonoBehaviour:
219219
- {fileID: 11}
220220
m_Position:
221221
serializedVersion: 2
222-
x: 1062
222+
x: 1059
223223
y: 0
224-
width: 418
224+
width: 419
225225
height: 987
226226
m_MinSize: {x: 100, y: 200}
227227
m_MaxSize: {x: 8096, y: 16192}
228228
vertical: 1
229-
controlID: 18
229+
controlID: 22
230230
--- !u!114 &10
231231
MonoBehaviour:
232232
m_ObjectHideFlags: 52
@@ -244,7 +244,7 @@ MonoBehaviour:
244244
serializedVersion: 2
245245
x: 0
246246
y: 0
247-
width: 418
247+
width: 419
248248
height: 434
249249
m_MinSize: {x: 202, y: 221}
250250
m_MaxSize: {x: 4002, y: 4021}
@@ -270,7 +270,7 @@ MonoBehaviour:
270270
serializedVersion: 2
271271
x: 0
272272
y: 434
273-
width: 418
273+
width: 419
274274
height: 553
275275
m_MinSize: {x: 232, y: 271}
276276
m_MaxSize: {x: 10002, y: 10021}
@@ -294,9 +294,9 @@ MonoBehaviour:
294294
m_Children: []
295295
m_Position:
296296
serializedVersion: 2
297-
x: 1480
297+
x: 1478
298298
y: 0
299-
width: 356
299+
width: 358
300300
height: 987
301301
m_MinSize: {x: 276, y: 71}
302302
m_MaxSize: {x: 4001, y: 4021}
@@ -379,23 +379,23 @@ MonoBehaviour:
379379
m_MinSize: {x: 100, y: 100}
380380
m_MaxSize: {x: 4000, y: 4000}
381381
m_TitleContent:
382-
m_Text: Script Graph
382+
m_Text: State Graph
383383
m_Image: {fileID: 0}
384384
m_Tooltip:
385385
m_Pos:
386386
serializedVersion: 2
387387
x: 84
388388
y: 73
389-
width: 1061
389+
width: 1058
390390
height: 635
391391
m_ViewDataDictionary: {fileID: 0}
392392
m_OverlayCanvas:
393393
m_LastAppliedPresetName: Default
394394
m_SaveData: []
395395
_data:
396-
_json: '{"locked":false,"graphInspectorEnabled":true,"variablesInspectorEnabled":true,"isActive":false,"referenceData":{"rootObjectInstanceID":25270,"parentElementGuids":["d94c1dbe-be4f-461b-98ee-01fc8d14bb0c"]},"sidebars":{"left":{"size":335.0,"scroll":{"x":0.0,"y":0.0}},"right":{"size":335.0,"scroll":{"x":0.0,"y":0.0}},"panels":[{"height":555.0,"anchor":"Left","order":0,"controlHint":{"$content":"Unity.VisualScripting.GraphInspectorPanel","$type":"System.RuntimeType"},"scroll":{"x":0.0,"y":0.0}},{"height":200.0,"anchor":"Left","order":0,"controlHint":{"$content":"Unity.VisualScripting.VariablesPanel","$type":"System.RuntimeType"},"scroll":{"x":0.0,"y":0.0}}]},"reliablePosition":{"xMin":84.0,"yMin":73.0,"xMax":1145.0,"yMax":708.0},"saveChangesMessage":"Unity.VisualScripting.GraphWindow
397-
has unsaved changes.","m_MinSize":{"x":100.0,"y":100.0},"m_MaxSize":{"x":4000.0,"y":4000.0},"m_TitleContent":{"m_Text":"Script
398-
Graph","m_Image":null,"m_Tooltip":""},"m_Pos":{"xMin":84.0,"yMin":73.0,"xMax":1145.0,"yMax":708.0},"m_ViewDataDictionary":null,"m_OverlayCanvas":{"destinationMarker":null,"m_LastAppliedPresetName":"Default","m_SaveData":[]}}'
396+
_json: '{"locked":false,"graphInspectorEnabled":true,"variablesInspectorEnabled":true,"isActive":false,"referenceData":{"rootObjectInstanceID":23368,"parentElementGuids":[]},"sidebars":{"left":{"size":335.0,"scroll":{"x":0.0,"y":0.0}},"right":{"size":335.0,"scroll":{"x":0.0,"y":0.0}},"panels":[{"height":555.0,"anchor":"Left","order":0,"controlHint":{"$content":"Unity.VisualScripting.GraphInspectorPanel","$type":"System.RuntimeType"},"scroll":{"x":0.0,"y":0.0}},{"height":200.0,"anchor":"Left","order":0,"controlHint":{"$content":"Unity.VisualScripting.VariablesPanel","$type":"System.RuntimeType"},"scroll":{"x":0.0,"y":0.0}}]},"reliablePosition":{"xMin":84.0,"yMin":73.0,"xMax":1142.0,"yMax":708.0},"saveChangesMessage":"Unity.VisualScripting.GraphWindow
397+
has unsaved changes.","m_MinSize":{"x":100.0,"y":100.0},"m_MaxSize":{"x":4000.0,"y":4000.0},"m_TitleContent":{"m_Text":"State
398+
Graph","m_Image":null,"m_Tooltip":""},"m_Pos":{"xMin":84.0,"yMin":73.0,"xMax":1142.0,"yMax":708.0},"m_ViewDataDictionary":null,"m_OverlayCanvas":{"destinationMarker":null,"m_LastAppliedPresetName":"Default","m_SaveData":[]}}'
399399
_objectReferences: []
400400
--- !u!114 &16
401401
MonoBehaviour:
@@ -420,7 +420,7 @@ MonoBehaviour:
420420
serializedVersion: 2
421421
x: 84
422422
y: 73
423-
width: 1061
423+
width: 1058
424424
height: 635
425425
m_ViewDataDictionary: {fileID: 0}
426426
m_OverlayCanvas:
@@ -432,7 +432,7 @@ MonoBehaviour:
432432
m_ShowGizmos: 0
433433
m_TargetDisplay: 0
434434
m_ClearColor: {r: 0, g: 0, b: 0, a: 0}
435-
m_TargetSize: {x: 1061, y: 614}
435+
m_TargetSize: {x: 1058, y: 614}
436436
m_TextureFilterMode: 0
437437
m_TextureHideFlags: 61
438438
m_RenderIMGUI: 1
@@ -447,8 +447,8 @@ MonoBehaviour:
447447
m_VRangeLocked: 0
448448
hZoomLockedByDefault: 0
449449
vZoomLockedByDefault: 0
450-
m_HBaseRangeMin: -530.5
451-
m_HBaseRangeMax: 530.5
450+
m_HBaseRangeMin: -529
451+
m_HBaseRangeMax: 529
452452
m_VBaseRangeMin: -307
453453
m_VBaseRangeMax: 307
454454
m_HAllowExceedBaseRangeMin: 1
@@ -468,23 +468,23 @@ MonoBehaviour:
468468
serializedVersion: 2
469469
x: 0
470470
y: 21
471-
width: 1061
471+
width: 1058
472472
height: 614
473473
m_Scale: {x: 1, y: 1}
474-
m_Translation: {x: 530.5, y: 307}
474+
m_Translation: {x: 529, y: 307}
475475
m_MarginLeft: 0
476476
m_MarginRight: 0
477477
m_MarginTop: 0
478478
m_MarginBottom: 0
479479
m_LastShownAreaInsideMargins:
480480
serializedVersion: 2
481-
x: -530.5
481+
x: -529
482482
y: -307
483-
width: 1061
483+
width: 1058
484484
height: 614
485485
m_MinimalGUI: 1
486486
m_defaultScale: 1
487-
m_LastWindowPixelSize: {x: 1061, y: 635}
487+
m_LastWindowPixelSize: {x: 1058, y: 635}
488488
m_ClearInEditMode: 1
489489
m_NoCameraWarning: 1
490490
m_LowResolutionForAspectRatios: 01000000000100000100
@@ -920,7 +920,7 @@ MonoBehaviour:
920920
serializedVersion: 2
921921
x: 84
922922
y: 729
923-
width: 1061
923+
width: 1058
924924
height: 310
925925
m_ViewDataDictionary: {fileID: 0}
926926
m_OverlayCanvas:
@@ -979,9 +979,9 @@ MonoBehaviour:
979979
m_Tooltip:
980980
m_Pos:
981981
serializedVersion: 2
982-
x: 1146
982+
x: 1143
983983
y: 73
984-
width: 416
984+
width: 417
985985
height: 413
986986
m_ViewDataDictionary: {fileID: 0}
987987
m_OverlayCanvas:
@@ -990,9 +990,9 @@ MonoBehaviour:
990990
m_SceneHierarchy:
991991
m_TreeViewState:
992992
scrollPos: {x: 0, y: 0}
993-
m_SelectedIDs: 8c650000
993+
m_SelectedIDs:
994994
m_LastClickedID: 0
995-
m_ExpandedIDs: 8ce0ffff14faffff285b00003e5b0000765b00007a5b0000845b0000e6620000f0620000
995+
m_ExpandedIDs: 14faffff285b00007a5b0000
996996
m_RenameOverlay:
997997
m_UserAcceptedRename: 0
998998
m_Name:
@@ -1037,9 +1037,9 @@ MonoBehaviour:
10371037
m_Tooltip:
10381038
m_Pos:
10391039
serializedVersion: 2
1040-
x: 1146
1040+
x: 1143
10411041
y: 507
1042-
width: 416
1042+
width: 417
10431043
height: 532
10441044
m_ViewDataDictionary: {fileID: 0}
10451045
m_OverlayCanvas:
@@ -1058,22 +1058,22 @@ MonoBehaviour:
10581058
m_SkipHidden: 0
10591059
m_SearchArea: 1
10601060
m_Folders:
1061-
- Assets/FmvMaker/Prefabs
1061+
- Assets/FmvMaker/Scenes
10621062
m_Globs: []
10631063
m_OriginalText:
10641064
m_ViewMode: 1
10651065
m_StartGridSize: 16
10661066
m_LastFolders:
1067-
- Assets/FmvMaker/Prefabs
1067+
- Assets/FmvMaker/Scenes
10681068
m_LastFoldersGridSize: 16
10691069
m_LastProjectPath: C:\Data\UnityProjects\FmvMaker
10701070
m_LockTracker:
10711071
m_IsLocked: 0
10721072
m_FolderTreeState:
1073-
scrollPos: {x: 0, y: 0}
1074-
m_SelectedIDs: b65c0000
1075-
m_LastClickedID: 23734
1076-
m_ExpandedIDs: 00000000645c0000665c0000685c00006a5c00006c5c00006e5c0000705c0000725c0000745c0000765c0000785c00007a5c00007c5c00007e5c0000805c0000825c0000845c0000865c0000885c00008a5c00008c5c00008e5c0000905c0000925c0000945c0000965c0000985c00009a5c00009c5c00009e5c0000a05c0000a25c0000a45c0000a65c0000a85c0000aa5c0000ac5c0000325d000000ca9a3b
1073+
scrollPos: {x: 0, y: 84}
1074+
m_SelectedIDs: 245d0000
1075+
m_LastClickedID: 23844
1076+
m_ExpandedIDs: 00000000645c0000665c0000685c00006a5c00006c5c00006e5c0000705c0000725c0000745c0000765c0000785c00007a5c00007c5c00007e5c0000805c0000825c0000845c0000865c0000885c00008a5c00008c5c00008e5c0000905c0000925c0000945c0000965c0000985c00009a5c00009c5c00009e5c0000a05c0000a25c0000a45c0000a65c0000a85c0000aa5c0000ac5c0000ae5c0000265d000000ca9a3b
10771077
m_RenameOverlay:
10781078
m_UserAcceptedRename: 0
10791079
m_Name:
@@ -1101,7 +1101,7 @@ MonoBehaviour:
11011101
scrollPos: {x: 0, y: 0}
11021102
m_SelectedIDs:
11031103
m_LastClickedID: 0
1104-
m_ExpandedIDs: 00000000645c0000665c0000685c00006a5c00006c5c00006e5c0000705c0000725c0000745c0000765c0000785c00007a5c00007c5c00007e5c0000805c0000825c0000845c0000865c0000885c00008a5c00008c5c00008e5c0000905c0000925c0000945c0000965c0000985c00009a5c00009c5c00009e5c0000a05c0000a25c0000a45c0000a65c0000a85c0000aa5c0000ac5c0000
1104+
m_ExpandedIDs: 00000000645c0000665c0000685c00006a5c00006c5c00006e5c0000705c0000725c0000745c0000765c0000785c00007a5c00007c5c00007e5c0000805c0000825c0000845c0000865c0000885c00008a5c00008c5c00008e5c0000905c0000925c0000945c0000965c0000985c00009a5c00009c5c00009e5c0000a05c0000a25c0000a45c0000a65c0000a85c0000aa5c0000ac5c0000ae5c0000
11051105
m_RenameOverlay:
11061106
m_UserAcceptedRename: 0
11071107
m_Name:
@@ -1128,7 +1128,7 @@ MonoBehaviour:
11281128
m_ListAreaState:
11291129
m_SelectedInstanceIDs:
11301130
m_LastClickedInstanceID: 0
1131-
m_HadKeyboardFocusLastEvent: 1
1131+
m_HadKeyboardFocusLastEvent: 0
11321132
m_ExpandedInstanceIDs: c6230000
11331133
m_RenameOverlay:
11341134
m_UserAcceptedRename: 0
@@ -1178,9 +1178,9 @@ MonoBehaviour:
11781178
m_Tooltip:
11791179
m_Pos:
11801180
serializedVersion: 2
1181-
x: 1564
1181+
x: 1562
11821182
y: 73
1183-
width: 355
1183+
width: 357
11841184
height: 966
11851185
m_ViewDataDictionary: {fileID: 0}
11861186
m_OverlayCanvas:

0 commit comments

Comments
 (0)