示例#1
0
文件: PluginUI.cs 项目: oliviea/test
        public PluginUI(Configuration configuration, PluginMemory memory)
        {
            this.configuration = configuration;
            this.memory        = memory;
            var fv = Assembly.GetExecutingAssembly().GetName().Version;

            version = $"{fv.Major}.{fv.Minor}.{fv.Build}";
        }
示例#2
0
        public void Initialize(DalamudPluginInterface pluginInterface)
        {
            this.pi = pluginInterface;

            this.configuration = this.pi.GetPluginConfig() as Configuration ?? new Configuration();
            this.configuration.Initialize(this.pi);

            this.memory = new PluginMemory(this.pi);
            this.ui     = new PluginUI(this.configuration, this.memory);

            this.pi.CommandManager.AddHandler(commandName, new CommandInfo(OnCommand)
            {
                HelpMessage = "Opens the controls for Burning Down the House plugin."
            });

            this.pi.UiBuilder.OnBuildUi += DrawUI;
        }
示例#3
0
 public PluginUI(Configuration configuration, PluginMemory memory)
 {
     this.configuration = configuration;
     this.memory        = memory;
 }