Reviving the Past...

Hi KV, do you remember your old code to enable a background image for the command bar?

The original post is here (Mar 10, 2018 5:05 PM -- scroll about 2/3 of the way down). The specific link for the command bar is dead:

If not, don't sweat it. Thanks!



I think I found the code you seek, but I "can't post that here."

So, see if this is it:

Yes, those are the droids I seek! Thank you Java Master!

Ah, ResetCommandBarFormat resets the settings every turn -- that is why my customized stylings always lost that battle. Glad I asked!

I guess you could even put the customized stylings in this function instead of running another turn script...

Or you could do:

msg ("<style id=\"txtCommandStyle\"> #txtCommand { background-image: url ('"+GetFileUrl("whatever filename")+"') !important; }</style>")

(giving it an ID so that you can later do JS.eval("$('#txtCommandStyle').remove();") if you want to get rid of it)


I dig it, man. I totally dig it.

This topic is now closed. Topics are closed after 60 days of inactivity.