Пример #1
0
        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;
 }