This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Руководство по использованию: | |
[spoiler]При запуске без параметров программа будет показывать диалог открытия файла, если выбранный файл является архивом который поддерживается, то его содержимое будет распаковано в rar архив без сжатия. Графические (и некоторые другие) файлы найденные в архиве будут преобразованы в более удобный формат для просмотра (tga). | |
В процессе распаковки архива показывается окошко в котором видно текущий прогресс, распаковку можно остановить если нажать Ctrl-C или Alt-F4 когда окно в фокусе. | |
Для открытия некоторых архивов нужно обязательное указание типа архива и/или иных опций в командной строке. | |
Основные опции: | |
Все опции имеют один параметр, если он содержит знак пробела, то его нужно заключать в двойные кавычки. | |
(--out, -o) задание формата вывода: dir - распаковка файлов в директорию (по умолчанию c 46 релиза), rar - rar без сжатия, tar и utar - tar контейнер в shift-jis или utf-8 кодировке для имен файлов. | |
(--fmt, -f) указание типа архива или имени модуля. | |
(--conv, -с) управление к |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package kuromi.script; | |
import openfl.Assets; | |
/** | |
* ... | |
* @author roxygen | |
*/ | |
class Script | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Main { | |
static function parseProperties(text:String):Map<String, String> { | |
var map:Map<String, String> = new Map(), | |
ofs:Int = 0, | |
len:Int = text.length, | |
i:Int, j:Int, | |
endl:Int; | |
while (ofs < len) { | |
// find line end offset: | |
endl = text.indexOf("\n", ofs); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package; | |
import flash.Lib; | |
import openfl.utils.JNI; | |
class SystemPath { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local jsonData = Resources.readFile("player.scon") | |
local data = json.decode(jsonData) | |
-- | |
local anim = data.entity[1].animation[1] | |
function build_timelines(animation) | |
local anim = animation | |
local mainline = anim.mainline | |
local lines = {} --timelines |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "CropNode.hpp" | |
CropNode::CropNode(float width, float height) | |
{ | |
mShape.setSize(sf::Vector2f(width,height)); | |
mShape.setFillColor(sf::Color(0,0,0,0)); | |
} | |
CropNode::CropNode(const sf::Vector2f &size) | |
{ | |
mShape.setSize(size); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef ACTION_HPP | |
#define ACTION_HPP | |
#include "tween.hpp" | |
#include <SFML/System/Time.hpp> | |
class Action | |
{ | |
public: | |
Action(float start_value, float end_value, float time, tween::TYPE ease) | |
: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef BOOK_SCENENODE_HPP | |
#define BOOK_SCENENODE_HPP | |
#include <SFML/System/NonCopyable.hpp> | |
#include <SFML/System/Time.hpp> | |
#include <SFML/Graphics/Transformable.hpp> | |
#include <SFML/Graphics/Drawable.hpp> | |
#include <list> | |
#include <memory> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
std::map<std::string,SceneNode*> objHolder; | |
void NewSprite(const std::string &parent,const std::string &id,int order, int x, int y, sf::Texture &texture) | |
{ | |
objHolder[id] = new SpriteNode(texture); | |
objHolder[id]->setOrder(order); | |
objHolder[id]->setPosition(x,y); | |
objHolder[parent]->attachChild(objHolder[id]); | |
} | |
void NewNode(const std::string &parent,const std::string &id,int order) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//======================================================================// | |
// シーン頭用ファイルの設定 | |
//======================================================================// | |
function InitHeadFile() | |
{ | |
//上下枠の設定 | |
SetFrameTB(); | |
//上下枠中//テキスト読専時の黒α |
NewerOlder