Hmmm. Probably after my house is finished...!petri wrote:Hey Matt! Great to see you here! When can we see the first Grimrock mod from you ?


Hmmm. Probably after my house is finished...!petri wrote:Hey Matt! Great to see you here! When can we see the first Grimrock mod from you ?
Code: Select all
// ==UserScript==
// @name LOG2 scripting reference
// @namespace jkos
// @include http://www.grimrock.net/modding/scripting-reference/
// @version 1
// @grant none
// ==/UserScript==
$('h3').css('cursor','pointer')
$('h3').nextUntil('h3').hide();
$('h3').click(function(e){
if ($(e.target).next().is(":visible") ){
$('h3').nextUntil('h3').hide();
}else{
$(e.target).nextUntil('h3').show() ;
}
})
$('em').css('font-weight','bold');
$('em').css('font-size','1.1em');
$('li').html(function(i, val) {
return '<span style="font-weight: bold">'+val.replace(':', ':</span>');
});
God ! Thanks JKos !!! Excellent stuff ! Sticked in the superthreadJKos wrote:Because the scripting reference is so amazingly long and not very well formatted at the moment (I'm not complaining), I made a quick greasemonkey script which makes it a bit more readable.
https://addons.mozilla.org/fI/firefox/a ... asemonkey/Code: Select all
// ==UserScript== // @name LOG2 scripting reference // @namespace jkos // @include http://www.grimrock.net/modding/scripting-reference/ // @version 1 // @grant none // ==/UserScript== $('h3').css('cursor','pointer') $('h3').nextUntil('h3').hide(); $('h3').click(function(e){ if ($(e.target).next().is(":visible") ){ $('h3').nextUntil('h3').hide(); }else{ $(e.target).nextUntil('h3').show() ; } }) $('em').css('font-weight','bold'); $('em').css('font-size','1.1em'); $('li').html(function(i, val) { return '<span style="font-weight: bold">'+val.replace(':', ':</span>'); });
I'll change the link for your GM script to this one. Thanks for it JKosJKos wrote:I uploaded that greasemonkey script here:
https://greasyfork.org/en/scripts/6292- ... -reference
So it's much easier to install now:
- Install greasemonkey: https://addons.mozilla.org/fI/firefox/a ... asemonkey/
- go https://greasyfork.org/en/scripts/6292- ... -reference
- click install this script
Alredy said but .... YUP YUP YUP !petri wrote:Added defineTile() to scripting reference.