Skip to content

Instantly share code, notes, and snippets.

View sophiathekitty's full-sized avatar
:octocat:
working on stuff when i can find the energy to work on stuff

sophia sophiathekitty

:octocat:
working on stuff when i can find the energy to work on stuff
View GitHub Profile
@sophiathekitty
sophiathekitty / Screen.cs
Last active January 25, 2024 21:26
screen and screen sprite classes for displaying stuff on the TextSurface in Script mode. and an interface for screen sprite providers (for stuff with multiple screen sprites)
using Sandbox.Game.EntityComponents;
using Sandbox.ModAPI.Ingame;
using Sandbox.ModAPI.Interfaces;
using SpaceEngineers.Game.ModAPI.Ingame;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
using System.Text;
@sophiathekitty
sophiathekitty / CustomDataVars.cs
Last active January 21, 2024 19:42
utility class for access vars in custom data strings
using Sandbox.Game.EntityComponents;
using Sandbox.ModAPI.Ingame;
using Sandbox.ModAPI.Interfaces;
using SpaceEngineers.Game.ModAPI.Ingame;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
using System.Text;
@sophiathekitty
sophiathekitty / GridInfo.cs
Last active January 22, 2024 23:09
this is a utility class for space engineers scripts that can be used to store persistent data. and can also send update events for vars and broadcast vars to other grids
using Sandbox.Game.EntityComponents;
using Sandbox.ModAPI.Ingame;
using Sandbox.ModAPI.Interfaces;
using SpaceEngineers.Game.ModAPI.Ingame;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
using System.Text;

Keybase proof

I hereby claim:

  • I am sophiathekitty on github.
  • I am sophiakitty (https://keybase.io/sophiakitty) on keybase.
  • I have a public key ASAZzMkhHb_mxPp3oByWV6s9dff8QK-dchYIDJCy7sa36Qo

To claim this, I am signing this object:

//requires jquery
macros['displaydelayed'] = {
handler: function(html,name,args,wikifier){
if(args.length > 0){
var p = "";
var n = 1000;
var id = Math.round(Math.random()*1000);
if(args.length == 1){
if(tale.has(args[0]))
p = args[0];
@sophiathekitty
sophiathekitty / dialog.html
Created June 22, 2013 07:36
a really simple javascript dialog system.
<div class="item half npc">
<ul id="creamsicle" class="npc">
<li><img src="https://graph.facebook.com/448128811931322/picture" class="user">The Creamsicle Bellwether</li>
<li class="dialog"></li>
<li class="option"><a href="#talk" class="action">talk</a></li>
<li class="option"><a href="#pet" class="action">pet</a></li>
<li class="option"><a href="#look" class="action">look</a></li>
</ul>
</div>
@sophiathekitty
sophiathekitty / encounter.css
Created June 22, 2013 07:23
this is a simple monster encounter system. it's inspired by the original dragon guest battle system.
@charset "utf-8";
.encounter {
position:absolute;
top:auto;
left:auto;
right:auto;
bottom:auto;
height: 600px;
width: 800px;
transition:all 100ms linear;