GithubHelp home page GithubHelp logo

Comments (14)

Daandelange avatar Daandelange commented on September 10, 2024

How to detect the default platform ? Can we read this from the OF_path ?

from pgelectron.

ofZach avatar ofZach commented on September 10, 2024

this should be in settings.json -- it seems like as we do releases, like ios / osx we 'd need to change this file.

from pgelectron.

Daandelange avatar Daandelange commented on September 10, 2024

ok, thanks :)
But what about the github master version? settings.json doesn't come with the repo and is auto-generated by index.js. This could be problematic.

from pgelectron.

ofZach avatar ofZach commented on September 10, 2024

settings.json should not be auto generated and should come with the repo, that's how it was before

from pgelectron.

Daandelange avatar Daandelange commented on September 10, 2024

Ok, but if the file exists it won't auto-generate.
Anyways, same problem: how to set the default target from the github repo ?
Maybe auto-generate isn't that bad and we could set the default target from an OS detection ?

from pgelectron.

ofZach avatar ofZach commented on September 10, 2024

no I don't think we can, I think this has to be set by hand as we do releases. this is similar to the xml file that comes the PG now. I don't think it can all be automated yet.

from pgelectron.

Daandelange avatar Daandelange commented on September 10, 2024

I think you partially fixed this in your commits from today, didn't you ?
I can select multiple and not deselect one.

I can make something to select default on startup

from pgelectron.

ofZach avatar ofZach commented on September 10, 2024

I guess I meant we should do this kind of approach instead of a multi-select form...

screen shot 2015-08-21 at 1 07 38 pm

from pgelectron.

Daandelange avatar Daandelange commented on September 10, 2024

Added a getSelectedPlatforms() function which reads the toggle states.

from pgelectron.

ofZach avatar ofZach commented on September 10, 2024

Sweet thanks! What I also wasn't sure about it how to hide options (or grey them out) in advanced mode (in advance mode you should only see the default platform highlighted and no toggle-able)

from pgelectron.

Daandelange avatar Daandelange commented on September 10, 2024

This can be simply done by CSS but first I'd like to make sure there's always 1 platform selected.
For the moment none is selected on launch which would be a problem in non-advanced mode.

from pgelectron.

ofZach avatar ofZach commented on September 10, 2024

I think we could set that here:

for (i = 0; i < platforms.length; i++) {
    if (platforms[i] === defaultPlatform){
            ;  // set some other identifier
            } else {
    $(".platformSelect").append("<div class='platform'>" + platforms[i] + "</span>");
            }
}

from pgelectron.

Daandelange avatar Daandelange commented on September 10, 2024

Not needed, CSS will handle it.
The thing is that the git repo has no defaultPlatform...

from pgelectron.

ofZach avatar ofZach commented on September 10, 2024

yeah we should just use osx in the settings.json and then change it later for releases...

from pgelectron.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.