Can you call a Quest function from within a css script?
Silver
03 Mar 2015, 17:35I know.
But anyway, is it possible? Or is css just css.


jaynabonne
03 Mar 2015, 20:18As far as I know, you can't call *any* functions in CSS. Unless I'm misunderstanding your question. What are you trying to do? (An example might make it clearer.)
Silver
03 Mar 2015, 21:46I'll get back to you tomorrow.
Silver
09 Mar 2015, 19:53jaynabonne wrote:As far as I know, you can't call *any* functions in CSS. Unless I'm misunderstanding your question. What are you trying to do? (An example might make it clearer.)
Basically when I alter background opacity, the command line doesn't do the same. I'm using a library you created called retro.aslx and had been playing about with the css in there but had no joy.
It deals with an element (?) called txtCommandDiv - I haven't got round to it yet but it's probably possible to make that opaque using jquery, or is it something separate all together to the game back ground that changing its opacity would not achieve the same result? If I can do it with jquery I can just make a function that changes the background opacity and calls the jquery function to do the same. Haven't got round to looking how to code it yet but if you don't think it's doable I won't investigate.
Silver
09 Mar 2015, 20:00I tried to make txtCommandDiv *completely* invisible so just the game div would show through but it made it turn white IIRC, which made me realise it didn't sit *on* the background, but was something in its own right. Then I googled a bit and I think opacity is a bit unreliable in css. And what is there I'll have to live with as I can't call functions within the css.