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}"; }
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; }
public PluginUI(Configuration configuration, PluginMemory memory) { this.configuration = configuration; this.memory = memory; }