Skip to content

Instantly share code, notes, and snippets.

View Groogy's full-sized avatar

Groogy Groogy

View GitHub Profile
require "../dist/frozen-urchin.jar"
class TestLibrary
include Java::org.fu.script.Library
def apply_library(container)
nil
end
end
require "../dist/frozen-urchin.jar"
class TestLibrary
include Java::org.fu.script.Library
def apply_library(container)
end
end
describe Java::org.fu.script.ScriptController do
Ruby runtime = this.container.getProvider().getRuntime();
LoadService loader = this.container.getLoadServiceCreator().create(runtime);
loader.require(library);
require "../dist/frozen-urchin.jar"
class TestLibrary
include Java::org.fu.script.Library
def apply_library(container)
end
end
describe Java::org.fu.script.ScriptController do
require "dist/frozen-urchin.jar"
require 'external/jsfml.jar'
class StubDrawable
include Java::org.jsfml.graphics.Drawable
def draw(*args)
end
end
LoadService loader = container.getLoadServiceCreator().create(runtime);
loader.init(new ArrayList<Object>());
loader.require("yaml");
/* Tyr
* Copyright (c) 2013 Henrik Valter Vogelius Hansson
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for any purpose,
* including commercial applications, and to alter it and redistribute it
* freely, subject to the following restrictions:
#include <Tyr/Configuration.hpp>
#include <cassert>
#include <cstring>
tyr::Configuration tyr::Configuration::getDefaultConfiguration()
{
std::vector<tyr::Configuration> dimensionConfig;
dimensionConfig.push_back(tyr::Configuration(1024));
dimensionConfig.push_back(tyr::Configuration(768));
FATAL ERROR: unable to find Rubinius runtime directories.
Rubinius was configured to find the directories relative to:
/home/groogy/Projects/External/rubinius
Set the environment variable RBX_PREFIX_PATH to the directory
that is the prefix of the following runtime directories:
BIN_PATH: /bin
RUNTIME_PATH: /runtime
action = [](SceneNode& node) {
GUI::Button* button = dynamic_cast<GUI::Button*>(&node);
button->select();
};
category = selectedButton->getID();
// What I will probably do instead something like:
if(sf::Keyboard::isKeyPressed(sf::Keyboard::Enter))
mySelectedButton->activate();