| 1 | # -*- coding: utf-8 -*- |
| 2 | |
| 3 | module Plugin::ChangeAccount |
| 4 | module WorldGenerator |
| 5 | # ダイアログを生成して開く。 |
| 6 | # ==== Args |
| 7 | # [title:] ダイアログのタイトルバーに表示する内容(String) |
| 8 | # [plugin:] 呼び出し元のPluggaloid Plugin |
| 9 | # ==== Return |
| 10 | # 作成されたDialogのインスタンス |
| 11 | def self.open(title:, plugin:) |
| 12 | window = Plugin::ChangeAccount::WorldGenerator.new(plugin: plugin, title: title) |
| 13 | window.show_all |
| 14 | window |
| 15 | end |
| 16 | end |
| 17 | end |
| 18 | |
| 19 | require_relative 'world_generator/controller' |
| 20 | require_relative 'world_generator/window' |