Top Level Namespace

Includes:
DXOpal

Defined Under Namespace

Modules: DXOpal, Kernel

Constant Summary

Constants included from DXOpal

DXOpal::P_CT, DXOpal::VERSION

Constants included from DXOpal::SoundEffect::WaveTypes

DXOpal::SoundEffect::WaveTypes::WAVE_RECT, DXOpal::SoundEffect::WaveTypes::WAVE_SAW, DXOpal::SoundEffect::WaveTypes::WAVE_SIN, DXOpal::SoundEffect::WaveTypes::WAVE_TRI

Constants included from DXOpal::Input::MouseCodes

DXOpal::Input::MouseCodes::M_4TH_BUTTON, DXOpal::Input::MouseCodes::M_5TH_BUTTON, DXOpal::Input::MouseCodes::M_LBUTTON, DXOpal::Input::MouseCodes::M_MBUTTON, DXOpal::Input::MouseCodes::M_RBUTTON

Constants included from DXOpal::Input::KeyCodes

DXOpal::Input::KeyCodes::K_0, DXOpal::Input::KeyCodes::K_1, DXOpal::Input::KeyCodes::K_2, DXOpal::Input::KeyCodes::K_3, DXOpal::Input::KeyCodes::K_4, DXOpal::Input::KeyCodes::K_5, DXOpal::Input::KeyCodes::K_6, DXOpal::Input::KeyCodes::K_7, DXOpal::Input::KeyCodes::K_8, DXOpal::Input::KeyCodes::K_9, DXOpal::Input::KeyCodes::K_A, DXOpal::Input::KeyCodes::K_ADD, DXOpal::Input::KeyCodes::K_APOSTROPHE, DXOpal::Input::KeyCodes::K_B, DXOpal::Input::KeyCodes::K_BACK, DXOpal::Input::KeyCodes::K_BACKSLASH, DXOpal::Input::KeyCodes::K_BACKSPACE, DXOpal::Input::KeyCodes::K_C, DXOpal::Input::KeyCodes::K_CAPSLOCK, DXOpal::Input::KeyCodes::K_COLON, DXOpal::Input::KeyCodes::K_COMMA, DXOpal::Input::KeyCodes::K_CONVERT, DXOpal::Input::KeyCodes::K_D, DXOpal::Input::KeyCodes::K_DECIMAL, DXOpal::Input::KeyCodes::K_DELETE, DXOpal::Input::KeyCodes::K_DIVIDE, DXOpal::Input::KeyCodes::K_DOWN, DXOpal::Input::KeyCodes::K_DOWNARROW, DXOpal::Input::KeyCodes::K_E, DXOpal::Input::KeyCodes::K_END, DXOpal::Input::KeyCodes::K_ENTER, DXOpal::Input::KeyCodes::K_EQUALS, DXOpal::Input::KeyCodes::K_ESCAPE, DXOpal::Input::KeyCodes::K_F, DXOpal::Input::KeyCodes::K_F1, DXOpal::Input::KeyCodes::K_F10, DXOpal::Input::KeyCodes::K_F11, DXOpal::Input::KeyCodes::K_F12, DXOpal::Input::KeyCodes::K_F13, DXOpal::Input::KeyCodes::K_F14, DXOpal::Input::KeyCodes::K_F15, DXOpal::Input::KeyCodes::K_F2, DXOpal::Input::KeyCodes::K_F3, DXOpal::Input::KeyCodes::K_F4, DXOpal::Input::KeyCodes::K_F5, DXOpal::Input::KeyCodes::K_F6, DXOpal::Input::KeyCodes::K_F7, DXOpal::Input::KeyCodes::K_F8, DXOpal::Input::KeyCodes::K_F9, DXOpal::Input::KeyCodes::K_G, DXOpal::Input::KeyCodes::K_GRAVE, DXOpal::Input::KeyCodes::K_H, DXOpal::Input::KeyCodes::K_HOME, DXOpal::Input::KeyCodes::K_I, DXOpal::Input::KeyCodes::K_INSERT, DXOpal::Input::KeyCodes::K_J, DXOpal::Input::KeyCodes::K_K, DXOpal::Input::KeyCodes::K_KANA, DXOpal::Input::KeyCodes::K_L, DXOpal::Input::KeyCodes::K_LALT, DXOpal::Input::KeyCodes::K_LBRACKET, DXOpal::Input::KeyCodes::K_LCONTROL, DXOpal::Input::KeyCodes::K_LEFT, DXOpal::Input::KeyCodes::K_LEFTARROW, DXOpal::Input::KeyCodes::K_LSHIFT, DXOpal::Input::KeyCodes::K_M, DXOpal::Input::KeyCodes::K_MINUS, DXOpal::Input::KeyCodes::K_MULTIPLY, DXOpal::Input::KeyCodes::K_MUTE, DXOpal::Input::KeyCodes::K_N, DXOpal::Input::KeyCodes::K_NOCONVERT, DXOpal::Input::KeyCodes::K_NUMLOCK, DXOpal::Input::KeyCodes::K_NUMPAD0, DXOpal::Input::KeyCodes::K_NUMPAD1, DXOpal::Input::KeyCodes::K_NUMPAD2, DXOpal::Input::KeyCodes::K_NUMPAD3, DXOpal::Input::KeyCodes::K_NUMPAD4, DXOpal::Input::KeyCodes::K_NUMPAD5, DXOpal::Input::KeyCodes::K_NUMPAD6, DXOpal::Input::KeyCodes::K_NUMPAD7, DXOpal::Input::KeyCodes::K_NUMPAD8, DXOpal::Input::KeyCodes::K_NUMPAD9, DXOpal::Input::KeyCodes::K_NUMPADENTER, DXOpal::Input::KeyCodes::K_NUMPADMINUS, DXOpal::Input::KeyCodes::K_NUMPADPERIOD, DXOpal::Input::KeyCodes::K_NUMPADPLUS, DXOpal::Input::KeyCodes::K_NUMPADSLASH, DXOpal::Input::KeyCodes::K_NUMPADSTAR, DXOpal::Input::KeyCodes::K_O, DXOpal::Input::KeyCodes::K_P, DXOpal::Input::KeyCodes::K_PAUSE, DXOpal::Input::KeyCodes::K_PERIOD, DXOpal::Input::KeyCodes::K_PGDN, DXOpal::Input::KeyCodes::K_PGUP, DXOpal::Input::KeyCodes::K_Q, DXOpal::Input::KeyCodes::K_R, DXOpal::Input::KeyCodes::K_RALT, DXOpal::Input::KeyCodes::K_RBRACKET, DXOpal::Input::KeyCodes::K_RCONTROL, DXOpal::Input::KeyCodes::K_RETURN, DXOpal::Input::KeyCodes::K_RIGHT, DXOpal::Input::KeyCodes::K_RIGHTARROW, DXOpal::Input::KeyCodes::K_RSHIFT, DXOpal::Input::KeyCodes::K_S, DXOpal::Input::KeyCodes::K_SCROLL, DXOpal::Input::KeyCodes::K_SEMICOLON, DXOpal::Input::KeyCodes::K_SLASH, DXOpal::Input::KeyCodes::K_SPACE, DXOpal::Input::KeyCodes::K_SUBTRACT, DXOpal::Input::KeyCodes::K_T, DXOpal::Input::KeyCodes::K_TAB, DXOpal::Input::KeyCodes::K_U, DXOpal::Input::KeyCodes::K_UNDERLINE, DXOpal::Input::KeyCodes::K_UP, DXOpal::Input::KeyCodes::K_UPARROW, DXOpal::Input::KeyCodes::K_V, DXOpal::Input::KeyCodes::K_VOLUMEDOWN, DXOpal::Input::KeyCodes::K_VOLUMEUP, DXOpal::Input::KeyCodes::K_W, DXOpal::Input::KeyCodes::K_WEBBACK, DXOpal::Input::KeyCodes::K_WEBFAVORITES, DXOpal::Input::KeyCodes::K_WEBFORWARD, DXOpal::Input::KeyCodes::K_WEBHOME, DXOpal::Input::KeyCodes::K_WEBREFRESH, DXOpal::Input::KeyCodes::K_WEBSEARCH, DXOpal::Input::KeyCodes::K_WEBSTOP, DXOpal::Input::KeyCodes::K_X, DXOpal::Input::KeyCodes::K_Y, DXOpal::Input::KeyCodes::K_YEN, DXOpal::Input::KeyCodes::K_Z

Constants included from DXOpal::Constants::Colors

DXOpal::Constants::Colors::C_BLACK, DXOpal::Constants::Colors::C_BLUE, DXOpal::Constants::Colors::C_CYAN, DXOpal::Constants::Colors::C_DEFAULT, DXOpal::Constants::Colors::C_GREEN, DXOpal::Constants::Colors::C_MAGENTA, DXOpal::Constants::Colors::C_RED, DXOpal::Constants::Colors::C_WHITE, DXOpal::Constants::Colors::C_YELLOW

Instance Method Summary collapse

Methods included from DXOpal

dump_error, #p_

Instance Method Details

#consoleObject



3
# File 'lib/dxopal.rb', line 3

def console; $console; end

#require(*args) ⇒ Object



24
25
26
27
28
29
30
# File 'lib/dxopal/patches/require_dxopal.rb', line 24

def require(*args)
  if args == ['dxopal']
    # Do nothing, because DXOpal is already loaded and you don't need to find it
  else
    dxopal_orig_require(*args)
  end
end

#require_remote(url) ⇒ Object



2
3
4
5
6
7
8
9
10
# File 'lib/dxopal/patches/require_remote.rb', line 2

def require_remote(url)
  %x{
    var r = new XMLHttpRequest();
    r.overrideMimeType("text/plain"); // https://github.com/yhara/dxopal/issues/12
    r.open("GET", url, false);
    r.send('');
  }
  eval `r.responseText`
end