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
#文字用のimageを作成 | |
@entity.dispose if @entity and !(@entity.disposed?) | |
@entity = DXRuby::Image.new(@width+64, @height+64, [0, 0, 0, 0]) | |
self.offset_sync = true | |
self.center_x = 32 | |
self.center_y = 32 | |
#フォントを描画 | |
@entity.draw_font_ex( offset_x+32, | |
offset_y+32, |
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
# encoding: utf-8 | |
require 'dxruby' | |
class HorrorText < DXRuby::Shader | |
# シェーダコアのHLSL記述 | |
hlsl = <<EOS | |
// (1) グローバル変数 | |
float waveAmpU; | |
float waveAmpV; |
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
#イベントポイントの作成 | |
_DEFINE_ :event_point do |id:, x:, y:, width:, height: | | |
_SEND_ [:screen] do | |
_BUTTON_BASE_ id: id, width: width, height: height, x: x, y: y do | |
#背景 | |
_CREATE_ :DrawableLayout, id: :bg, | |
width: width, height: height, bgcolor: [128, 255, 0, 0] |
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
#coding: utf-8 | |
module WS | |
module FloatingWindow | |
def priority | |
(super + 2) | |
end | |
end | |
class WSControl |
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
# coding: utf-8 | |
require 'dxruby' | |
require_relative '../lib/dxrubyws' | |
require_relative '../lib/standardgui' | |
require_relative '../lib/fontcache' | |
module WS | |
class SeparatorTest < WSWindow | |
def initialize | |
super(100,100,400,300) |
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
# coding: utf-8 | |
require 'dxruby' | |
require_relative '../lib/dxrubyws' | |
require_relative '../lib/standardgui' | |
WS.set_theme("guibasic") | |
Window.width, Window.height = 1280, 720 # ワイド画面化 | |
module Game |