[UI] a way that we can fix hangers with

Discussion in 'General Archive' started by Smithyy, Jun 9, 2016.

Dear forum reader,

if you’d like to actively participate on the forum by joining discussions or starting your own threads or topics, please log into the game first. If you do not have a game account, you will need to register for one. We look forward to your next visit! CLICK HERE
  1. Smithyy

    Smithyy User

    hello darkorbit developers i think about how you guys could fix the hanger problem and i search about how it could be done and i find out that you best ways to do it on my eyes is to use one of the design patterns maby adapter now we could use adapter the adapter class can be placed between your system and eternal system but it could also be between 2 classes
    or lets say if you guys have a complex for set classes we could use the factory and this when creation logic is complex for a set of classes but i think the best way is using adapter

    [​IMG] here is a explain more with in the image hope you understand it that is the adapter patern
    [​IMG] here is a explain more about the factory patern

    i think the photo did not show up so here is the links http://prntscr.com/bec3uo factory
    http://prntscr.com/bec591 adapter
     
    Last edited by moderator: Jun 9, 2016
  2. 77Transam

    77Transam User

  3. Smithyy

    Smithyy User

    i didn't know i just read it its almost the same how am saying it but what am speaking in design will adding adapter they dont need to do all this all what am saying that it could be done without adding all this now the problem is that some ships have 16 slots for lf-4s and others have 16 slots for generators so adding adapter would be better than making all these buttons in drop down list its good a nice but if they add 1 adapter it will work for all the ships no matter how much stuff they have and the adapter will see each ship equipment slots and take what it need this is a way that it could be done and i don't know if they will like it or not but its the easy and faster
     
    OrbitGuru likes this.