bridge customisability
rayan-saleh opened this issue · 1 comments
rayan-saleh commented
- tab to move
- to add, drag window into bridge
-- take favicon - to remove, hold and move out of bridge or
-- look + ctrl w to delete from bridge
-- add default apps
rayan-saleh commented
Objective
Build a framework for data persistence for apps, room names but also window positions and link down the line.
Plan
Options
- https://www.youtube.com/watch?v=aUi9aijvpgs
- using ISaveable https://www.youtube.com/watch?v=yIsoAuOOG7Q
- PlayerPrefs
- a static class to hold data only https://gamedev.stackexchange.com/questions/110958/what-is-the-proper-way-to-handle-data-between-scenes
Flow
-
Bridge initialize based off of persistent data to GO
a. GO_name = vuplex url
b. icon = favicon in persistentData folder -
User window hover over bridge
-
Grab data from window and add to persistent data
a. instantiate GO with name & favicon download -https://www.google.com/s2/favicons?domain=dev.to&sz=128
b. do Save()
- Reinitialise bridge# Implementation
a. do Load()
I think ISaveable is the easiest solution (& most flexible solution) from https://www.youtube.com/watch?v=yIsoAuOOG7Q , but to not do in ContextMenu
- SaveableEntities = App GOs
- Saveable components = url, favicon locations
- Playerhealth = BridgeApp = on App GOs
- Downloading images - https://www.youtube.com/watch?v=KSoFIqxJSCc
- assigining image & correct url name to GO (do with no apps for now)
- correctly reading to and from persitentData
-
- either need to go abstraction above and save how many apps existed and then generate them with their respective images and names OR
-
-
- use the unity asset
-
- saving the number of apps / different applications
- creating a save.txt template to start with