Code Monkey home page Code Monkey logo

resizablehud's Introduction

ResizableHUD

A plugin for Dalamud with FFXIV which lets you move and resize vanilla UI units with far greater control than the game gives.

To use this plugin, add http://repo.modloader64.com/ffxiv/plugins.json to your list of plugin repositories.

Usage

/prhud to open the configurator.

With the configurator opened, and the Draw Addon Inspector option enabled, you can press Right Mouse while mousing over a UI element to add it to your list.

resizablehud's People

Contributors

drahsid avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

resizablehud's Issues

Configurations Do Not Carry Over To Other Characters

The initial configuration saved does not carry over to all other characters, the plugin treats every character as an individual profile setup but there's no way to copy the configuration from one character to another, resulting in having to manually redo the entire HUD resizing and setup.

Addon Inspector not working

I have used this plugin in the past to resize some windows, and I've had them saved for a while, so I haven't touched the plugin since then...

Now I wanted to add a new setting to it, but the "Draw Addon Inspector" button doesn't seem to do anything anymore, whether "Draw Only Visible" is selected or not.

I do wonder if it's some incompatibility with some other plugin, but I have absolutely no clue what other plugin it could be.

[Future Requests] More flexible adjustment

When I register a hud, it is fixed at the current value and prevents me from trying to change it in-game.
Is it possible to make a rough change manually first and then change the values to adjust them?
I can get around this by operating the desired hud first and then registering it, but this method alone is a bit inconvenient.

Scale presets.
60/80/90/100/110/120/140/160/180/200 (Standard Scale)
I think it would be more convenient if could select from here and finetune them individually.

Ability to restore defaults in case of misconfiguration.
It would be nice to be able to easily revert the pos or scale or transparency of the hud in question to the in-game defaults in case of visual anomalies.
This clears up confusion quickly and makes reconfiguration easier.

[Request] Add better documentation

I will say, I really want to use this plugin; but I have one, very big issue with it.

When you open the plugin using /prhud, by default, nothing is added and has to be found through /xldata.
Problem is, when you open /xldata, you're not told (or can find) where the data is that you're looking for, and no documentation is out there through a quick google search as to what these elements are or where to find them.

In my case, I wanted to find the element for my hotbars, chat, and separate out my HP and MP gauges.
I was able to find _HotbarX (where x is 1 through 9) only by seeing it existed looking at other issues and checking if anyone else complained about this.

And once I added /prhudadd _Hotbar1 and changed the value of positioning, nothing even happened to my given hotbar, as if the addon did absolutely nothing. Even after a relog, nothing changed.

You should really either add all the different UI elements by default and have them all disabled by default so we don't have to find the element names ourselves; or provide a straight up list in some documentation of all the UI elements the plugin can interact with instead of having to find them through xldata. People who never had to use /xldata won't know a thing about where to find the different elements.

Plugin not working

After #1 I don't wanna be that guy, and I wish I could help but I'm extremely new to FF14 plugins. There are two problems atm, even after update v1.0.0.14836:

  1. UI is completely ineffective
    image
    I can set any scale or position that I want and save, it does absolutely nothing at all.
  2. From command line it's even worse. If I run the command /prhudpos <component> x N it starts throwing a bunch of errors in the logs, then even if I'm changing position it logs out Scaled., followed by another error:
    image
    Disregard the first X/Y, that's clearly my error. The ResizableHUD parameters update correctly, but nothing changes.

I've tried with different components, restarting FF14, entering and exiting HUD Layout mode, but nothing worked so far. I'd like to help if I can, but I just don't know where to start. Also I tried using /xllog but absolutely nothing is shown, not in verbose, debug or anything else.

Also, unrelated to this issue, but while I'm at it, the help gives the wrong commands:
image
It makes it seem like /prhudpos and /prhud pos are aliases, while the latter just opens/closes the Resizable HUD window.

Load error

I was looking into plugins that could help me properly move and possibly help align/snap hud components around, and stumbled on yours. Problem is, it won't load:

image

Any suggestion?

Various bugs and questions

Hello, I'm your worst nightmare today. While using this to fix my OCD (great job by the way, I can finally sleep easy), I found some assorted bugs you might already be aware of, that I'm reporting them just in case, and I got a few questions to boot.

Bug report

  1. If you open and close via /prhud everything works as intended, unless you open with the command and close it with the ×, in which case the first /prhud will actually try to close the dialog, but since it's already closed it will do nothing.
  2. It seems there's some uninitialisations missing. Upon disabling and re-enabling the addon, the commands won't register and will point to the previous instance:
    18:08:46.762 | INF [LOCALPLUGIN] Unloading ResizableHUD.dll
    18:08:47.767 | INF [LOCALPLUGIN] Finished unloading ResizableHUD.dll
    18:09:06.674 | INF [LOCALPLUGIN] Loading ResizableHUD.dll
    18:09:06.699 | ERR Command "/prhud" is already registered.
    18:09:06.699 | ERR Command "/prhudadd" is already registered.
    18:09:06.699 | ERR Command "/prhudrem" is already registered.
    18:09:06.699 | ERR Command "/prhudscale" is already registered.
    18:09:06.699 | ERR Command "/prhudpos" is already registered.
    18:09:06.699 | INF [LOCALPLUGIN] Finished loading ResizableHUD.dll
    18:09:28.784 | ERR Error while dispatching command "/prhud" (Argument: "")
    System.NullReferenceException: Object reference not set to an instance of an object.
       at ResizableHUD.Commands.ToggleConfig()
       at Dalamud.Game.Command.CommandManager.DispatchCommand(String command, String argument, CommandInfo info) in 
    C:\goatsoft\companysecrets\dalamud\Game\Command\CommandManager.cs:line 117
    
    This is only fixed via complete restart of the game.
  3. In the UI there seems to be some indenting issue, as for each expanded component, the next is its child:
    image

Questions

  1. Is it normal that the coordinates start from the top left? Since the (0, 0) in the UI starts in the middle, I was expecting them to be relative to the central axis to make it easier to position things symmetrically, but that wasn't the case
  2. Is it possible to get stats about the bounding box of the element, in absolute/relative mode? For example if I'm trying to align two items it might be easier to just have something saying "element's size is X×Y pixels wide", instead of taking a screenshot and figuring it out in another app counting the pixels
  3. Assuming 1 & 2 are possible, is it possible to have a coordinate selection that takes the center as a reference point instead of the top left corner, at least in the UI? That could help in aligning stuff across axis simmetrically
  4. Instead of resetting the coordinates, can they be just converted when switching to/from relative mode?

Obviously none of these are requests, and as I've said before I still don't know enough how to do them or I'd do them myself and open a PR (I still might eventually, if I learn how to build this stuff :P)

Thanks again for everything, and I hope this feedback is not too much, feel free to disregard at will :D

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.