static void Init(SimpleImGuiScene scene) { ParseSongs("xiv_bgm.csv"); starImg = scene.LoadImage("favoriteIcon.png"); settingsImg = scene.LoadImage("settings.png"); scene.OnBuildUI += Display; }
public void Initialize(SimpleImGuiScene scene) { // scene is a little different from what you have access to in dalamud // but it can accomplish the same things, and is really only used for initial setup here // eg, to load an image resource for use with ImGui this.goatImage = scene.LoadImage(@"goat.png"); this.barImage = scene.LoadImage(@"bar_textures.png"); scene.OnBuildUI += Draw; this.Visible = true; // saving this only so we can kill the test application by closing the window // (instead of just by hitting escape) this.scene = scene; }