-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Buttons fixes #1193
Buttons fixes #1193
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Tested in Android, every button worked fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when testing on Unity, I'm getting this error when trying to click on the characters button (I also tried merging with main and then re-testing and still the error pops up):
Cannot load scene: Invalid scene name (empty string) and invalid build index -1
UnityEngine.SceneManagement.SceneManager:LoadScene (string)
MoreMountains.Tools.MMLoadScene:LoadScene () (at Assets/ThirdParty/TopDownEngine/ThirdParty/MoreMountains/MMTools/Tools/MMSceneLoading/Scripts/Helpers/MMLoadScene.cs:34)
UnityEngine.Events.UnityEvent:Invoke ()
The button has no scene set:
![image](https://private-user-images.githubusercontent.com/25107475/285548956-022b07c1-8474-4134-a85d-20dc4005b02d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE1NTI1MTUsIm5iZiI6MTcyMTU1MjIxNSwicGF0aCI6Ii8yNTEwNzQ3NS8yODU1NDg5NTYtMDIyYjA3YzEtODQ3NC00MTM0LWE4NWQtMjBkYzQwMDViMDJkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzIxVDA4NTY1NVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWMwZTgwYWIwNTc4MzIxNzg2Y2Y0NDg5YWEyMzFjYjdkZmRkZTg0ZWMwY2Q3Njc3MjFjNTdiMzUyYWY5MDg3MzAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.LSfVVEz8V9tzYbRbIROLRxvTEF5jfBHjueSf-jHUZ6o)
@mFragaBA Do you know if this happened after re-imporing the client Engine folder? I have seen the same problem but after those changes. |
@BertovDev what would re-importing the client Engine folder? The topdownengine folder? I did recently re-import it. However, I tried deleting the directory from client/Assets/ThirdParty and re-importing it but it was still not working. Also tried closing and re-opening unity but to no avail. |
Talked to the team and it is actually working fine. I'll help you fix this but the team needs this fix so this dismiss was requested.
* fix settings and exit buttons * fix toggles * client prediction toggle fix * fix interpolation and ghost toggles * main load scene to be fix * main load scene fix
Motivation
Buttons in Battle.unity were broken:
Summary of changes
This PR fixes all the buttons listed before. However I recommend the reviewer goes though all the buttons in that scene to check none were broken in the process.
Changes in Battle.unity were necessary since the prefab override, vital for the buttons to work again, implied changes in that scene. Also some references in the scene were missing so adding those also implied changes there.
Checklist