source stringclasses 1
value | repo stringlengths 5 63 | repo_url stringlengths 24 82 | path stringlengths 5 167 | language stringclasses 1
value | license stringclasses 5
values | stars int64 10 51.4k | ref stringclasses 23
values | size_bytes int64 200 258k | text stringlengths 137 258k |
|---|---|---|---|---|---|---|---|---|---|
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/iss/031_jukebox.rb | Ruby | mit | 48 | master | 24,315 | #encoding:UTF-8
# ISS031 - Jukebox
# // 09/30/2011
# // 10/04/2011
#==============================================================================#
# ** ISS::Jukebox
#==============================================================================#
module ISS
install_script(31, :audio)
module Jukebox
# // Song S... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/iss/021_time_system.rb | Ruby | mit | 48 | master | 23,665 | #encoding:UTF-8
# ISS021 - Time System 1.1
#==============================================================================#
# ** ISS - Time System
#==============================================================================#
# ** Date Created : 08/13/2011
# ** Date Modified : 08/13/2011
# ** Created By : IceDrag... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/iss/000_core.rb | Ruby | mit | 48 | master | 42,301 | #encoding:UTF-8
# ISS000 - Core 2.5
#==============================================================================#
# ** ISS - Core
#==============================================================================#
# ** Date Created : 04/28/2011
# ** Date Modified : 10/01/2011
# ** Created By : IceDragon
# ** For Ga... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/iss/019_cec.rb | Ruby | mit | 48 | master | 6,877 | #encoding:UTF-8
# ISS019 - CEC 1.0
#==============================================================================#
# ** ISS - CEC (Custom Event Commands)
#==============================================================================#
# ** Date Created : 08/10/2011
# ** Date Modified : 08/10/2011
# ** Created By :... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/iss/034_pat_tap_vx.rb | Ruby | mit | 48 | master | 23,857 | #encoding:UTF-8
# ISS034 - PaT.TaP VX
module ISS
module PaTTaP
end
end
PaTTaP = ISS::PaTTaP
module ISS::PaTTaP::Helpers ; end
module ISS::PaTTaP::Helpers::Limits
VOLUME_LIMIT = [0, 100] # // 0, 100
PITCH_LIMIT = [0, 150] # // 0, 150
KEY_LIMIT = [0, 127]
DEFAULT_VOLUME = 100
DEFAULT_P... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/iss/012_event_chase.rb | Ruby | mit | 48 | master | 6,367 | #encoding:UTF-8
# ISS012 - Event Chase
# // 06/05/2011
#==============================================================================#
# ** ISS
#==============================================================================#
module ISS
module MixIns::ISS012 ; end
end
#===============================================... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/iss/006_dungeon_builder.rb | Ruby | mit | 48 | master | 6,515 | #encoding:UTF-8
# ISS006 - DungeonBuilder
$tile_markers = []
module ISS
module Dungeon ; end
class Dungeon::ObjectHandler
attr_accessor :character
attr_accessor :resource
def initialize(character)
@character = character
@home_x, @home_y = character.x, character.y
end
def get_... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/iss/022_system_table.rb | Ruby | mit | 48 | master | 31,232 | #encoding:UTF-8
# ISS022 - System Table 1.0
#==============================================================================#
# ** ISS - System Table
#==============================================================================#
# ** Date Created : 08/30/2011
# ** Date Modified : 08/31/2011
# ** Created By : IceDr... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/iss/016_delay_script.rb | Ruby | mit | 48 | master | 5,375 | #encoding:UTF-8
# ISS016 - Delay Script 1.1
#==============================================================================#
# ** ISS - Delay Script
#==============================================================================#
# ** Date Created : 07/31/2011
# ** Date Modified : 08/10/2011
# ** Created By : IceDr... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/iss/018_input.rb | Ruby | mit | 48 | master | 12,418 | #encoding:UTF-8
# ISS018 - Input 1.1
#==============================================================================#
# ** ISS - Input
#==============================================================================#
# ** Date Created : 08/10/2011
# ** Date Modified : 10/04/2011
# ** Created By : IceDragon
# ** Spec... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/iss/013_item_menu.rb | Ruby | mit | 48 | master | 5,729 | #encoding:UTF-8
# ISS013 - ItemMenu
class Window_Help
def set_obj(obj, align=0)
set_text(obj.nil? ? "" : obj.description, align)
end
end
class Window_ItemHelp < Window_Base
def initialize(x, y, width, height)
super(x, y, width, height)
@text = -1
@obj = -1
@align= -1
end
def set_obj(... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/iss/023-0_class_table_blocks.rb | Ruby | mit | 48 | master | 3,047 | #encoding:UTF-8
# ISS023 - Class Table Blocks
#==============================================================================#
# ** ISS, ClassTable, Blocks // forward declaration
#==============================================================================#
module ISS ; end ; class ISS::ClassTable < ::ISS::SystemTabl... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/iss/007_event_upgrade.rb | Ruby | mit | 48 | master | 10,383 | #encoding:UTF-8
# ISS007 - Event Upgrade 1.6
#==============================================================================#
# ** ISS - Event Upgrade
#==============================================================================#
# ** Date Created : 04/28/2011
# ** Date Modified : 08/26/2011
# ** Created By : Ice... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/iss/011_main_menu.rb | Ruby | mit | 48 | master | 24,809 | #encoding:UTF-8
# ISS011 - MainMenu
# // Date Modified 06/09/2011
#==============================================================================#
# * Sprite_MenuMap
#==============================================================================#
class Sprite_MenuMap < ::Sprite
attr_accessor :map_id
def initializ... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/iss/026_note_inject.rb | Ruby | mit | 48 | master | 2,053 | #encoding:UTF-8
# ISS026 - Note Inject 1.0
#==============================================================================#
# ** ISS - Note Inject
#==============================================================================#
# ** Date Created : 08/30/2011
# ** Date Modified : 09/03/2011
# ** Created By : IceDrag... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/iss/024_stat_table.rb | Ruby | mit | 48 | master | 1,046 | #encoding:UTF-8
# ISS024 - Stat Table 1.0
#==============================================================================#
# ** ISS - Stat Table
#==============================================================================#
# ** Date Created : 08/30/2011
# ** Date Modified : 09/03/2011
# ** Created By : IceDragon... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/iss/010_transfer_ref.rb | Ruby | mit | 48 | master | 1,086 | #encoding:UTF-8
# ISS010 - Transfer Ref
module ISS
module TransferRef
MAPID_VAR = 32
MAPX_VAR = 33
MAPY_VAR = 34
class TransHandler
attr_accessor :map_id
attr_accessor :entry_points
def initialize(map_id)
@map_id = map_id
@entry_points = {}
end
... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/iss/025_passive_table.rb | Ruby | mit | 48 | master | 1,059 | #encoding:UTF-8
# ISS025 - Passive Table 1.0
#==============================================================================#
# ** ISS - Passive Table
#==============================================================================#
# ** Date Created : 09/03/2011
# ** Date Modified : 09/03/2011
# ** Created By : Ice... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/iss/030_acceleration.rb | Ruby | mit | 48 | master | 1,722 | #encoding:UTF-8
# ISS030 - Acceleration
class Game_Character
alias :iss030_gmc_initialize :initialize unless $@
def initialize(*args, &block)
iss030_gmc_initialize(*args, &block)
@accel = 0
@accel_hold = 0
end
def move_speed()
return @move_speed + @accel
end
alias :iss030_gmc_update :upda... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/iss/008_audio_ref.rb | Ruby | mit | 48 | master | 1,142 | #encoding:UTF-8
# ISS008 - AudioRef
module ISS
module MixIns::ISS008 ; end
module AudioRef
SES = { }
SES["Climb"] = RPG::SE.new("INT-Jump002", 80, 100)
SES["Door1"] = RPG::SE.new("MEC-Servo004", 80, 100)
SES["Jump1"] = RPG::SE.new("INT-Jump002", 80, 90)
SES["Trans"] = RPG::SE.new("XINFX-Interfa... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/iss/005-0_sre.rb | Ruby | mit | 48 | master | 21,040 | #encoding:UTF-8
# ISS005 - SRE 0.8
# // 05/01/2011
# // 05/08/2011
# // Sub-Routine Engine
#==============================================================================#
# ** ISS
#==============================================================================#
module ISS
#==============================================... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/iss/015_mgpas.rb | Ruby | mit | 48 | master | 6,196 | #encoding:UTF-8
# ISS015 - MGPAS 1.0
# // Multi Game Progress Achievement System
# // ENV["HOME"] doesn't work in rmvx
# // ENV["USERPROFILE"]
#==============================================================================#
($imported ||= {})["ISS-MGPAS"] = true
#========================================================... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/iss/027_database_to_xml.rb | Ruby | mit | 48 | master | 29,960 | #encoding:UTF-8
# ISS027 - Database to Xml
#==============================================================================#
# ** ISS - Database To Xml
#==============================================================================#
# ** Date Created : 09/04/2011
# ** Date Modified : 09/05/2011
# ** Created By : Ice... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/iss/020_spawn_event.rb | Ruby | mit | 48 | master | 6,345 | # ISS020 - Spawn Event 1.0
#==============================================================================#
# ** ISS - Spawn Event
#==============================================================================#
# ** Date Created : 08/10/2011
# ** Date Modified : 08/10/2011
# ** Created By : IceDragon
# ** For Game... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/iss/x00_basic_xml_reader.rb | Ruby | mit | 48 | master | 1,234 | #encoding:UTF-8
# ISSX00 - Basic XML Reader
module ISSX
module BXMLR
module_function()
def get_element_contents( name, file )
opentag = /<#{name}>/i
closetag = /<\/#{name}>/i
openned = false
result = []
file.each_line { |l|
case l
when opentag
... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/iss/x02_passage_bypass.rb | Ruby | mit | 48 | master | 7,313 | #encoding:UTF-8
# ISSX02 - Passage Bypass
#==============================================================================#
# ** ISSX::PassageBypass
#==============================================================================#
module ISSX
module PassageBypass
RULES = {
# // ID => Replacement
0 => 0x0... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/iss/036_loading_screen.rb | Ruby | mit | 48 | master | 5,427 | #encoding:UTF-8
# ISS036 - Loading Screen
#==============================================================================#
# ** ISS - Loading Screen
#==============================================================================#
# ** Date Created : 09/04/2011
# ** Date Modified : 11/12/2011
# ** Created By : IceDr... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/iss/002_audio_action.rb | Ruby | mit | 48 | master | 3,707 | #encoding:UTF-8
# ISS002 - Audio Action 1.0
#==============================================================================#
# ** ISS - Audio Action (Sub) Engine
#==============================================================================#
# ** Date Created : 04/23/2011
# ** Date Modified : 04/23/2011
# ** Created ... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/iss/032_mouse.rb | Ruby | mit | 48 | master | 2,053 | #encoding:UTF-8
# ISS032 - Mouse
module ISS
module Mouse
end
end
module ISS::Mouse
GKAS = Win32API.new("user32", "GetAsyncKeyState", "i", "i")
GKS = Win32API.new("user32", "GetKeyState", "i", "i")
GCP = Win32API.new("user32", "GetCursorPos", "p", "i")
STC = Win32API.new("user32", "ScreenToClient", "lp"... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/iss/003_position_register.rb | Ruby | mit | 48 | master | 19,313 | #encoding:UTF-8
# ISS003 - PositionRegister 1.7
#==============================================================================#
# ** ISS - Position Register
#==============================================================================#
# ** Date Created : 04/28/2011
# ** Date Modified : 08/29/2011
# ** Created By ... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/iss/017_character_improve.rb | Ruby | mit | 48 | master | 2,756 | #encoding:UTF-8
# ISS017 - Character Improve 1.1
#==============================================================================#
# ** ISS - Character Improve
#==============================================================================#
# ** Date Created : 08/04/2011
# ** Date Modified : 08/10/2011
# ** Created By ... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/iss/023-1_class_table.rb | Ruby | mit | 48 | master | 14,074 | #encoding:UTF-8
# ISS023 - Class Table 1.0
#==============================================================================#
# ** ISS - Class Table
#==============================================================================#
# ** Date Created : 08/30/2011
# ** Date Modified : 09/10/2011
# ** Created By : IceDrag... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/iss/s01_general_load.rb | Ruby | mit | 48 | master | 1,804 | #encoding:UTF-8
# ISSS01 - General Load 1.0
#==============================================================================#
# ** ISS - S-GeneralLoad
#==============================================================================#
# ** Date Created : 08/01/2011
# ** Date Modified : 08/01/2011
# ** Created By : IceD... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/iss/001_full_audio_play.rb | Ruby | mit | 48 | master | 10,279 | #encoding:UTF-8
# ISS001 - Full Audio Play 1.0
#==============================================================================#
# ** ISS - Full Audio Play
#==============================================================================#
# ** Date Created : 04/23/2011
# ** Date Modified : 04/28/2011
# ** Created By :... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/iss/029_backpass_area.rb | Ruby | mit | 48 | master | 8,570 | #encoding:UTF-8
# ISS029 - Backpass Area
#==============================================================================#
# ** ISS - Backpass Area
#==============================================================================#
# ** Date Created : 08/04/2011
# ** Date Modified : 11/12/2011
# ** Created By : IceDrag... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/iss/005-2_sre_hud.rb | Ruby | mit | 48 | master | 1,434 | #encoding:UTF-8
# ISS005 - SRE (Hud)
module ISS
module SRE ; end
class SRE::Window_ResourceHud < ::Window_Base
def initialize(varset)
super(0, 0, 192, 56)
self.opacity = 0
@last_value = -1
@last_max = -1
@varset = varset
end
def update
super
val = $game_... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/iss/033_key_cursor.rb | Ruby | mit | 48 | master | 6,035 | #encoding:UTF-8
# ISS033 - Key Cursor
module ISS
class KeyCursor
end
end
class ISS::KeyCursor
attr_accessor :x, :y, :z
attr_accessor :range
attr_accessor :speed
def initialize()
@bounds = Vector4.new(0, Graphics.width, 0, Graphics.height )
@range = Vector4.new(0, 0, 0, 0 )
@speed = 5
@x, ... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/iss/005-1_gather_commads.rb | Ruby | mit | 48 | master | 3,719 | #encoding:UTF-8
# ISS005 - GatherCommads
module ISS
module SRE
def create_Gather_set(max)
set = SACS.new()
set.list << SAC.new("ANIMATION", [3])
set.list << SAC.new("GATHER", [max])
set.list << SAC.new("WAIT", [12])
set.skip_procs << get_defScript("FALSE")
... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/iss/x01_swap_xt/game_swap_xt.rb | Ruby | mit | 48 | master | 12,843 | # ISSX01 - SwapXT 0.9a
#==============================================================================#
# ** ISS - SwapXT (Remixed)
#==============================================================================#
# ** Date Created : 05/12/2011
# ** Date Modified : 07/29/2011
# ** Original By : Marco Di Antonio (bull... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/iss/x01_swap_xt/vx_impl.rb | Ruby | mit | 48 | master | 5,196 | #==============================================================================#
# ** Game_Map
#==============================================================================#
class Game_Map
#--------------------------------------------------------------------------#
# * alias-method :setup
#---------------------... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/forma/configuration.rb | Ruby | mit | 48 | master | 774 | $simport.r 'forma', '1.0.0', 'Configuration module'
# Configuration Registry
#
# @example
# Forma = FormaRegistry.new
# Forma.configure('iek/sapling') do |c|
# c[:gc_timer] = 120
# end
class FormaRegistry
class Configuration
attr_reader :name
def initialize(name)
@name = name
@config =... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/vx_crossover/base_patches.rb | Ruby | mit | 48 | master | 485 | $simport.r('vx_crossover/base_patches', '1.0.0', 'Base Patches for VX') do |d|
d.depend('iex3/data_cache', '~> 1.0.0')
end
class Game_Map
def load_map(map_id)
DataCache.load_map_by_id(@map_id)
end
private :load_map
def setup(map_id)
@map_id = map_id
@map = load_map(map_id)
@display_x = 0
... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/vx_crossover/core_patches.rb | Ruby | mit | 48 | master | 449 | $simport.r('vx_crossover/core_patches/tilemap', '1.0.0', 'Crossover patch to have RGSS3 Tilemap work with RGSS2 maps')
class Tilemap
def passages
flags
end
def passages=(passages)
self.flags = passages
end
alias :set_map_data :map_data=
def map_data=(map_data)
if map_data && map_data.zsize !=... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/vx_crossover/font_reset.rb | Ruby | mit | 48 | master | 352 | begin
Font.default_name = ['Verdana', 'Arial', 'Courier New']
Font.default_size = 20
Font.default_bold = false
Font.default_italic = false
Font.default_shadow = false
Font.default_outline = true
Font.default_color = Color.new( 255, 255, 255, 255 )
Font.default_out_color = Colo... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/drawext/gauge_palette.rb | Ruby | mit | 48 | master | 820 | #
# EDOS/lib/drawext/gauge_palette.rb
# by IceDragon
module DrawExt
def self.init_gauge_palettes
@gauge_palettes = {}
dir = File.join(File.dirname(__FILE__), 'gauge_palette')
load File.join(dir, 'default.rb')
load File.join(dir, 'rgby.rb')
load File.join(dir, 'gem.rb')
load File.join(dir, 'k... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/drawext/include.rb | Ruby | mit | 48 | master | 474 | #
# EDOS/lib/drawext/include.rb
# dc 16/06/2013
# dm 16/06/2013
# vr 2.0.0
module DrawExt
module Include
public
def draw_gauge_base(*args)
DrawExt.draw_gauge_base(bitmap, *args)
end
def draw_gauge_bar(*args)
DrawExt.draw_gauge_bar(bitmap, *args)
end
def draw_gauge_ext(*args)
... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/drawext/styler.rb | Ruby | mit | 48 | master | 1,283 | #
# EDOS/lib/artist/drawext/styler.rb
# by IceDragon (mistdragon100@gmail.com)
# dc 27/03/2013
# dm 27/03/2013
# vr 1.0.1
module DrawExt
class Styler
@@stylers = {}
attr_reader :id, :stack
def initialize(id, *stack, &style_func)
@id = id
@stack = stack
@style_func = style_func
... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/drawext/core.rb | Ruby | mit | 48 | master | 1,073 | #
# module/drawext/core.rb
#
module DrawExt
@flags = []
def self.flags
return @flags[-1]
end
def self.flag_set(key, value)
(@flags[-1] ||= {})[key] = value
end
def self.flag_clear(key)
if fl = flags
fl.delete(key)
end
end
def self.flag?(key)
flgs = flags
return false un... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/drawext/palette.rb | Ruby | mit | 48 | master | 207 | #
# EDOS/lib/drawext/palette.rb
# by IceDragon
# dc 06/07/2013
# dm 06/07/2013
# vr 1.0.0
module DrawExt
class DrawExtPalette < MACL::Palette
def cast_key(sym)
sym.to_sym
end
end
end |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/drawext/drawext.rb | Ruby | mit | 48 | master | 232 | require 'drawext/core'
require 'drawext/include'
require 'drawext/helpers'
require 'drawext/styler'
require 'drawext/palette'
require 'drawext/gauge_palette'
require 'drawext/integration/bitmap'
require 'drawext/integration/artist' |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/drawext/helpers.rb | Ruby | mit | 48 | master | 313 | #
# EDOS/lib/artist/drawext/helpers.rb
# by IceDragon (mistdragon100@gmail.com)
# dc 27/03/2013
# dm 03/06/2013
# vr 1.1.0
require_relative 'helpers/adjust'
require_relative 'helpers/calc'
require_relative 'helpers/color_bars'
require_relative 'helpers/gauge_param'
require_relative 'helpers/segment_rects' |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/drawext/include-ext2.rb | Ruby | mit | 48 | master | 8,510 | module DrawExt::Include
def self.repeat_header_bmp_vert( info )
bitmap = info[:bitmap]
dbmp = info[:draw_bmp]
x, y = info[:x] || 0, info[:y] || 0
width = info[:width] || (bitmap ? bitmap.width : 24)
height = info[:height] || (bitmap ? bitmap.height : 48)
... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/drawext/const.rb | Ruby | mit | 48 | master | 8,323 | #
# EDOS/lib/drawext/const.rb
#
module DrawExt
enum = Enumerator.new do |yielder|
n = 0
loop do
yielder.yield n
n += 1
end
end
STYLE_HARSH = enum.next
STYLE_SOFT = enum.next
STYLE_HARD = enum.next
STYLE_5P = enum.next
STYLE_10P = enum.next
STYLE_15P = enum.next
STYLE_... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/drawext/core/repeat.rb | Ruby | mit | 48 | master | 3,276 | #
# artist/drawext/core/repeat.rb
# by IceDragon
# vr 2.00
#
module DrawExt
##
# repeat_bmp(Bitmap trg_bitmap, Rect trg_rect, Bitmap src_bitmap, Rect src_rect)
def self.repeat_bmp(trg_bitmap, trg_rect, src_bitmap, src_rect)
vx, vy = trg_rect.x, trg_rect.y
sx, sy, w, h = src_rect.to_a
xloop, xrem = ... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/drawext/core/blend.rb | Ruby | mit | 48 | master | 815 | #
# src/modules/drawext/blend.rb
# vr 1.00
module DrawExt
def self.blend_with_color(bitmap, trg_rect, color, &blend)
for y in trg_rect.y...trg_rect.y2
for x in trg_rect.x...trg_rect.x2
src_color = bitmap.get_pixel(x, y)
trg_color = blend.(src_color, color)
bitmap.set_pixel(x, y, trg_... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/drawext/core/slant.rb | Ruby | mit | 48 | master | 3,006 | module DrawExt
##
# ::trapeze(Bitmap dst_bitmap, Vector2 vec1, Vector2 vec2, Bitmap src_bitmap, Rect src_rect)
def self.trapeze(dst_bitmap, vec1, vec2, src_bitmap, src_rect)
src_vec = Convert.Point2(vec1)
dst_vec = Convert.Point2(vec2)
rect = Convert.Rect(src_rect)
ch = dst_vec - src_vec
x, y ... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/drawext/core/box.rb | Ruby | mit | 48 | master | 705 | module DrawExt
def self.draw_box1(bitmap, rect, (border_color, base_color), padding = 1)
draw_padded_rect_flat(bitmap, rect,
[border_color, base_color],
Hazel::Padding.new(*([padding] * 4)))
return self
end
##
#
# Bitmap bitmap
# Rect rect
# Col... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/drawext/core/border.rb | Ruby | mit | 48 | master | 1,684 | #
# EDOS/lib/drawext/border.rb
# by IceDragon
# dc 07/06/2013
# dm 07/06/2013
# vr 1.0.0
module DrawExt
BorderSettings = Struct.new(:anchor, :expand_size)
def self.border_settings
@border_settings ||= BorderSettings.new(MACL::Surface::ANCHOR_NW, 4)
end
def self.border_state_stack
(@border_state_... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/drawext/core/exper.rb | Ruby | mit | 48 | master | 1,407 | module DrawExt
#==============================================================================#
# ◙ Experimental Functions
#/============================================================================\#
# ● Functions in this section should be used with care.
# In addition they are never included with the DrawExt::In... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/drawext/core/gauge_specia.rb | Ruby | mit | 48 | master | 8,269 | #
# EDOS/lib/drawext/core/gauge_specia.rb
# by IceDragon
# dc ??/??/????
# dm 16/06/2013
# vr 1.0.0
module DrawExt
def self.draw_gauge_base?
return !flag?(:draw_gauge_base) || flag(:draw_gauge_base)
end
def self.draw_gauge_bar?
return !flag?(:draw_gauge_bar) || flag(:draw_gauge_bar)
end
# draw... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/drawext/core/subtractive.rb | Ruby | mit | 48 | master | 1,371 | module DrawExt
def self.crop(bitmap, rect)
b = Bitmap.new(rect.width, rect.height)
b.blt(0, 0, bitmap, rect)
return b
end
def self.clear_round!(bitmap, rect)
temp = Bitmap.new(rect.width, rect.height)
temp.blt(0, 0, bitmap, rect)
bitmap.clear
bitmap.blt(rect.x, rect.y, temp, temp.re... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/drawext/core/repeat-old.rb | Ruby | mit | 48 | master | 3,062 | module DrawExt
def self.repeat_bmp_vert_old( info )
length = info[:length] || 0
return if length == 0
bitmap = info[:bitmap]
dbmp = info[:draw_bmp]
rect = info[:rect]
x, y = info[:x] || 0, info[:y] || 0
opacity = info[:opacity] || 255
reps... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/drawext/core/distortion.rb | Ruby | mit | 48 | master | 1,517 | module DrawExt
def self.noise(bitmap, rect = bitmap.rect, rate = 0.1, bipolar = false)
for y in rect.y...rect.y2
for x in rect.x...rect.x2
col = bitmap.get_pixel(x, y)
r = col.red * rate
g = col.green * rate
b = col.blue * rate
r, g, b = *[r, g, b].map do |p|
... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/drawext/core/draw_icon.rb | Ruby | mit | 48 | master | 3,039 | module DrawExt
ICONSET_COLS = 16
ICONSET_CELL_WIDTH = 24
ICONSET_CELL_HEIGHT = 24
def self.translucent_alpha
128
end
##
# draw_cell(bitmap, tx, ty, src_bitmap, index, cols, rows, w, h, alpha)
# @param [Bitmap] bitmap
# @param [Integer] tx
# @param [Integer] ty
# @param [Bitma... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/drawext/core/padded_rect.rb | Ruby | mit | 48 | master | 2,935 | #
# EDOS/lib/drawext/core/padded_rect.rb
# by IceDragon
module DrawExt
@@default_padding = nil
def self.default_padding
return @@default_padding ||= Hazel::Padding.new(1, 1, 1, 1).freeze
end
FILL_TYPE = :flat
##
#
# Bitmap bitmap
# Rect rect
# Color color1 // Padding
# Color color2 // Conte... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/drawext/core/special.rb | Ruby | mit | 48 | master | 2,730 | module DrawExt
class DivError < Exception
end
def self.blit_wrap(bitmap, dest_rect, x, y, src_bitmap, src_rect, opcity=255)
p1 = Point2.new(dest_rect.x + x, dest_rect.y + y)
p2 = Point2.new(dest_rect.x, dest_rect.y + y)
p3 = Point2.new(dest_rect.x + x, dest_rect.y)
p4 = Point2.new(dest_rect.x, de... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/drawext/core/outline.rb | Ruby | mit | 48 | master | 1,606 | #
# DrawExt/src/draext/outline.rb
# by IceDragon (mistdragon100@gmail.com)
# dc 15/06/2013
# dm 15/06/2013
# vr 1.0.0
module DrawExt
##
# ::draw_rect_outline(Bitmap bmp, Rect rect, Color color)
# ::draw_rect_outline(Bitmap bmp, Rect rect, Color color, Integer weight)
# ::draw_rect_outline(Bitmap bmp, Rect... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/drawext/core/text.rb | Ruby | mit | 48 | master | 525 | #
# EDOS/lib/drawext/core/text.rb
#
module DrawExt
class Text
attr_accessor :string
attr_accessor :font
def initialize(string)
@string = string
@font = Font.new
yield self if block_given?
end
def text_size
Size2.new(*@font.text_size(@string))
end
def to_s
@... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/drawext/core/gauge.rb | Ruby | mit | 48 | master | 6,539 | #
# EDOS/lib/drawext/core/gauge.rb
# by IceDragon (mistdragon100@gmail.com)
# dc 06/07/2013
# dm 06/07/2013
# vr 1.0.0
module DrawExt
def self.draw_highlight_flat(bitmap, rect, (color), vertical=false)
return rect if rect.empty?
if vertical
bmp = Bitmap.new(rect.width / 2, rect.height)
bmp.... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/drawext/gauge_palette/gem.rb | Ruby | mit | 48 | master | 905 | #
# EDOS/lib/drawext/gauge_palette/gem.rb
# by IceDragon
module DrawExt
# red | ruby
pal = new_gauge_palette_from('ruby', 'default')
pal.set_color(:bar_outline1, 253, 131, 113, 255).blend.self_subtract!(0.2)
pal.set_color(:bar_outline2, 202, 62, 70, 255).blend.self_subtract!(0.1)
pal.set_color(:bar_inline... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/drawext/gauge_palette/default.rb | Ruby | mit | 48 | master | 1,082 | #
# EDOS/lib/drawext/gauge_palette/default.rb
# by IceDragon
module DrawExt
pal = new_gauge_palette('default')
pal.set_color(:base_outline1, Palette['droid_dark_ui_enb'])
pal.set_color(:base_outline2, Palette['droid_dark_ui_enb'])
pal.set_color(:base_inline1, Palette['droid_dark_ui_dis'])
pal.set_color(:ba... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/drawext/gauge_palette/attributes.rb | Ruby | mit | 48 | master | 875 | module DrawExt
## hp
pal = new_gauge_palette_from('hp', 'default')
base_color = Color.rgb24(0x87D367).blend.darken(0.2)
pal.import(quick_bar_colors_abs(base_color, STYLE_SOFT))
## mp
pal = new_gauge_palette_from('mp', 'default')
base_color = Color.rgb24(0xA7E0DA).blend.darken(0.2)
pal.import(quick_bar_... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/drawext/gauge_palette/pokemon-4c.rb | Ruby | mit | 48 | master | 5,520 | module DrawExt
pals = []
pals << pal = new_gauge_palette_from('pkmn-normal', 'default')
pal.set_color(:bar_outline1, Palette['pkmn-normal1'])
pal.set_color(:bar_outline2, Palette['pkmn-normal2'])
pal.set_color(:bar_inline1, Palette['pkmn-normal3'])
pal.set_color(:bar_inline2, Palette['pkmn-normal4'])
pal... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/drawext/gauge_palette/keyboard.rb | Ruby | mit | 48 | master | 273 | #
# EDOS/lib/drawext/gauge_palette/keyboard.rb
# by IceDragon
module DrawExt
pal = new_gauge_palette_from('keyboard', 'default')
pal.import(quick_bar_colors(Color.new(174, 167, 159), STYLE_SOFT))
pal.import(quick_base_colors_abs(Palette['gray15'], STYLE_SOFT))
end |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/drawext/gauge_palette/rgby.rb | Ruby | mit | 48 | master | 1,100 | #
# EDOS/lib/drawext/gauge_palette/rgby.rb
# by IceDragon
module DrawExt
pal = new_gauge_palette_from('red', 'default')
pal.set_color(:bar_outline1, 248, 98, 96, 255)
pal.set_color(:bar_outline2, 199, 52, 50, 255)
pal.set_color(:bar_inline1, 224, 73, 71, 255)
pal.set_color(:bar_inline2, 176, 34, 3... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/drawext/helpers/segment_rects.rb | Ruby | mit | 48 | master | 1,266 | #
# EDOS/lib/drawext/helpers/segment_rects.rb
# by IceDragon (mistdragon100@gmail.com)
# dc 27/03/2013
# dm 27/03/2013
# vr 1.0.1
module DrawExt::Helper
def self.seg_rects_zero
return Array.new(9) do Rect.new(0, 0, 0, 0) end
end
# Header Seg Rects
head = DrawExt::Helper.seg_rects_zero
head[3].set(0... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/drawext/helpers/color_bars.rb | Ruby | mit | 48 | master | 3,551 | #
# EDOS/lib/artist/drawext/helpers/color_bars.rb
# by IceDragon (mistdragon100@gmail.com)
# dc 27/03/2013
# dm 27/03/2013
# vr 1.0.1
module DrawExt
def self.validate_gauge_colors_abs(colors, request=[:base, :bar, :highlight])
check = []
check.concat([:base_outline1, :base_outline2,
:b... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/drawext/helpers/gauge_param.rb | Ruby | mit | 48 | master | 1,815 | #
# EDOS/lib/drawext/helper/gauge_param.rb
# by IceDragon
# dc 03/06/2013
# dm 03/06/2013
# vr 1.0.0
module DrawExt
##
# gauge_params(parent, *args) -> rect, rate, colors, vertical align
def self.gauge_params(parent, *args)
arg, = args
if arg.is_a?(Hash)
rect, rate, colors, vertical, align = a... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/drawext/helpers/adjust.rb | Ruby | mit | 48 | master | 256 | module DrawExt
def self.adjust_size4bar3(size, divs, spacing, padding)
(((size / divs.to_f()).ceil * divs) + (divs * spacing) + (padding * 2)).to_i
end
def self.adjust_size4bar4(size, padding)
adjust_size4bar3(size, 4, 0, padding)
end
end |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/drawext/helpers/calc.rb | Ruby | mit | 48 | master | 1,439 | module DrawExt
##
# calc_rescale_divs_by_rate(Hash divs, float div_rate, length_rate)
#
def self.calc_rescale_rule_div_by_rate(divs, div_rate, length_rate)
new_divs = Hash[divs.map do |(k, v)|
nv = v.dup
nv[:l] *= length_rate
[(k * div_rate).to_i, nv]
end]
return new_divs
end
... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/vxa_rpg/rpg.rb | Ruby | mit | 48 | master | 25,744 | module RPG
class BaseItem
class Feature
def initialize(code = 0, data_id = 0, value = 0)
@code = code
@data_id = data_id
@value = value
end
attr_accessor :code
attr_accessor :data_id
attr_accessor :value
end
end
end
module RPG
class BaseItem
def i... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/sapling/sapling.rb | Ruby | mit | 48 | master | 336 | $simport.r('sapling', '1.0.0', 'Provides a character + battler binding API')
module Sapling
# CharacterBinding will implement the Character hosting API
module CharacterBinding
attr_accessor :character
end
# BattlerBinding will implement the Battler hosting API
module BattlerBinding
attr_accessor :ba... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/script_dep/script_dep.rb | Ruby | mit | 48 | master | 5,637 | # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# IEK (https://github.com/IceDragon200/IEK)
# Script Dep
# by IceDragon (https://github.com/IceDragon200)
# Description
# This is a version manager class, used for registering strings with versions.
# Its used mostly for registering s... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/vx_rpg/rpg.rb | Ruby | mit | 48 | master | 24,281 | #
module RPG
class AudioFile
def initialize(name = "", volume = 100, pitch = 100)
@name = name
@volume = volume
@pitch = pitch
end
attr_accessor :name
attr_accessor :volume
attr_accessor :pitch
end
end
module RPG
class BGM < AudioFile
@@last = BGM.new
def play
i... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/levias/load.rb | Ruby | mit | 48 | master | 354 | require 'levias/levias'
require 'levias/struct/map'
require 'levias/struct/area'
require 'levias/struct/stage'
require 'levias/module/vocab'
require 'levias/module/mapmanager'
require 'levias/panel/panel'
require 'levias/panel/lp'
require 'levias/panel/minimap'
require 'levias/spriteset/map'
require 'levias/spritese... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/levias/scene/map.rb | Ruby | mit | 48 | master | 725 | #
# EDOS/src/levias/spriteset/ui.rb
# by IceDragon
# dc 30/03/2013
# dm 30/03/2013
# vr 1.0.0
module Levias
class Scene
class Map < Scene
def start
super
MapManager.setup
MapManager.add_callback(:state_changed, &method(:on_state_change))
@spriteset = Levias::Spriteset... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/levias/spriteset/map.rb | Ruby | mit | 48 | master | 557 | #
# EDOS/src/levias/spriteset/map.rb
# by IceDragon
# dc 30/03/2013
# dm 30/03/2013
# vr 1.0.0
module Levias
module Spriteset
class Map
attr_reader :viewport1, :viewport2
def initialize
create_viewports
@background = Sprite.new(@viewport1)
@background.bitmap = Bitmap.ne... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/levias/spriteset/ui.rb | Ruby | mit | 48 | master | 1,663 | #
# EDOS/src/levias/spriteset/ui.rb
# by IceDragon
# dc 30/03/2013
# dm 30/03/2013
# vr 1.0.0
module Levias
module Spriteset
class UI
attr_reader :viewport1
def initialize
@viewport1 = Viewport.new
@viewport1.z = 100
@minimap = Panel::Minimap.new(112, 48)
@lp_p... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/levias/panel/panel.rb | Ruby | mit | 48 | master | 1,793 | #
# EDOS/src/levias/panel/panel.rb
# by IceDragon
# dc 30/03/2013
# dm 30/03/2013
# vr 1.0.0
module Levias
class Panel
ZORDER_BACKGROUND = 0
ZORDER_CONTENT = 1
attr_reader :x, :y, :z, :visible
attr_accessor :width, :height
def initialize(width, height)
@x, @y, @z = 0, 0, 0
... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/levias/panel/lp.rb | Ruby | mit | 48 | master | 1,228 | #
# EDOS/src/levias/panel/lp.rb
# by IceDragon
# dc 30/03/2013
# dm 30/03/2013
# vr 1.0.0
module Levias
class Panel
class LP < Panel
def refresh_background
rect = background_rect
bitmap = @background.bitmap
bitmap.clear
bitmap.fill_rect(rect, Palette['black-half'])... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/levias/panel/minimap.rb | Ruby | mit | 48 | master | 695 | #
# EDOS/src/levias/panel/minimap.rb
# by IceDragon
# dc 30/03/2013
# dm 30/03/2013
# vr 1.0.0
module Levias
class Panel
class Minimap < Panel
def refresh_background
rect = background_rect
bitmap = @background.bitmap
bitmap.clear
bitmap.fill_rect(rect, Palette['bla... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/levias/struct/stage.rb | Ruby | mit | 48 | master | 241 | #
# EDOS/src/levias/struct/stage.rb
# by IceDragon
# dc 30/03/2013
# dm 30/03/2013
module Levias
class Stage
attr_accessor :name
attr_accessor :areas
def initialize
@name = ""
@areas = []
end
end
end |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/levias/struct/area.rb | Ruby | mit | 48 | master | 238 | #
# EDOS/src/levias/struct/stage.rb
# by IceDragon
# dc 30/03/2013
# dm 30/03/2013
module Levias
class Area
attr_accessor :name
attr_accessor :maps
def initialize
@name = ""
@maps = []
end
end
end |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/levias/module/mapmanager.rb | Ruby | mit | 48 | master | 425 | #
# EDOS/src/levias/module/mapmanager.rb
# by IceDragon
# dc 30/03/2013
# dm 30/03/2013
# vr 1.0.0
module Levias
module MapManager
extend MACL::Mixin::Callback
class << self
attr_accessor :state
end
def self.setup
@state = :move
init_callbacks
end
def self.toggle_st... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/edos_wm/window_manager.rb | Ruby | mit | 48 | master | 2,568 | ##
# WindowManager is employed by the Scene classes which require Window objects.
# This class aims to provide the collection and management of mulitple windows,
# or window like objects
class WindowManager
include Enumerable
attr_reader :windows
attr_reader :viewport
def initialize(viewport)
@windows = ... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/lib/edos_wm/window_client.rb | Ruby | mit | 48 | master | 1,737 | module Mixin
class OrphanClient < RuntimeError
end
module WindowClient
attr_accessor :window_manager
def automove_time
Metric::Time.sec_to_frame(0.25)
end
def automove_easer
MACL::Easer::Back::Out
end
def automove_argv(*args)
case args.size
when 1 # preset
... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/spec/iek/micro_json/micro_json_spec.rb | Ruby | mit | 48 | master | 1,117 | require_relative '../spec_helper'
require "iek/micro_json/micro_json"
describe MicroJSON do
context ".load" do
it "should load valid JSON" do
result = subject.load(%Q(
{
"toad": "Some Mushroom Dude",
"and": {
"it": "was",
"written": ["in", "the", "book", ... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/spec/iek/script_dep/script_dep_spec.rb | Ruby | mit | 48 | master | 2,952 | require_relative '../spec_helper'
require 'iek/script_dep/script_dep'
describe ScriptDep do
let(:registry) { ScriptDep.new }
context '#register' do
it 'should register a new item' do
registry.r('iek/awesomeness', '0.1.0')
end
it 'should fail to register the same item' do
registry.r('iek/a... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/spec/iek/time_system/realtime_spec.rb | Ruby | mit | 48 | master | 464 | require_relative '../spec_helper'
require "iek/time_system/time_system"
require "iek/time_system/realtime"
describe IEK::TimeSystem::RealtimeClock do
context "#update" do
it "should update the value using the Time" do
time = Time.now
sub = subject
# since its possible that the updated value wil... |
github | Archeia/RMVXA-Script-Repository | https://github.com/Archeia/RMVXA-Script-Repository | IceDragon2000/spec/iek/time_system/time_system_spec.rb | Ruby | mit | 48 | master | 1,519 | require_relative '../spec_helper'
require "iek/time_system/time_system"
describe IEK::TimeSystem do
end
describe IEK::TimeSystem::Clock do
context "#value=" do
it "should modify the internal value" do
subject.value = 12 # 12
expect(subject.value).to eq(12)
end
end
context "#sec" do
it ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.