Giter Site home page Giter Site logo

sampleplugin's Introduction

SamplePlugin

Simple example plugin for XivLauncher/Dalamud, that shows both a working plugin and an associated UI test project, to allow for building and tweaking the UI without having to run the game.

This is not designed to be the simplest possible example, but neither is it designed to cover everything you might want to do.

I'm mostly hoping this helps some people to build out their UIs without having to constantly jump in and out of game.

Main Points

  • Simple functional plugin

    • Slash command
    • Main UI
    • Settings UI
    • Image loading
    • Plugin json
  • Simple, slightly-improved plugin configuration handling

  • Basic ImGui testbed application project

    • Allows testing UI changes without needing to run the game
    • UI environment provided should match what is seen in game
    • Defaults to an invisible fullscreen overlay; can easily be changed to use an opaque window etc
    • Currently relies more on copy/paste of your UI code than fully generic objects (though this could be done)
  • Project organization

    • Copies all necessary plugin files to the output directory
      • Does not copy dependencies that are provided by dalamud
      • Output directory can be zipped directly and have exactly what is required
    • Hides data files from visual studio to reduce clutter
      • Also allows having data files in different paths than VS would usually allow if done in the IDE directly

    The intention is less that any of this is used directly in other projects, and more to show how similar things can be done.

    The UIDev project could be used as-is, with just the UITest.cs file needing to be redone for your specific project UI.

    To Use

    You'll need to fixup the library dependencies (for both projects), to point at your local dalamud binary directory.

    This will either be a custom dalamud build, or %APPDATA%\XivLauncher\addon\Hooks\ for the current live release.

    After that, clear out what you don't need in UITest.cs, and implement your own local UI under Draw()

sampleplugin's People

Contributors

ff-meli avatar goaaats avatar thomasaunvik avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.