Arda-Computer/Arda

bridge customisability

rayan-saleh opened this issue · 1 comments

  • 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

Objective

Build a framework for data persistence for apps, room names but also window positions and link down the line.

Plan

Options

  1. https://www.youtube.com/watch?v=aUi9aijvpgs
  2. using ISaveable https://www.youtube.com/watch?v=yIsoAuOOG7Q
  3. PlayerPrefs
  4. a static class to hold data only https://gamedev.stackexchange.com/questions/110958/what-is-the-proper-way-to-handle-data-between-scenes

Flow

  1. Bridge initialize based off of persistent data to GO
    a. GO_name = vuplex url
    b. icon = favicon in persistentData folder

  2. User window hover over bridge

  3. 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()

  1. 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

  1. SaveableEntities = App GOs
  2. Saveable components = url, favicon locations
  3. 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

https://icon.horse/icon/google.com