Giter Club home page Giter Club logo

Comments (8)

andreasOL16 avatar andreasOL16 commented on August 30, 2024 1

You find it documented in

http://nilsliberg.se/ksp/history.txt

Search for "Added new control parameter access feature (see example 3)"

from sublimeksp.

eitherys avatar eitherys commented on August 30, 2024

Yes, we've had this problem in the past in our projects. I confirm this issue.

from sublimeksp.

andreasOL16 avatar andreasOL16 commented on August 30, 2024

Hmmm...works for me without problems...

from sublimeksp.

SamWindell avatar SamWindell commented on August 30, 2024

It seems to work okay for me at the moment, but I believe you that this is sometimes an issue. At the beginning of the compiling process all strings in the script stored and each string is replaced with a number so that they can be put back in further down the process.

I'm not sure on the exact circumstances, but I think these string placeholders are sometimes not made. This could be why the comma in strings work correct only sometimes. I will have look about fixing this.

from sublimeksp.

eitherys avatar eitherys commented on August 30, 2024

I don't know if it helps, but for us it always happened because we used a macro that did a control declaration and help text in one go. Whenever we put commas in the string for the help text argument, it would break:

macro ui.slider(#name#, #min#, #max#, #help#, #default#)
    blah blah blah
end macro
ui.slider(VOLUME, 0, 1000000, "This slider is so cool, it doesn't even need a callback!", 500000)

Granted we've now adopted the better control methods in the updated SublimeKSP (the "control -> par := value" functionality is AWESOME!), so we don't deal with it anymore.

from sublimeksp.

jtackaberry avatar jtackaberry commented on August 30, 2024

the "control -> par := value" functionality is AWESOME!

Oh, awesome indeed! I didn't even know about this. I looked again at the documentation and couldn't find it mentioned anywhere. There's one snippet of code in the section about multidimensional UI arrays that quietly uses this syntax and I missed it.

Maybe I'm blind. :)

from sublimeksp.

SamWindell avatar SamWindell commented on August 30, 2024

the "control -> par := value" functionality is AWESOME!

It is great! This is from Nils' features, but I don't believe it is documented anywhere. I'll quickly add it to the wiki.

from sublimeksp.

eitherys avatar eitherys commented on August 30, 2024

Fixed in the latest feature merge

from sublimeksp.

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.